xref: /netbsd-src/external/gpl3/gcc/dist/lto-plugin/ChangeLog (revision 0a3071956a3a9fdebdbf7f338cf2d439b45fc728)
12024-06-20  Release Manager
2
3	* GCC 12.4.0 released.
4
52023-05-08  Release Manager
6
7	* GCC 12.3.0 released.
8
92022-08-19  Release Manager
10
11	* GCC 12.2.0 released.
12
132022-05-06  Release Manager
14
15	* GCC 12.1.0 released.
16
172022-03-22  Jakub Jelinek  <jakub@redhat.com>
18
19	PR lto/102426
20	* configure.ac (LTO_PLUGIN_USE_SYMVER, LTO_PLUGIN_USE_SYMVER_GNU,
21	LTO_PLUGIN_USE_SYMVER_SUN): New test for symbol versioning support.
22	* Makefile.am (version_arg, version_dep): Set conditionally based
23	on LTO_PLUGIN_USE_SYMVER*.
24	(liblto_plugin_la_LDFLAGS): Use $(version_arg) instead of
25	-export-symbols-regex onload.
26	(liblto_plugin_la_DEPENDENCIES): Depend on $(version_dep).
27	* lto-plugin.map: New file.
28	* configure: Regenerated.
29	* Makefile.in: Regenerated.
30
312022-03-11  Tobias Burnus  <tobias@codesourcery.com>
32
33	* lto-plugin.c (all_symbols_read_handler): With -save-temps, use
34	link_output_name for -foffload-objects's file name, if available.
35
362022-03-01  Martin Liska  <mliska@suse.cz>
37
38	* lto-plugin.c (process_offload_section): Use a linker as many
39	comments are connected to gold linker.
40	(process_option): Likewise.
41
422021-12-02  Rasmus Villemoes  <rasmus.villemoes@prevas.dk>
43
44	* lto-plugin.c: Fix -linker-output-auto-notlo-rel ->
45	-linker-output-auto-nolto-rel typo.
46	(process_option): Adjust accordingly, accepting both old and
47	new spelling.
48
492021-09-13  Andrew Pinski  <apinski@marvell.com>
50
51	PR lto/49664
52	* Makefile.am: Export only onload.
53	* Makefile.in: Regenerate.
54
552021-06-25  Richard Biener  <rguenther@suse.de>
56
57	* lto-plugin.c (ltrans_objects): New global.
58	(all_symbols_read_handler): If -ltrans-objects was specified,
59	add the output files from the specified file directly.
60	(process_option): Handle -ltrans-objects.
61
622021-05-10  Martin Liska  <mliska@suse.cz>
63
64	* lto-plugin.c (LTO_SEGMENT_NAME): Remove.
65	(LTO_SYMTAB_PREFIX): Likewise.
66	(LTO_SYMTAB_PREFIX_LEN): Likewise.
67	(LTO_SYMTAB_EXT_PREFIX): Likewise.
68	(LTO_SYMTAB_EXT_PREFIX_LEN): Likewise.
69	(LTO_LTO_PREFIX): Likewise.
70	(LTO_LTO_PREFIX_LEN): Likewise.
71	(OFFLOAD_SECTION): Likewise.
72	(OFFLOAD_SECTION_LEN): Likewise.
73	(startswith): New function.
74	(all_symbols_read_handler): Use it.
75	(process_symtab): Likewise.
76	(process_symtab_extension): Likewise.
77	(process_offload_section): Likewise.
78	(process_option): Likewise.
79
802021-05-03  H.J. Lu  <hjl.tools@gmail.com>
81
82	PR bootstrap/99703
83	* configure: Regenerated.
84
852021-04-21  Martin Liska  <mliska@suse.cz>
86
87	* lto-plugin.c (exec_lto_wrapper): Make a temp variable.
88
892021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90
91	* configure: Re-generate.
92
932020-11-29  John David Anglin  <danglin@gcc.gnu.org>
94
95	* configure: Regenerate.
96
972020-11-25  Matthew Malcomson  <matthew.malcomson@arm.com>
98
99	* Makefile.am: Avoid using sanitizer.
100	* Makefile.in: Regenerate.
101
1022020-09-10  Jonathan Yong  <10walls@gmail.com>
103
104	* Makefile.am: drop versioning from libtool completely.
105	* Makefile.in: regenerate.
106
1072020-09-09  Nick Clifton  <nickc@redhat.com>
108
109	* lto-plugin.c (struct plugin_symtab): Add last_sym field.
110	(parse_symtab_extension): Only read as many entries as are
111	available in the buffer.  Store the data read into the symbol
112	table indexed from last_sym.  Increment last_sym.
113
1142020-07-30  H.J. Lu  <hjl.tools@gmail.com>
115
116	PR bootstrap/96202
117	* configure: Regenerated.
118
1192020-05-29  H.J. Lu  <hjl.tools@gmail.com>
120
121	PR bootstrap/95413
122	* configure: Regenerated.
123
1242020-05-26  Alexandre Oliva  <oliva@adacore.com>
125
126	* lto-plugin.c (skip_in_suffix): New.
127	(exec_lto_wrapper): Use skip_in_suffix and concat to build
128	non-temporary output names.
129	(onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
130	override link_output_name with it.
131
1322020-05-12  H.J. Lu  <hongjiu.lu@intel.com>
133
134	PR bootstrap/94998
135	* configure: Regenerated.
136
1372020-05-05  Eric Botcazou  <ebotcazou@adacore.com>
138
139	* lto-plugin.c: Document -linker-output-auto-notlo-rel option.
140	(linker_output_set): Change type to bool.
141	(linker_output_known): Likewise.
142	(linker_output_auto_nolto_rel): New variable.
143	(all_symbols_read_handler): Take it into account.
144	<LDPO_REL>: Do not issue the warning if it is set.
145	(process_option): Process -linker-output-auto-notlo-rel.
146	(cleanup_handler): Remove unused variable.
147	(onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
148
1492020-04-28  H.J. Lu  <hongjiu.lu@intel.com>
150
151	PR bootstrap/94739
152	* configure: Regenerated.
153
1542020-04-25  H.J. Lu  <hongjiu.lu@intel.com>
155
156	PR bootstrap/94739
157	* Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
158	* configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
159	AC_SUBST(CET_HOST_FLAGS).
160	* Makefile.in: Regenerated.
161	* aclocal.m4: Likewise.
162	* configure: Likewise.
163
1642020-03-19  Martin Liska  <mliska@suse.cz>
165
166	* lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
167	(LTO_SYMTAB_PREFIX): ... this.
168	(LTO_SECTION_PREFIX_LEN): Rename to ...
169	(LTO_SYMTAB_PREFIX_LEN): ... this.
170	(LTO_SYMTAB_EXT_PREFIX): New.
171	(LTO_SYMTAB_EXT_PREFIX_LEN): New.
172	(LTO_LTO_PREFIX): New.
173	(LTO_LTO_PREFIX_LEN): New.
174	(parse_table_entry): Fill up unused to zero.
175	(parse_table_entry_extension): New.
176	(parse_symtab_extension): New.
177	(finish_conflict_resolution): Change type
178	for resolution.
179	(process_symtab): Use new macro name.
180	(process_symtab_extension): New.
181	(claim_file_handler): Parse also process_symtab_extension.
182	(onload): Call new add_symbols_v2.
183
1842020-01-01  Jakub Jelinek  <jakub@redhat.com>
185
186	Update copyright years.
187
1882019-09-27  Maciej W. Rozycki  <macro@wdc.com>
189
190	* configure: Regenerate.
191
1922019-05-15  Iain Sandoe  <iain@sandoe.co.uk>
193
194	* lto-plugin.c (cleanup_handler): Remove unused var.
195
1962019-05-15  Iain Sandoe  <iain@sandoe.co.uk>
197
198	* lto-plugin.c (exec_lto_wrapper): Make the wrapper
199	arguments filename more user-friendly.
200	(file_exists, maybe_unlink): New.
201	(cleanup_handler): Use maybe unlink to handle the
202	case when temps should be saved.
203	(process_option): Look for -v, —-version, -save-temps.
204	(onload): Record the linker output file name.
205	Check for -v, —-version, -save-temps in the GCC collect
206	options environment.
207
2082019-02-26  Martin Liska  <mliska@suse.cz>
209
210	* lto-symtab.c: Remove.
211
2122019-01-01  Jakub Jelinek  <jakub@redhat.com>
213
214	Update copyright years.
215
2162018-10-31  Joseph Myers  <joseph@codesourcery.com>
217
218	PR bootstrap/82856
219	* configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
220	* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
221
2222018-05-30  Jan Hubicka  <jh@suse.cz>
223
224	* lto-plugin.c: (non_claimed_files): New static var.
225	(linker_ouput_known): New static var.
226	(all_symbols_read_handler): When user specifies linker output do not
227	imply it; output warning when nonlto-rel mode is forced.
228	(claim_file_header): Record number of nonclaimed files.
229	(process_option): Remember if linker output is known
230
2312018-04-18  David Malcolm  <dmalcolm@redhat.com>
232
233	PR jit/85384
234	* configure: Regenerate.
235
2362018-01-03  Jakub Jelinek  <jakub@redhat.com>
237
238	Update copyright years.
239
2402017-07-21  Georg-Johann Lay  <avr@gjlay.de>
241
242	PR lto/81487
243	* lto-plugin.c (claim_file_handler): Use xasprintf instead of
244	asprintf.
245	[hi!=0]: Swap hi and lo arguments supplied to xasprintf.
246
2472017-01-17  Jakub Jelinek  <jakub@redhat.com>
248
249	PR other/79046
250	* configure.ac: Add GCC_BASE_VER.
251	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
252	get version from BASE-VER file.
253	* configure: Regenerated.
254	* Makefile.in: Regenerated.
255
2562017-01-04  Jakub Jelinek  <jakub@redhat.com>
257
258	Update copyright years.
259
2602016-11-15  Matthias Klose  <doko@ubuntu.com>
261
262	* configure: Regenerate.
263
2642016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
265
266	PR driver/68463
267	* lto-plugin.c (struct plugin_offload_file): New.
268	(offload_files): Change type.
269	(offload_files_last, offload_files_last_obj): New.
270	(offload_files_last_lto): New.
271	(free_2): Adjust accordingly.
272	(all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
273	Don't call free_1 for offload_files.  Write names of object files with
274	offloading to the temporary file.  Add new option to lto_arg_ptr.
275	(claim_file_handler): Don't claim file if it contains offload sections
276	without LTO sections.  If it contains offload sections, add to the list.
277
2782016-01-15  Martin Liska  <mliska@suse.cz>
279
280	* lto-plugin.c (all_symbols_read_handler): Assign default
281	value to a string variable.
282
2832015-11-25  Jan Hubicka  <jh@suse.cz>
284
285	PR lto/67548
286	* lto-plugin.c (linker_output, linker_output_set): New statics.
287	(all_symbols_read_handler): Add -flinker-output option.
288	(onload): Record linker_output info.
289
2902015-07-02  Uros Bizjak  <ubizjak@gmail.com>
291
292	* configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
293	* configure: Regenerate.
294	* config.h.in: Ditto.
295
2962015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
297
298	* Makefile.am: Drop 'by automake version' from top-level comment.
299	* Makefile.in: Regenerated with automake-1.11.6.
300	* aclocal.m4: Likewise.
301	* configure: Likewise.
302
3032015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
304
305	* lto-plugin.c (release_input_file): Removed.
306	(claim_file_handler): Don't call release_input_file.
307	(onload): Don't set release_input_file.
308
3092015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
310
311	* lto-plugin.c (claim_file_handler): Pass handle to
312	release_input_file.
313
3142015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
315
316	* lto-plugin.c (claim_file_handler): Call release_input_file only
317	if file is claimed.
318
3192015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
320
321	* lto-plugin.c (claim_file_handler): Call release_input_file only
322	if it is not NULL.
323
3242015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
325
326	PR lto/64837
327	* lto-plugin.c (release_input_file): New.
328	(claim_file_handler): Call release_input_file.
329	(onload): Set release_input_file.
330
3312014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
332
333	* lto-plugin.c (offload_files, num_offload_files): New static variables.
334	(free_1): Use arguments instead of global variables.
335	(free_2): Free offload_files.
336	(all_symbols_read_handler): Add names from offload_files to lto-wrapper
337	arguments.
338	(claim_file_handler): Do not add file to claimed_files if it contains
339	offload sections without LTO sections.  Add it to offload_files instead.
340
3412014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
342
343	PR bootstrap/63784
344	* configure: Regenerated.
345
3462014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
347	    Bernd Schmidt  <bernds@codesourcery.com>
348	    Andrey Turetskiy  <andrey.turetskiy@intel.com>
349	    Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
350
351	* lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
352	(struct plugin_objfile): Add new field "offload".
353	(process_offload_section): New static function.
354	(claim_file_handler): Claim file if it contains offload sections.
355
3562014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
357	    Thomas Schwinge  <thomas@codesourcery.com>
358	    Ilya Verbin  <ilya.verbin@intel.com>
359	    Andrey Turetskiy  <andrey.turetskiy@intel.com>
360
361	* Makefile.am (libexecsubdir): Tweak for the possibility of being
362	configured for offload compiler.
363	(accel_dir_suffix, real_target_noncanonical): New variables substituted
364	by configure.
365	* Makefile.in: Regenerate.
366	* configure: Regenerate.
367	* configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
368	variables.
369
3702014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
371
372	PR target/63610
373	* configure: Regenerate.
374
3752014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
376
377	PR bootstrap/62260
378	* Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
379	* configure.ac (gcc_build_dir): Set and AC_SUBST according to
380	$host_subdir.
381	* Makefile.in: Regenerated.
382	* configure: Likewise.
383
3842014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
385
386	* configure.ac (--with-libiberty): New configure option.
387	* configure: Regenerate.
388	* Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
389	variables.
390	(liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
391	(liblto_plugin_la_DEPENDENCIES): Use them.
392	* Makefile.in: Regenerate.
393
3942014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
395
396	PR lto/60981
397	* configure.ac: Check for -static-libgcc.
398	* configure: Regenerate.
399
4002014-04-17  Jakub Jelinek  <jakub@redhat.com>
401
402	PR sanitizer/56781
403	* Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
404	(liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
405	liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
406	over ../libiberty/pic/libiberty.a if the former exists.
407	* Makefile.in: Regenerated.
408
409	PR sanitizer/56781
410	* Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
411	* Makefile.in: Regenerated.
412
4132014-04-02  Richard Biener  <rguenther@suse.de>
414
415	* lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
416	is set in COLLECT_GCC_OPTIONS.
417
4182014-03-28  Richard Biener  <rguenther@suse.de>
419
420	* lto-plugin.c (process_symtab): Handle EINTR and short reads.
421
4222014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
423
424	* configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
425	for gcc.
426	* configure: Regenerate.
427	* Makefile.am (AM_LDFLAGS): New variable.
428	(liblto_plugin_la_LDFLAGS): Add it.
429	* Makefile.in: Regenerate.
430
4312013-09-20  Alan Modra  <amodra@gmail.com>
432
433	* configure: Regenerate.
434
4352012-09-14  David Edelsohn  <dje.gcc@gmail.com>
436
437	* configure: Regenerated.
438
4392012-05-29  Joseph Myers  <joseph@codesourcery.com>
440
441	* lto-plugin.c: Fix typo.
442
4432012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
444
445	* configure: Regenerated.
446
4472012-02-22  Kai Tietz  <ktietz@redhat.com>
448
449	PR lto/50616
450	* lto-plugin.c (PRI_LL): New macro.
451	(dump_symtab): Use PRI_LL instead of ll in print.
452	(process_symtab): Use PRI_LL instead of ll in scan.
453
4542011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
455
456	* configure: Regenerate.
457
4582011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
459
460	* configure: Regenerate.
461
4622011-11-21  Andreas Tobler  <andreast@fgznet.ch>
463
464	* configure: Regenerate.
465
4662011-10-02  Jan Hubicka  <jh@suse.cz>
467
468	PR lto/47247
469	* lto-plugin.c (get_symbols_v2): New variable.
470	(write_resolution): Use V2 API when available.
471	(onload): Handle LDPT_GET_SYMBOLS_V2.
472
4732011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
474	    Andi Kleen  <ak@linux.intel.com>
475
476	PR lto/50568
477	* lto-plugin.c (sym_aux): Change id to unsigned long long.
478	(plugin_symtab): Likewise.
479	(dump_symtab): Likewise.
480	(resolve_conflicts): Likewise.
481	(process_symtab): Likewise.
482
4832011-08-10  Richard Guenther  <rguenther@suse.de>
484
485	PR bootstrap/49907
486	lto-plugin/
487	* configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
488	* Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
489	* configure: Regenerate.
490	* Makefile.in: Likewise.
491	* aclocal.m4: Likewise.
492
4932011-04-20  Jim Meyering  <meyering@redhat.com>
494
495	* lto-plugin.c (free_1, free_2): Remove useless if-before-free.
496
4972011-04-05  Richard Guenther  <rguenther@suse.de>
498
499	PR bootstrap/48431
500	* lto-plugin.c (claim_file_handler): Do not declare vars in code.
501
5022011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
503
504	* Makefile.in: Regenerate.
505	* aclocal.m4: Regenerate.
506	* configure: Regenerate.
507
5082011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
509
510	* Makefile.am (all-local): Rename from 'all'.
511	* Makefile.in: Regenerate.
512
5132011-02-12  Alexandre Oliva  <aoliva@redhat.com>
514
515	PR lto/47225
516	* Makefile.am (gcc_build_dir, in_gcc_libs): New.
517	(liblto_plugin_la_LDFLAGS): Add -module.
518	(copy_lto_plugin): Renamed to...
519	($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
520	of static modules.
521	* Makefile.in: Rebuild.
522
5232011-02-07  Kai Tietz  <kai.tietz@onevision.com>
524
525	PR lto/47225
526	* Makefile.am (Wc): New helper for encoding -Wc,.
527	(liblto_plugin_la_LIBADD): Use Wc for libiberty library.
528	(liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
529	* Makefile.in: Regenerated.
530
5312011-02-07  Paolo Bonzini  <bonzini@gnu.org>
532
533	Revert:
534
535	2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
536
537	PR lto/47225
538	* Makefile.am (Wl): New helper for encoding -Wl,.
539	(liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
540	* Makefile.in: Regenerated.
541
5422011-02-07  Kai Tietz  <kai.tietz@onevision.com>
543
544	PR lto/47225
545	* Makefile.am (Wl): New helper for encoding -Wl,.
546	(liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
547	* Makefile.in: Regenerated.
548
5492011-01-25  Ian Lance Taylor  <iant@google.com>
550
551	* lto-plugin.c (gold_version): New static variable.
552	(all_symbols_read_handler): Don't check pass_through_items if
553	using gold 1.11 or later.
554	(onload): Set gold_version if we see LDPT_GOLD_VERSION.
555
5562011-01-12  Richard Guenther  <rguenther@suse.de>
557
558	PR lto/47264
559	* lto-plugin.c (parse_table_entry): Use memcpy to access
560	unaligned fields.
561
5622010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
563
564	* Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
565	* Makefile.in: Regenerate.
566
5672010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
568
569	Revert last change.
570
5712010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
572
573	* Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
574	(liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
575	(liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
576	* Makefile.in: Regenerate.
577
5782010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
579
580	PR middle-end/46674
581	PR lto/43157
582	* configure.ac (SYM_STYLE): Don't AC_DEFINE.
583	* lto-plugin.c (sym_style): Don't use it; default to ss_none.
584	* configure: Regenerate.
585	* config.h.in: Likewise.
586
5872010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
588
589	PR target/40125
590	PR lto/46695
591	* configure.ac: Invoke ACX_LT_HOST_FLAGS.
592	* Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
593	override -bindir setting.
594	* aclocal.m4: Regenerate.
595	* configure: Regenerate.
596	* Makefile.in: Regenerate.
597
5982010-12-05  Kai Tietz  <kai.tietz@onevision.com>
599
600	* config.h.in: Regenerated.
601	* configure: Regenerated.
602	* configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
603	* lto-plugin.c (WIFEXITED): Define default.
604	(WEXITSTATUS): Likeiwse.
605
6062010-12-01  Kai Tietz  <kai.tietz@onevision.com>
607
608	* config.h.in: Regenerated.
609	* configure: Regenerated.
610	* Makefile.in: Regenerated.
611	* configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
612	* lto-plugin.c:  Include sys/wait.h conditionally.
613	* aclocal.m4: Regenerated.
614
6152010-11-13  Kai Tietz  <kai.tietz@onevision.com>
616
617	* lto-plugin.c (add_output_files): Fix memory leak.
618
6192010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
620
621	PR bootstrap/46397
622	PR bootstrap/46362
623	* configure.ac: Add AC_TYPE_INT64_T test.
624	* config.h.in: Regenerate.
625	* configure: Likewise.
626	* lto-plugin.c (debug): Use char not bool.
627	(nop): Likewise.
628	(check_1): Rename from check, and use int not bool for gate argument.
629	(check): Macro wrapper for the above to coerce gate argument into
630	boolean-valued integer in case it has pointer type.
631	(parse_table_entry): Use 0 not false.
632	(claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
633	into two 32-bit parts and printing as hex ints.
634
6352010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
636
637	PR lto/46291
638	* lto-plugin.c (claim_file_handler): Don't close file descriptor.
639
6402010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
641
642	PR lto/46273
643	* lto-plugin.h: Delete.
644	* lto-plugin-elf.c: Likewise.
645	* lto-plugin-coff.c: Likewise.
646	* configure.ac: Don't use libelf, don't source config.gcc.
647	(LIBELFLIBS): Delete.
648	(LIBELFINC): Delete.
649	(LTO_FORMAT): Delete.
650	(SYM_STYLE): Add AC_DEFINE var, set based on $target.
651	(config.h): Add AC_CONFIG_HEADERS directive.
652	* Makefile.am (LIBELFLIBS): Delete.
653	(LIBELFINC): Delete.
654	(LTO_FORMAT): Delete.
655	(DEFS): Import.
656	(AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
657	(liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
658	any object-format-specific source file in the link.
659	(liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
660	* config.h.in: Generate.
661	* configure: Regenerate.
662	* Makefile.in: Likewise.
663	* lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
664	(LTO_SEGMENT_NAME): New definition.
665	(LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
666	(LTO_SECTION_PREFIX_LEN): New definition.
667	(struct sym_aux): Struct definition moved here from lto-plugin.h.
668	(struct plugin_symtab): Likewise.
669	(struct plugin_objfile): Likewise.
670	(struct plugin_objfile): New struct def.
671	(enum symbol_style): New enum type.
672	(add_symbols): Make static.
673	(claimed_files): Likewise.
674	(num_claimed_files): Likewise.
675	(sym_style): New global.
676	(check): Make static.
677	(parse_table_entry): Likewise.  Respect sym_style when extracting
678	symbol from symtab entry.
679	(translate): Make static.
680	(resolve_conflicts): Likewise.
681	(process_symtab): New function, per-section callback version of
682	old object-format-specific handling from deleted lto-plugin-elf.c.
683	(claim_file_handler): Convert ELF-specific version from deleted
684	lto-plugin-elf.c to simple_object interface and move here.
685	(process_options): Allow new '-sym-style=' option.
686	(onload): Don't call deleted onload_format_checks hook.
687
6882010-10-11  Kai Tietz  <kai.tietz@onevision.com>
689
690	* lto-plugin.c (dump_symtab): Correct printf argument type.
691	(finish_conflict_resolution): Initialize resolution.
692
6932010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
694
695	PR bootstrap/45951
696	* configure.ac: Add AC_CANONICAL_SYSTEM.
697	* configure: Regenerated.
698
6992010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
700
701	* configure.ac: Source config.gcc to determine lto_binary_reader.
702	(LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
703	* Makefile.am (LTO_FORMAT): Import.
704	(liblto_plugin_la_SOURCES): Add object format dependent module
705	defined by LTO_FORMAT.
706	(liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
707	and work around libtool warning.
708	* configure: Regenerate.
709	* Makefile.in: Likewise.
710	* lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
711	(struct sym_aux): Likewise.
712	(struct plugin_symtab): Likewise.
713	(struct plugin_file_info): Likewise.
714	(LTO_SECTION_PREFIX): Likewise.
715	(add_symbols):  Make non-static.
716	(claimed_files): Likewise.
717	(num_claimed_files): Likewise.
718	(check): Likewise.
719	(parse_table_entry): Likewise.
720	(translate): Likewise.
721	(resolve_conflicts): Likewise.
722	(process_symtab): Move to new lto-plugin-elf.c object format dependent
723	source file.
724	(claim_file_handler): Likewise, and make non-static.
725	(onload): Call new onload_format_checks function.
726	* lto-plugin.h: New file.
727	(LTO_SECTION_PREFIX): Move here.
728	(struct sym_aux): Likewise.
729	(struct plugin_symtab): Likewise.
730	(struct plugin_file_info): Likewise.
731	(claim_file_handler): Add new function prototype.
732	(onload_format_checks): Likewise.
733	(check): Declare extern.
734	(translate): Likewise.
735	(parse_table_entry): Likewise.
736	(resolve_conflicts): Likewise.
737	(add_symbols):  Likewise.
738	(claimed_files): Likewise.
739	(num_claimed_files): Likewise.
740	* lto-plugin-elf.c (process_symtab): Move here.
741	(claim_file_handler): Likewise, and make non-static.
742	(onload_format_checks): New function factored out from onload.
743	* lto-plugin-coff.c (claim_file_handler): New function stub.
744	(onload_format_checks): Likewise.
745
7462010-08-05  Andi Kleen  <ak@linux.intel.com>
747
748	* lto-plugin.c: Include <hashtab.h>
749	(sym_aux): Add next_conflict field to save conflict chains.
750	(plugin_file_info): Add conflicts symtab.
751	(parse_table_entry): Initialize aux->next_conflict.
752	(process_symtab): Increment found.
753	(dump_symtab): Add.
754	(finish_conflict_resolution): Add.
755	(free_symtab): Add.
756	(write_resolution): Remove symbols loop and move into
757	dump_symtab. Call dump_symtab for main symbol and conflicts table.
758	Call free_symtab to free conflicts table.
759	(SWAP): Add.
760	(eq_sym): Add.
761	(hash_sym): Add.
762	(symbol_strength): Add.
763	(resolve_conflicts): Add.
764	(claim_file_handler): Add n variable. Check return value of
765	process_symtab. Call resolve_conflicts.
766
7672010-07-27  Andi Kleen  <ak@linux.intel.com>
768
769	* lto-plugin.c (translate): Remove debug fprintf.
770
7712010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
772
773	PR bootstrap/45042
774	* lto-plugin.c (translate): Cast to unsigned long.
775
7762010-07-23   Andi Kleen  <ak@linux.intel.com>
777
778	PR lto/44992
779	* lto-plugin.c (sym_aux): Add.
780	(plugin_symtab): Remove slots. Add aux and id.
781	(parse_table_entry): Change to use aux instead of slots.
782	(LTO_SECTION_PREFIX): Add.
783	(translate): Improve buffer allocation. Change to append
784	symbols to existing out buffer.
785	(get_section): Remove.
786	(process_symtab): Add.
787	(free_2): Free symtab->aux.
788	(write_resolution): Handle aux instead of slots.
789	Print sub id to resolution file.
790	(claim_file_handler): Clear lto_file. Replace get_symtab/translate
791	calls with call to process_symtab.
792
7932010-07-22  Richard Guenther  <rguenther@suse.de>
794
795	* Makefile.am: New copy_lto_plugin rule to install the plugin
796	into ../gcc.
797	* Makefile.in: Regenerated.
798
7992010-05-21  Richard Guenther  <rguenther@suse.de>
800
801	* lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
802
8032010-05-07  Richard Guenther <rguenther@suse.de>
804
805	* lto-plugin.c (free_2): Do not free resolution_file.
806	(write_resolution): Check that we were passed a resolution file.
807	(all_symbols_read_handler): Adjust.
808	(cleanup_handler): Do not remove the resolution file.
809	(process_option): Handle -fresolution=.
810
8112010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
812
813	PR other/43620
814	* configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
815	* Makefile.in: Regenerate.
816
8172010-04-23  Richard Guenther  <rguenther@suse.de>
818
819	PR lto/41550
820	* lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
821	(translate): Likewise.
822	(all_symbols_read_handler): Likewise.
823	(claim_file_handler): Likewise.
824	(process_option): Likewise.
825	(add_output_files): Likewise.  Remove filename length limit.
826
8272010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
828
829	* Makefile.in: Regenerate.
830	* aclocal.m4: Regenerate.
831
8322010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
833
834	PR lto/43336
835	* lto-plugin.c (cleanup_handler): Delete temporary output files.
836
8372010-01-11  Richard Guenther  <rguenther@suse.de>
838
839	PR lto/41569
840	* Makefile.am: Disable dependencies.
841	* Makefile.in: Regenerated.
842
8432010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
844
845	PR lto/42520
846	* lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
847	if -v is passed.
848
8492009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
850
851	PR bootstrap/42306
852	* configure: Regenerated.
853	* Makefile.in: Likewise.
854
8552009-11-19  Rafael Avila de Espindola  <espindola@google.com>
856
857	PR bootstrap/42096
858	* lto-plugin.c (claim_file_handler): Print offsets in hex.
859
8602009-11-12  Rafael Avila de Espindola  <espindola@google.com>
861
862	* lto-plugin.c (write_resolution): Assume resolution_file is set.
863	Print the symbol name.
864	(all_symbols_read_handler): Create a resolution file.
865	Pass it to gcc.
866	(cleanup_handler): Remove the resolution file.
867	(process_option): Drop the -resolution option.
868
8692009-11-05  Rafael Avila de Espindola  <espindola@google.com>
870
871	* lto-plugin.c (temp_obj_dir_name): Remove.
872	(arguments_file_name): New.
873	(free_2): Free arguments_file_name instead of temp_obj_dir_name.
874	(exec_lto_wrapper):  Create arguments file with make_temp_file.
875	(cleanup_handler): Don't remove the temporary directory. Remove the
876	arguments file.
877	(onload): Don't create the temporary directory.
878
8792009-11-04  Richard Guenther  <rguenther@suse.de>
880	    Rafael Avila de Espindola  <espindola@google.com>
881
882	* lto-plugin.c (plugin_file_info): Remove temp field.
883	(cleanup_handler): Don't delete temporary objects.
884	(claim_file_handler): Don't create temporary objects.
885
8862009-11-04  Rafael Avila de Espindola  <espindola@google.com>
887
888	* lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
889
8902009-10-30  Rafael Avila de Espindola  <espindola@google.com>
891
892	PR41871
893	* lto-plugin.c (claim_file_handler): Close files that we created.
894
8952009-10-28  Rafael Avila de Espindola  <espindola@google.com>
896
897	* lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
898	LDPL_ERROR
899
9002009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
901
902	PR lto/41652
903	* configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
904	* configure: Regenerate.
905
9062009-10-26  Richard Guenther  <rguenther@suse.de>
907
908	* configure.ac: Use AM_MAINTAINER_MODE.
909	* acinclude.m4: Remove.
910	* configure: Re-generate.
911	* Makefile.in: Likewise.
912	* aclocal.m4: Likewise.
913
9142009-10-19  Rafael Avila de Espindola  <espindola@google.com>
915
916	PR40790
917	* configure: Regenerate.
918	* configure.ac: Add AC_TYPE_UINT64_T.
919
9202009-10-16  Rafael Avila de Espindola  <espindola@google.com>
921
922	* lto-plugin.c (message): New variable.
923	(check): New function.
924	(parse_table_entry, translate, write_resolution,add_output_files,
925	exec_lto_wrapper,claim_file_handler, onload): Use check instead of
926	assert.
927	(cleanup_handler): Use check instead of assert. Remove the arguments
928	file if it exists.
929
9302009-10-15  Rafael Avila de Espindola  <espindola@google.com>
931
932	* lto-plugin.c (resolution_file): New.
933	(free_1): Update comment.
934	(free_2): Free resolution_file.
935	(write_resolution): Write resolution to specified file. Use the
936	syms array from the symbol table.
937	(all_symbols_read_handler): Delay call to free_1 past call to
938	write_resolution.
939	(process_option): Add a -resolution option.
940
9412009-10-13  Richard Guenther  <rguenther@suse.de>
942
943	* Makefile.am (liblto_plugin_la_LIBADD): Link against the
944	correct libiberty.
945	* Makefile.in: Regenerated.
946
9472009-10-08  Rafael Avila de Espindola  <espindola@google.com>
948
949	* lto-plugin.c (add_input_library): New.
950	(all_symbols_read_handler): Use add_input_library for items that
951	start with -l.
952	(process_option): Fit in 80 columns.
953	(onload): Handle LDPT_ADD_INPUT_LIBRARY.
954
9552009-10-02  Diego Novillo  <dnovillo@google.com>
956
957	* Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
958	and -D_FILE_OFFSET_BITS=64.
959	* configure.ac: Add AC_SYS_LARGEFILE.
960	* configure: Regenerate.
961	* Makefile.in: Regenerate.
962	* lto-plugin.c: Fix copyright boilerplate.
963
9642009-10-02  Diego Novillo  <dnovillo@google.com>
965
966	* Makefile.am (ACLOCAL_AMFLAGS): Define.
967	* aclocal.m4: Regenerate with aclocal-2.64
968	* acinclude.m4: Remove.
969	* Makefile.in: Regenerate with automake-1.11
970	* configure.ac (AC_PREREQ): Update to 2.64.
971	* configure: Regenerate.
972
9732009-10-02  Diego Novillo  <dnovillo@google.com>
974
975	* Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
976	and -D_FILE_OFFSET_BITS=64.
977	* configure.ac: Add AC_SYS_LARGEFILE.
978	* configure: Regenerate.
979	* Makefile.in: Regenerate.
980	* lto-plugin.c: Fix copyright boilerplate.
981
9822009-10-02  Diego Novillo  <dnovillo@google.com>
983
984	* Makefile.am (ACLOCAL_AMFLAGS): Define.
985	* aclocal.m4: Regenerate with aclocal-2.64
986	* acinclude.m4: Remove.
987	* Makefile.in: Regenerate with automake-1.11
988	* configure.ac (AC_PREREQ): Update to 2.64.
989	* configure: Regenerate.
990
9912009-10-02  Rafael Avila de Espindola  <espindola@google.com>
992
993	* Makefile.am (liblto_plugin_la_SOURCES): Remove
994	$(top_srcdir)/../gcc/lto/common.c
995	* Makefile.in: Regenerate.
996
9972009-10-01  Rafael Avila de Espindola  <espindola@google.com>
998
999	* lto-plugin.c (pass_through_items): New.
1000	(num_pass_through_items): New.
1001	(all_symbols_read_handler): Update to use the -pass-through option.
1002	(process_option): Replace -libgcc with -pass-through.
1003
10042009-09-30  Rafael Avila de Espindola  <espindola@google.com>
1005
1006	* lto-plugin.c (onload): Return a ld_plugin_status. Don't require
1007	register_cleanup to be set.
1008
10092009-09-30  Rafael Avila de Espindola  <espindola@google.com>
1010
1011	* Makefile.am: Remove all reference to ltosymtab.
1012	* Makefile.in: Regenerate.
1013	* lto-symtab.c: Remove.
1014
10152009-05-21  Diego Novillo  <dnovillo@google.com>
1016
1017	* configure.ac: Remove call to AC_CHECK_GELF.
1018	Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
1019	* acinclude.m4: Do not include ../config/libelf.m4
1020	* Makefile.am (LIBELFLIBS): Define.
1021	(LIBELFINC): Define.
1022	(AM_CPPFLAGS): Add $(LIBELFINC).
1023	(ltosymtab_LDADD): Add $(LIBELFLIBS).
1024	(liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
1025	* lto-plugin.c: Always include <gelf.h>
1026	* lto-symtab.c: Likewise.
1027	* configure: Regenerate.
1028	* Makefile.in: Regenerate.
1029
10302009-03-23  Rafael Avila de Espindola  <espindola@google.com>
1031
1032	* lto-plugin.c (libgcc_filename): New.
1033	(all_symbols_read_handler): Pass libgcc to the linker.
1034	(all_symbols_read_handler): Parse -libgcc
1035
10362009-02-05  Rafael Avila de Espindola  <espindola@google.com>
1037
1038	* Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
1039	* Makefile.in: Regenerate.
1040	* lto-plugin.c (add_output_files): Argument is now a FILE.
1041	(exec_lto_wrapper): Use writeargv and pex.
1042
10432009-02-04  Rafael Avila de Espindola  <espindola@google.com>
1044
1045	Revert:
1046	2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
1047	* lto-plugin.c (exec_lto_wrapper): Use writeargv.
1048
1049
10502009-02-04  Rafael Avila de Espindola  <espindola@google.com>
1051
1052	* lto-plugin.c (exec_lto_wrapper): Use writeargv.
1053
10542009-01-29  Rafael Avila de Espindola  <espindola@google.com>
1055
1056	* lto-plugin.c: Include libiberty.h.
1057	(exec_lto_wrapper, claim_file_handler): Use asprintf instead of
1058	snprintf.
1059
10602009-01-29  Rafael Avila de Espindola  <espindola@google.com>
1061
1062	* lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
1063	file to lto-wrapper.
1064
10652009-01-28  Rafael Avila de Espindola  <espindola@google.com>
1066
1067	* lto-plugin.c (plugin_file_info): Remove fd and elf.
1068	(parse_table_entry): strdup entry->name and entry->comdat_key.
1069	(free_1): Free name and comdat_key. Don't close the file. Don't call
1070	elf_end.
1071	(claim_file_handler): Always call elf_end.
1072
10732008-12-23  Rafael Avila de Espindola  <espindola@google.com>
1074
1075	* Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
1076	-D_FILE_OFFSET_BITS=64
1077	* Makefile.in: Regenerate
1078
10792008-12-22  Rafael Avila de Espindola  <espindola@google.com>
1080
1081	* Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
1082	(lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
1083	* Makefile.in: Regenerate.
1084	* acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
1085	* configure: Regenerate.
1086	* configure.ac: Add AC_SUBST(target_noncanonical).
1087
10882008-12-08  Rafael Avila de Espindola  <espindola@google.com>
1089
1090	* lto-plugin.c: Include stdbool.h.
1091	(debug, nop): Declare as bool.
1092
10932008-12-08  Rafael Avila de Espindola  <espindola@google.com>
1094
1095	* lto-plugin.c (nop): New.
1096	(use_original_files): New.
1097	(all_symbols_read_handler): Call use_original_files if nop is true.
1098	(process_option): Parse the -nop option.
1099
11002008-12-08  Rafael Avila de Espindola  <espindola@google.com>
1101
1102	* lto-plugin.c (debug): New.
1103	(exec_lto_wrapper): Print argv if debug is true.
1104	(process_option): Process the -debug command line option.
1105
11062008-12-03  Rafael Avila de Espindola  <espindola@google.com>
1107
1108	* lto-plugin.c (process_option): The argument is now a single option,
1109	not a space separated list.
1110
11112008-12-02  Rafael Avila de Espindola  <espindola@google.com>
1112
1113	* lto-plugin.c: Include sys/types.h and sys/wait.h
1114	(output_files, num_output_files, lto_wrapper_argv,
1115	lto_wrapper_num_args): New.
1116	(free_2): Free output_files.
1117	(write_resolution): Disable.
1118	(add_output_files): New.
1119	(exec_lto_wrapper): New.
1120	(all_symbols_read_handler): Run lto-wrapper.
1121	(claim_file_handler): Free lto_file.name and call elf_end.
1122	(process_option): New.
1123
11242008-11-26  Rafael Espindola  <espindola@google.com>
1125
1126	* lto-plugin.c (add_input_file): New.
1127	(get_section): Return NULL if get_section fails.
1128	(write_resolution): New.
1129	(all_symbols_read_handler): Call add_input_file.
1130	(claim_file_handler): Unlink the correct file.
1131	(onload): Record add_input_file.
1132
11332008-09-23 Rafael Espindola  <espindola@google.com>
1134
1135	* Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
1136	Update the location of common.c.
1137	* Makefile.in: Regenerate.
1138	* common.c: Moved to gcc/lto.
1139	* common.h: Moved to gcc/lto.
1140	* lto-plugin.c: Update the location of common.h.
1141	* lto-symtab.c: Update the location of common.h.
1142
11432008-09-23 Rafael Espindola  <espindola@google.com>
1144
1145	* common.c: Include common.h.
1146	(lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
1147	sizes.
1148	* common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
1149	explicit sizes.
1150
11512008-09-23 Rafael Espindola  <espindola@google.com>
1152
1153	* lto-plugin.c (plugin_file_info): Add temp.
1154	(cleanup_handler): Only delete temporary files.
1155	(claim_file_handler): Initialize lto_file.temp.
1156
11572008-09-23  Rafael Espindola  <espindola@google.com>
1158
1159	* plugin-api.h: Moved to include.
1160
11612008-09-23 Rafael Espindola  <espindola@google.com>
1162
1163	* lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1164	format.
1165
11662008-09-22 Rafael Espindola  <espindola@google.com>
1167
1168	* plugin-api.h: Copy from binutils' cvs.
1169
11702008-09-22 Rafael Espindola  <espindola@google.com>
1171
1172	* lto-symtab.c (get_symbols, add_symbols): Update signature.
1173	* plugin-api.h: Copy from binutils' cvs.
1174
11752008-09-22 Rafael Espindola  <espindola@google.com>
1176
1177	* common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1178	Make extern
1179
11802008-09-10 Rafael Espindola  <espindola@google.com>
1181
1182	* lto-plugin.c (onload): add missing break statements and asserts.
1183	* lto-symtab.c (claim_file_handler): Make it static.
1184	(all_symbols_read_handler): Make it static.
1185	(all_file_handles): Make it static.
1186	(num_file_handles): Make it static.
1187	(register_claim_file): Make it static.
1188	(register_object): Indent properly.
1189
11902008-09-10  Rafael Avila de Espindola  <espindola@google.com>
1191
1192	* Makefile.am (ltosymtab_LDADD): Add -lelf.
1193	* Makefiel.in: Regenerate.
1194	* lto-plugin.c: Include ar.h.
1195	(claim_file_handler): Handle file->offset != 0.
1196	* lto-symtab.c: Include gelf.h.
1197	(all_file_handles): Change type.
1198	(register_object): New.
1199	(register_file): Add support for archives.
1200	(resolve): Update to new type of all_file_handles.
1201	(print): Update to new type of all_file_handles.
1202	(free_all): Update to new type of all_file_handles.
1203	(main): Update to new type of all_file_handles.
1204
12052008-09-10  Rafael Avila de Espindola  <espindola@google.com>
1206
1207	* lto-plugin.c (get_string_table): Remove.
1208	(get_section): Use elf_strptr instead of get_string_table.
1209
12102008-09-08  Doug Kwan  <dougkwan@google.com>
1211
1212	* lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1213	to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1214
12152008-09-08  Rafael Avila de Espindola  <espindola@google.com>
1216
1217	* Makefile.am (ltosymtab_SOURCES): add common.c.
1218	(ltosymtab_CFLAGS): New.
1219	(liblto_plugin_la_SOURCES): Add common.c.
1220	* Makefile.in: Regenerate.
1221	* common.c: New.
1222	* common.h: New.
1223	* lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1224	(plugin_symtab): New.
1225	(plugin_file_info): New.
1226	(register_all_symbols_read): New.
1227	(get_symbols): New.
1228	(claimed_files): New.
1229	(num_claimed_files): New.
1230	(translate): Don't drop the slot number.
1231	(free_1): New.
1232	(free_2): New.
1233	(all_symbols_read_handler): New.
1234	(claim_file_handler): Record every claimed file.
1235	(onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1236	LDPT_GET_SYMBOLS.
1237	* lto-symtab.c: Include stdlib.h, string.h and common.h.
1238	(current_file_handle): Remove.
1239	(ld_plugin_all_symbols_read_handler): New.
1240	(plugin_handle): New.
1241	(file_handle): New.
1242	(all_file_handles): New.
1243	(num_file_handles): New.
1244	(get_symbols): New.
1245	(register_all_symbols_read): New.
1246	(add_symbols): Don't print the symbols, just record them.
1247	(ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1248	LDPT_GET_SYMBOLS.
1249	(load_plugin): Use plugin_handle.
1250	(register_file): Add the file handle to all_file_handles.
1251	(resolve): New.
1252	(print): New.
1253	(unload_plugin): New.
1254	(free_all): New.
1255	(main): Call all_symbols_read_handler and free resources.
1256
12572008-09-03  Rafael Avila de Espindola  <espindola@google.com>
1258
1259	* Makefile.am (AM_CFLAGS): New.
1260	(ltosymtab_LDADD): Remove -lelf. Add -ldl.
1261	(lib_LTLIBRARIES): New.
1262	(liblto_plugin_la_SOURCES): New.
1263	(liblto_plugin_la_LIBADD): New.
1264	* Makefile.in: Regenerate.
1265	* acinclude.m4: Don't include ../config/acx.m4 and
1266	../config/no-executables.m4.
1267	Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1268	../libtool.m4.
1269	* aclocal.m4: Regenerate.
1270	* configure: Regenerate.
1271	* configure.ac: Use AM_PROG_LIBTOOL.
1272	* lto-plugin.c: New.
1273	* lto-symtab.c: Rewrite to use the plugin.
1274	* plugin-api.h: New.
1275
12762008-08-25  Rafael Avila de Espindola  <espindola@google.com>
1277
1278	* configure: Regenerate.
1279	* configure.ac: Use AC_CHECK_GELF.
1280	* lto-symtab.c: Include gelf.h.
1281	(get_string_table): Use size independent API.
1282	(printTable): Use lld to print 64 bit integers.
1283
12842008-08-22  Rafael Avila de Espindola  <espindola@google.com>
1285
1286	* lto-symtab.c (parse_table_entry): Assert entry->kind and
1287	entry->visibility are valid.
1288
12892008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1290	* lto-symtab.c (table_entry): Add comdat.
1291	(parse_table_entry): Read comdat.
1292
12932008-08-21  Rafael Espindola  <espindola@google.com>
1294
1295	* Makefile.am: New.
1296	* Makefile.in: New.
1297	* acinclude.m4: New.
1298	* aclocal.m4: New.
1299	* configure: New.
1300	* configure.ac: New.
1301	* lto-symtab.c: New.
1302