Update comments in float128-call.c test.
[official-gcc.git] / lto-plugin / ChangeLog
blobcf8827626e0483528e21dbef628dbb96a2ed08a2
1 2021-06-25  Richard Biener  <rguenther@suse.de>
3         * lto-plugin.c (ltrans_objects): New global.
4         (all_symbols_read_handler): If -ltrans-objects was specified,
5         add the output files from the specified file directly.
6         (process_option): Handle -ltrans-objects.
8 2021-05-10  Martin Liska  <mliska@suse.cz>
10         * lto-plugin.c (LTO_SEGMENT_NAME): Remove.
11         (LTO_SYMTAB_PREFIX): Likewise.
12         (LTO_SYMTAB_PREFIX_LEN): Likewise.
13         (LTO_SYMTAB_EXT_PREFIX): Likewise.
14         (LTO_SYMTAB_EXT_PREFIX_LEN): Likewise.
15         (LTO_LTO_PREFIX): Likewise.
16         (LTO_LTO_PREFIX_LEN): Likewise.
17         (OFFLOAD_SECTION): Likewise.
18         (OFFLOAD_SECTION_LEN): Likewise.
19         (startswith): New function.
20         (all_symbols_read_handler): Use it.
21         (process_symtab): Likewise.
22         (process_symtab_extension): Likewise.
23         (process_offload_section): Likewise.
24         (process_option): Likewise.
26 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
28         PR bootstrap/99703
29         * configure: Regenerated.
31 2021-04-21  Martin Liska  <mliska@suse.cz>
33         * lto-plugin.c (exec_lto_wrapper): Make a temp variable.
35 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37         * configure: Re-generate.
39 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
41         * configure: Regenerate.
43 2020-11-25  Matthew Malcomson  <matthew.malcomson@arm.com>
45         * Makefile.am: Avoid using sanitizer.
46         * Makefile.in: Regenerate.
48 2020-09-10  Jonathan Yong  <10walls@gmail.com>
50         * Makefile.am: drop versioning from libtool completely.
51         * Makefile.in: regenerate.
53 2020-09-09  Nick Clifton  <nickc@redhat.com>
55         * lto-plugin.c (struct plugin_symtab): Add last_sym field.
56         (parse_symtab_extension): Only read as many entries as are
57         available in the buffer.  Store the data read into the symbol
58         table indexed from last_sym.  Increment last_sym.
60 2020-07-30  H.J. Lu  <hjl.tools@gmail.com>
62         PR bootstrap/96202
63         * configure: Regenerated.
65 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
67         PR bootstrap/95413
68         * configure: Regenerated.
70 2020-05-26  Alexandre Oliva  <oliva@adacore.com>
72         * lto-plugin.c (skip_in_suffix): New.
73         (exec_lto_wrapper): Use skip_in_suffix and concat to build
74         non-temporary output names.
75         (onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
76         override link_output_name with it.
78 2020-05-12  H.J. Lu  <hongjiu.lu@intel.com>
80         PR bootstrap/94998
81         * configure: Regenerated.
83 2020-05-05  Eric Botcazou  <ebotcazou@adacore.com>
85         * lto-plugin.c: Document -linker-output-auto-notlo-rel option.
86         (linker_output_set): Change type to bool.
87         (linker_output_known): Likewise.
88         (linker_output_auto_nolto_rel): New variable.
89         (all_symbols_read_handler): Take it into account.
90         <LDPO_REL>: Do not issue the warning if it is set.
91         (process_option): Process -linker-output-auto-notlo-rel.
92         (cleanup_handler): Remove unused variable.
93         (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
95 2020-04-28  H.J. Lu  <hongjiu.lu@intel.com>
97         PR bootstrap/94739
98         * configure: Regenerated.
100 2020-04-25  H.J. Lu  <hongjiu.lu@intel.com>
102         PR bootstrap/94739
103         * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
104         * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
105         AC_SUBST(CET_HOST_FLAGS).
106         * Makefile.in: Regenerated.
107         * aclocal.m4: Likewise.
108         * configure: Likewise.
110 2020-03-19  Martin Liska  <mliska@suse.cz>
112         * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
113         (LTO_SYMTAB_PREFIX): ... this.
114         (LTO_SECTION_PREFIX_LEN): Rename to ...
115         (LTO_SYMTAB_PREFIX_LEN): ... this.
116         (LTO_SYMTAB_EXT_PREFIX): New.
117         (LTO_SYMTAB_EXT_PREFIX_LEN): New.
118         (LTO_LTO_PREFIX): New.
119         (LTO_LTO_PREFIX_LEN): New.
120         (parse_table_entry): Fill up unused to zero.
121         (parse_table_entry_extension): New.
122         (parse_symtab_extension): New.
123         (finish_conflict_resolution): Change type
124         for resolution.
125         (process_symtab): Use new macro name.
126         (process_symtab_extension): New.
127         (claim_file_handler): Parse also process_symtab_extension.
128         (onload): Call new add_symbols_v2.
130 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
132         Update copyright years.
134 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
136         * configure: Regenerate.
138 2019-05-15  Iain Sandoe  <iain@sandoe.co.uk>
140         * lto-plugin.c (cleanup_handler): Remove unused var.
142 2019-05-15  Iain Sandoe  <iain@sandoe.co.uk>
144         * lto-plugin.c (exec_lto_wrapper): Make the wrapper
145         arguments filename more user-friendly.
146         (file_exists, maybe_unlink): New.
147         (cleanup_handler): Use maybe unlink to handle the
148         case when temps should be saved.
149         (process_option): Look for -v, —-version, -save-temps.
150         (onload): Record the linker output file name.
151         Check for -v, —-version, -save-temps in the GCC collect
152         options environment.
154 2019-02-26  Martin Liska  <mliska@suse.cz>
156         * lto-symtab.c: Remove.
158 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
160         Update copyright years.
162 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
164         PR bootstrap/82856
165         * configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
166         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
168 2018-05-30  Jan Hubicka  <jh@suse.cz>
170         * lto-plugin.c: (non_claimed_files): New static var.
171         (linker_ouput_known): New static var.
172         (all_symbols_read_handler): When user specifies linker output do not
173         imply it; output warning when nonlto-rel mode is forced.
174         (claim_file_header): Record number of nonclaimed files.
175         (process_option): Remember if linker output is known
177 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
179         PR jit/85384
180         * configure: Regenerate.
182 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
184         Update copyright years.
186 2017-07-21  Georg-Johann Lay  <avr@gjlay.de>
188         PR lto/81487
189         * lto-plugin.c (claim_file_handler): Use xasprintf instead of
190         asprintf.
191         [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
193 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
195         PR other/79046
196         * configure.ac: Add GCC_BASE_VER.
197         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
198         get version from BASE-VER file.
199         * configure: Regenerated.
200         * Makefile.in: Regenerated.
202 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
204         Update copyright years.
206 2016-11-15  Matthias Klose  <doko@ubuntu.com>
208         * configure: Regenerate.
210 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
212         PR driver/68463
213         * lto-plugin.c (struct plugin_offload_file): New.
214         (offload_files): Change type.
215         (offload_files_last, offload_files_last_obj): New.
216         (offload_files_last_lto): New.
217         (free_2): Adjust accordingly.
218         (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
219         Don't call free_1 for offload_files.  Write names of object files with
220         offloading to the temporary file.  Add new option to lto_arg_ptr.
221         (claim_file_handler): Don't claim file if it contains offload sections
222         without LTO sections.  If it contains offload sections, add to the list.
224 2016-01-15  Martin Liska  <mliska@suse.cz>
226         * lto-plugin.c (all_symbols_read_handler): Assign default
227         value to a string variable.
229 2015-11-25  Jan Hubicka  <jh@suse.cz>
231         PR lto/67548
232         * lto-plugin.c (linker_output, linker_output_set): New statics.
233         (all_symbols_read_handler): Add -flinker-output option.
234         (onload): Record linker_output info.
236 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
238         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
239         * configure: Regenerate.
240         * config.h.in: Ditto.
242 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
244         * Makefile.am: Drop 'by automake version' from top-level comment.
245         * Makefile.in: Regenerated with automake-1.11.6.
246         * aclocal.m4: Likewise.
247         * configure: Likewise.
249 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
251         * lto-plugin.c (release_input_file): Removed.
252         (claim_file_handler): Don't call release_input_file.
253         (onload): Don't set release_input_file.
255 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
257         * lto-plugin.c (claim_file_handler): Pass handle to
258         release_input_file.
260 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
262         * lto-plugin.c (claim_file_handler): Call release_input_file only
263         if file is claimed.
265 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
267         * lto-plugin.c (claim_file_handler): Call release_input_file only
268         if it is not NULL.
270 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
272         PR lto/64837
273         * lto-plugin.c (release_input_file): New.
274         (claim_file_handler): Call release_input_file.
275         (onload): Set release_input_file.
277 2014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
279         * lto-plugin.c (offload_files, num_offload_files): New static variables.
280         (free_1): Use arguments instead of global variables.
281         (free_2): Free offload_files.
282         (all_symbols_read_handler): Add names from offload_files to lto-wrapper
283         arguments.
284         (claim_file_handler): Do not add file to claimed_files if it contains
285         offload sections without LTO sections.  Add it to offload_files instead.
287 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
289         PR bootstrap/63784
290         * configure: Regenerated.
292 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
293             Bernd Schmidt  <bernds@codesourcery.com>
294             Andrey Turetskiy  <andrey.turetskiy@intel.com>
295             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
297         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
298         (struct plugin_objfile): Add new field "offload".
299         (process_offload_section): New static function.
300         (claim_file_handler): Claim file if it contains offload sections.
302 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
303             Thomas Schwinge  <thomas@codesourcery.com>
304             Ilya Verbin  <ilya.verbin@intel.com>
305             Andrey Turetskiy  <andrey.turetskiy@intel.com>
307         * Makefile.am (libexecsubdir): Tweak for the possibility of being
308         configured for offload compiler.
309         (accel_dir_suffix, real_target_noncanonical): New variables substituted
310         by configure.
311         * Makefile.in: Regenerate.
312         * configure: Regenerate.
313         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
314         variables.
316 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
318         PR target/63610
319         * configure: Regenerate.
321 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
323         PR bootstrap/62260
324         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
325         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
326         $host_subdir.
327         * Makefile.in: Regenerated.
328         * configure: Likewise.
330 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
332         * configure.ac (--with-libiberty): New configure option.
333         * configure: Regenerate.
334         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
335         variables.
336         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
337         (liblto_plugin_la_DEPENDENCIES): Use them.
338         * Makefile.in: Regenerate.
340 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
342         PR lto/60981
343         * configure.ac: Check for -static-libgcc.
344         * configure: Regenerate.
346 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
348         PR sanitizer/56781
349         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
350         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
351         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
352         over ../libiberty/pic/libiberty.a if the former exists.
353         * Makefile.in: Regenerated.
355         PR sanitizer/56781
356         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
357         * Makefile.in: Regenerated.
359 2014-04-02  Richard Biener  <rguenther@suse.de>
361         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
362         is set in COLLECT_GCC_OPTIONS.
364 2014-03-28  Richard Biener  <rguenther@suse.de>
366         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
368 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
370         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
371         for gcc.
372         * configure: Regenerate.
373         * Makefile.am (AM_LDFLAGS): New variable.
374         (liblto_plugin_la_LDFLAGS): Add it.
375         * Makefile.in: Regenerate.
377 2013-09-20  Alan Modra  <amodra@gmail.com>
379         * configure: Regenerate.
381 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
383         * configure: Regenerated.
385 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
387         * lto-plugin.c: Fix typo.
389 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
391         * configure: Regenerated.
393 2012-02-22  Kai Tietz  <ktietz@redhat.com>
395         PR lto/50616
396         * lto-plugin.c (PRI_LL): New macro.
397         (dump_symtab): Use PRI_LL instead of ll in print.
398         (process_symtab): Use PRI_LL instead of ll in scan.
400 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
402         * configure: Regenerate.
404 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
406         * configure: Regenerate.
408 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
410         * configure: Regenerate.
412 2011-10-02  Jan Hubicka  <jh@suse.cz>
414         PR lto/47247
415         * lto-plugin.c (get_symbols_v2): New variable.
416         (write_resolution): Use V2 API when available.
417         (onload): Handle LDPT_GET_SYMBOLS_V2.
419 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
420             Andi Kleen  <ak@linux.intel.com>
422         PR lto/50568
423         * lto-plugin.c (sym_aux): Change id to unsigned long long.
424         (plugin_symtab): Likewise.
425         (dump_symtab): Likewise.
426         (resolve_conflicts): Likewise.
427         (process_symtab): Likewise.
429 2011-08-10  Richard Guenther  <rguenther@suse.de>
431         PR bootstrap/49907
432         lto-plugin/
433         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
434         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
435         * configure: Regenerate.
436         * Makefile.in: Likewise.
437         * aclocal.m4: Likewise.
439 2011-04-20  Jim Meyering  <meyering@redhat.com>
441         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
443 2011-04-05  Richard Guenther  <rguenther@suse.de>
445         PR bootstrap/48431
446         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
448 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
450         * Makefile.in: Regenerate.
451         * aclocal.m4: Regenerate.
452         * configure: Regenerate.
454 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
456         * Makefile.am (all-local): Rename from 'all'.
457         * Makefile.in: Regenerate.
459 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
461         PR lto/47225
462         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
463         (liblto_plugin_la_LDFLAGS): Add -module.
464         (copy_lto_plugin): Renamed to...
465         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
466         of static modules.
467         * Makefile.in: Rebuild.
469 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
471         PR lto/47225
472         * Makefile.am (Wc): New helper for encoding -Wc,.
473         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
474         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
475         * Makefile.in: Regenerated.
477 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
479         Revert:
481         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
483         PR lto/47225
484         * Makefile.am (Wl): New helper for encoding -Wl,.
485         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
486         * Makefile.in: Regenerated.
488 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
490         PR lto/47225
491         * Makefile.am (Wl): New helper for encoding -Wl,.
492         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
493         * Makefile.in: Regenerated.
495 2011-01-25  Ian Lance Taylor  <iant@google.com>
497         * lto-plugin.c (gold_version): New static variable.
498         (all_symbols_read_handler): Don't check pass_through_items if
499         using gold 1.11 or later.
500         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
502 2011-01-12  Richard Guenther  <rguenther@suse.de>
504         PR lto/47264
505         * lto-plugin.c (parse_table_entry): Use memcpy to access
506         unaligned fields.
508 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
510         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
511         * Makefile.in: Regenerate.
513 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
515         Revert last change.
517 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
519         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
520         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
521         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
522         * Makefile.in: Regenerate.
524 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
526         PR middle-end/46674
527         PR lto/43157
528         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
529         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
530         * configure: Regenerate.
531         * config.h.in: Likewise.
533 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
535         PR target/40125
536         PR lto/46695
537         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
538         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
539         override -bindir setting.
540         * aclocal.m4: Regenerate.
541         * configure: Regenerate.
542         * Makefile.in: Regenerate.
544 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
546         * config.h.in: Regenerated.
547         * configure: Regenerated.
548         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
549         * lto-plugin.c (WIFEXITED): Define default.
550         (WEXITSTATUS): Likeiwse.
552 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
554         * config.h.in: Regenerated.
555         * configure: Regenerated.
556         * Makefile.in: Regenerated.
557         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
558         * lto-plugin.c:  Include sys/wait.h conditionally.
559         * aclocal.m4: Regenerated.
561 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
563         * lto-plugin.c (add_output_files): Fix memory leak.
565 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
567         PR bootstrap/46397
568         PR bootstrap/46362
569         * configure.ac: Add AC_TYPE_INT64_T test.
570         * config.h.in: Regenerate.
571         * configure: Likewise.
572         * lto-plugin.c (debug): Use char not bool.
573         (nop): Likewise.
574         (check_1): Rename from check, and use int not bool for gate argument.
575         (check): Macro wrapper for the above to coerce gate argument into
576         boolean-valued integer in case it has pointer type.
577         (parse_table_entry): Use 0 not false.
578         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
579         into two 32-bit parts and printing as hex ints.
581 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
583         PR lto/46291
584         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
586 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
588         PR lto/46273
589         * lto-plugin.h: Delete.
590         * lto-plugin-elf.c: Likewise.
591         * lto-plugin-coff.c: Likewise.
592         * configure.ac: Don't use libelf, don't source config.gcc.
593         (LIBELFLIBS): Delete.
594         (LIBELFINC): Delete.
595         (LTO_FORMAT): Delete.
596         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
597         (config.h): Add AC_CONFIG_HEADERS directive.
598         * Makefile.am (LIBELFLIBS): Delete.
599         (LIBELFINC): Delete.
600         (LTO_FORMAT): Delete.
601         (DEFS): Import.
602         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
603         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
604         any object-format-specific source file in the link.
605         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
606         * config.h.in: Generate.
607         * configure: Regenerate.
608         * Makefile.in: Likewise.
609         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
610         (LTO_SEGMENT_NAME): New definition.
611         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
612         (LTO_SECTION_PREFIX_LEN): New definition.
613         (struct sym_aux): Struct definition moved here from lto-plugin.h.
614         (struct plugin_symtab): Likewise.
615         (struct plugin_objfile): Likewise.
616         (struct plugin_objfile): New struct def.
617         (enum symbol_style): New enum type.
618         (add_symbols): Make static.
619         (claimed_files): Likewise.
620         (num_claimed_files): Likewise.
621         (sym_style): New global.
622         (check): Make static.
623         (parse_table_entry): Likewise.  Respect sym_style when extracting
624         symbol from symtab entry.
625         (translate): Make static.
626         (resolve_conflicts): Likewise.
627         (process_symtab): New function, per-section callback version of
628         old object-format-specific handling from deleted lto-plugin-elf.c.
629         (claim_file_handler): Convert ELF-specific version from deleted
630         lto-plugin-elf.c to simple_object interface and move here.
631         (process_options): Allow new '-sym-style=' option.
632         (onload): Don't call deleted onload_format_checks hook.
634 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
636         * lto-plugin.c (dump_symtab): Correct printf argument type.
637         (finish_conflict_resolution): Initialize resolution.
639 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
641         PR bootstrap/45951
642         * configure.ac: Add AC_CANONICAL_SYSTEM.
643         * configure: Regenerated.
645 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
647         * configure.ac: Source config.gcc to determine lto_binary_reader.
648         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
649         * Makefile.am (LTO_FORMAT): Import.
650         (liblto_plugin_la_SOURCES): Add object format dependent module
651         defined by LTO_FORMAT.
652         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
653         and work around libtool warning.
654         * configure: Regenerate.
655         * Makefile.in: Likewise.
656         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
657         (struct sym_aux): Likewise.
658         (struct plugin_symtab): Likewise.
659         (struct plugin_file_info): Likewise.
660         (LTO_SECTION_PREFIX): Likewise.
661         (add_symbols):  Make non-static.
662         (claimed_files): Likewise.
663         (num_claimed_files): Likewise.
664         (check): Likewise.
665         (parse_table_entry): Likewise.
666         (translate): Likewise.
667         (resolve_conflicts): Likewise.
668         (process_symtab): Move to new lto-plugin-elf.c object format dependent
669         source file.
670         (claim_file_handler): Likewise, and make non-static.
671         (onload): Call new onload_format_checks function.
672         * lto-plugin.h: New file.
673         (LTO_SECTION_PREFIX): Move here.
674         (struct sym_aux): Likewise.
675         (struct plugin_symtab): Likewise.
676         (struct plugin_file_info): Likewise.
677         (claim_file_handler): Add new function prototype.
678         (onload_format_checks): Likewise.
679         (check): Declare extern.
680         (translate): Likewise.
681         (parse_table_entry): Likewise.
682         (resolve_conflicts): Likewise.
683         (add_symbols):  Likewise.
684         (claimed_files): Likewise.
685         (num_claimed_files): Likewise.
686         * lto-plugin-elf.c (process_symtab): Move here.
687         (claim_file_handler): Likewise, and make non-static.
688         (onload_format_checks): New function factored out from onload.
689         * lto-plugin-coff.c (claim_file_handler): New function stub.
690         (onload_format_checks): Likewise.
692 2010-08-05  Andi Kleen  <ak@linux.intel.com>
694         * lto-plugin.c: Include <hashtab.h>
695         (sym_aux): Add next_conflict field to save conflict chains.
696         (plugin_file_info): Add conflicts symtab.
697         (parse_table_entry): Initialize aux->next_conflict.
698         (process_symtab): Increment found.
699         (dump_symtab): Add.
700         (finish_conflict_resolution): Add.
701         (free_symtab): Add.
702         (write_resolution): Remove symbols loop and move into
703         dump_symtab. Call dump_symtab for main symbol and conflicts table.
704         Call free_symtab to free conflicts table.
705         (SWAP): Add.
706         (eq_sym): Add.
707         (hash_sym): Add.
708         (symbol_strength): Add.
709         (resolve_conflicts): Add.
710         (claim_file_handler): Add n variable. Check return value of
711         process_symtab. Call resolve_conflicts.
713 2010-07-27  Andi Kleen  <ak@linux.intel.com>
715         * lto-plugin.c (translate): Remove debug fprintf.
717 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
719         PR bootstrap/45042
720         * lto-plugin.c (translate): Cast to unsigned long.
722 2010-07-23   Andi Kleen  <ak@linux.intel.com>
724         PR lto/44992
725         * lto-plugin.c (sym_aux): Add.
726         (plugin_symtab): Remove slots. Add aux and id.
727         (parse_table_entry): Change to use aux instead of slots.
728         (LTO_SECTION_PREFIX): Add.
729         (translate): Improve buffer allocation. Change to append
730         symbols to existing out buffer.
731         (get_section): Remove.
732         (process_symtab): Add.
733         (free_2): Free symtab->aux.
734         (write_resolution): Handle aux instead of slots.
735         Print sub id to resolution file.
736         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
737         calls with call to process_symtab.
739 2010-07-22  Richard Guenther  <rguenther@suse.de>
741         * Makefile.am: New copy_lto_plugin rule to install the plugin
742         into ../gcc.
743         * Makefile.in: Regenerated.
745 2010-05-21  Richard Guenther  <rguenther@suse.de>
747         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
749 2010-05-07  Richard Guenther <rguenther@suse.de>
751         * lto-plugin.c (free_2): Do not free resolution_file.
752         (write_resolution): Check that we were passed a resolution file.
753         (all_symbols_read_handler): Adjust.
754         (cleanup_handler): Do not remove the resolution file.
755         (process_option): Handle -fresolution=.
757 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
759         PR other/43620
760         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
761         * Makefile.in: Regenerate.
763 2010-04-23  Richard Guenther  <rguenther@suse.de>
765         PR lto/41550
766         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
767         (translate): Likewise.
768         (all_symbols_read_handler): Likewise.
769         (claim_file_handler): Likewise.
770         (process_option): Likewise.
771         (add_output_files): Likewise.  Remove filename length limit.
773 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
775         * Makefile.in: Regenerate.
776         * aclocal.m4: Regenerate.
778 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
780         PR lto/43336
781         * lto-plugin.c (cleanup_handler): Delete temporary output files.
783 2010-01-11  Richard Guenther  <rguenther@suse.de>
785         PR lto/41569
786         * Makefile.am: Disable dependencies.
787         * Makefile.in: Regenerated.
789 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
791         PR lto/42520
792         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
793         if -v is passed.
795 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
797         PR bootstrap/42306
798         * configure: Regenerated.
799         * Makefile.in: Likewise.
801 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
803         PR bootstrap/42096
804         * lto-plugin.c (claim_file_handler): Print offsets in hex.
806 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
808         * lto-plugin.c (write_resolution): Assume resolution_file is set.
809         Print the symbol name.
810         (all_symbols_read_handler): Create a resolution file.
811         Pass it to gcc.
812         (cleanup_handler): Remove the resolution file.
813         (process_option): Drop the -resolution option.
815 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
817         * lto-plugin.c (temp_obj_dir_name): Remove.
818         (arguments_file_name): New.
819         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
820         (exec_lto_wrapper):  Create arguments file with make_temp_file.
821         (cleanup_handler): Don't remove the temporary directory. Remove the
822         arguments file.
823         (onload): Don't create the temporary directory.
825 2009-11-04  Richard Guenther  <rguenther@suse.de>
826             Rafael Avila de Espindola  <espindola@google.com>
828         * lto-plugin.c (plugin_file_info): Remove temp field.
829         (cleanup_handler): Don't delete temporary objects.
830         (claim_file_handler): Don't create temporary objects.
832 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
834         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
836 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
838         PR41871
839         * lto-plugin.c (claim_file_handler): Close files that we created.
841 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
843         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
844         LDPL_ERROR
846 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
848         PR lto/41652
849         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
850         * configure: Regenerate.
852 2009-10-26  Richard Guenther  <rguenther@suse.de>
854         * configure.ac: Use AM_MAINTAINER_MODE.
855         * acinclude.m4: Remove.
856         * configure: Re-generate.
857         * Makefile.in: Likewise.
858         * aclocal.m4: Likewise.
860 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
861     
862         PR40790
863         * configure: Regenerate.
864         * configure.ac: Add AC_TYPE_UINT64_T.
866 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
868         * lto-plugin.c (message): New variable.
869         (check): New function.
870         (parse_table_entry, translate, write_resolution,add_output_files,
871         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
872         assert.
873         (cleanup_handler): Use check instead of assert. Remove the arguments
874         file if it exists.
876 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
878         * lto-plugin.c (resolution_file): New.
879         (free_1): Update comment.
880         (free_2): Free resolution_file.
881         (write_resolution): Write resolution to specified file. Use the
882         syms array from the symbol table.
883         (all_symbols_read_handler): Delay call to free_1 past call to
884         write_resolution.
885         (process_option): Add a -resolution option.
887 2009-10-13  Richard Guenther  <rguenther@suse.de>
889         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
890         correct libiberty.
891         * Makefile.in: Regenerated.
893 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
895         * lto-plugin.c (add_input_library): New.
896         (all_symbols_read_handler): Use add_input_library for items that
897         start with -l.
898         (process_option): Fit in 80 columns.
899         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
901 2009-10-02  Diego Novillo  <dnovillo@google.com>
903         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
904         and -D_FILE_OFFSET_BITS=64.
905         * configure.ac: Add AC_SYS_LARGEFILE.
906         * configure: Regenerate.
907         * Makefile.in: Regenerate.
908         * lto-plugin.c: Fix copyright boilerplate.
910 2009-10-02  Diego Novillo  <dnovillo@google.com>
912         * Makefile.am (ACLOCAL_AMFLAGS): Define.
913         * aclocal.m4: Regenerate with aclocal-2.64
914         * acinclude.m4: Remove.
915         * Makefile.in: Regenerate with automake-1.11
916         * configure.ac (AC_PREREQ): Update to 2.64.
917         * configure: Regenerate.
919 2009-10-02  Diego Novillo  <dnovillo@google.com>
921         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
922         and -D_FILE_OFFSET_BITS=64.
923         * configure.ac: Add AC_SYS_LARGEFILE.
924         * configure: Regenerate.
925         * Makefile.in: Regenerate.
926         * lto-plugin.c: Fix copyright boilerplate.
928 2009-10-02  Diego Novillo  <dnovillo@google.com>
930         * Makefile.am (ACLOCAL_AMFLAGS): Define.
931         * aclocal.m4: Regenerate with aclocal-2.64
932         * acinclude.m4: Remove.
933         * Makefile.in: Regenerate with automake-1.11
934         * configure.ac (AC_PREREQ): Update to 2.64.
935         * configure: Regenerate.
937 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
939         * Makefile.am (liblto_plugin_la_SOURCES): Remove
940         $(top_srcdir)/../gcc/lto/common.c
941         * Makefile.in: Regenerate.
943 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
945         * lto-plugin.c (pass_through_items): New.
946         (num_pass_through_items): New.
947         (all_symbols_read_handler): Update to use the -pass-through option.
948         (process_option): Replace -libgcc with -pass-through.
949         
950 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
952         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
953         register_cleanup to be set.
955 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
957         * Makefile.am: Remove all reference to ltosymtab.
958         * Makefile.in: Regenerate.
959         * lto-symtab.c: Remove.
961 2009-05-21  Diego Novillo  <dnovillo@google.com>
963         * configure.ac: Remove call to AC_CHECK_GELF.
964         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
965         * acinclude.m4: Do not include ../config/libelf.m4
966         * Makefile.am (LIBELFLIBS): Define.
967         (LIBELFINC): Define.
968         (AM_CPPFLAGS): Add $(LIBELFINC).
969         (ltosymtab_LDADD): Add $(LIBELFLIBS).
970         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
971         * lto-plugin.c: Always include <gelf.h>
972         * lto-symtab.c: Likewise.
973         * configure: Regenerate.
974         * Makefile.in: Regenerate.
976 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
978         * lto-plugin.c (libgcc_filename): New.
979         (all_symbols_read_handler): Pass libgcc to the linker.
980         (all_symbols_read_handler): Parse -libgcc
982 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
984         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
985         * Makefile.in: Regenerate.
986         * lto-plugin.c (add_output_files): Argument is now a FILE.
987         (exec_lto_wrapper): Use writeargv and pex.
989 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
991         Revert:
992         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
993         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
996 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
998         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1000 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
1002         * lto-plugin.c: Include libiberty.h.
1003         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
1004         snprintf.
1006 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
1008         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
1009         file to lto-wrapper.
1011 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
1013         * lto-plugin.c (plugin_file_info): Remove fd and elf.
1014         (parse_table_entry): strdup entry->name and entry->comdat_key.
1015         (free_1): Free name and comdat_key. Don't close the file. Don't call
1016         elf_end.
1017         (claim_file_handler): Always call elf_end.
1019 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
1021         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
1022         -D_FILE_OFFSET_BITS=64
1023         * Makefile.in: Regenerate
1025 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
1027         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
1028         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
1029         * Makefile.in: Regenerate.
1030         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
1031         * configure: Regenerate.
1032         * configure.ac: Add AC_SUBST(target_noncanonical).
1034 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
1036         * lto-plugin.c: Include stdbool.h.
1037         (debug, nop): Declare as bool.
1039 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
1041         * lto-plugin.c (nop): New.
1042         (use_original_files): New.
1043         (all_symbols_read_handler): Call use_original_files if nop is true.
1044         (process_option): Parse the -nop option.
1046 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
1048         * lto-plugin.c (debug): New.
1049         (exec_lto_wrapper): Print argv if debug is true.
1050         (process_option): Process the -debug command line option.
1052 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
1054         * lto-plugin.c (process_option): The argument is now a single option,
1055         not a space separated list.
1057 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
1059         * lto-plugin.c: Include sys/types.h and sys/wait.h
1060         (output_files, num_output_files, lto_wrapper_argv,
1061         lto_wrapper_num_args): New.
1062         (free_2): Free output_files.
1063         (write_resolution): Disable.
1064         (add_output_files): New.
1065         (exec_lto_wrapper): New.
1066         (all_symbols_read_handler): Run lto-wrapper.
1067         (claim_file_handler): Free lto_file.name and call elf_end.
1068         (process_option): New.
1070 2008-11-26  Rafael Espindola  <espindola@google.com>
1072         * lto-plugin.c (add_input_file): New.
1073         (get_section): Return NULL if get_section fails.
1074         (write_resolution): New.
1075         (all_symbols_read_handler): Call add_input_file.
1076         (claim_file_handler): Unlink the correct file.
1077         (onload): Record add_input_file.
1079 2008-09-23 Rafael Espindola  <espindola@google.com>
1081         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
1082         Update the location of common.c.
1083         * Makefile.in: Regenerate.
1084         * common.c: Moved to gcc/lto.
1085         * common.h: Moved to gcc/lto.
1086         * lto-plugin.c: Update the location of common.h.
1087         * lto-symtab.c: Update the location of common.h.
1089 2008-09-23 Rafael Espindola  <espindola@google.com>
1091         * common.c: Include common.h.
1092         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
1093         sizes.
1094         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
1095         explicit sizes.
1097 2008-09-23 Rafael Espindola  <espindola@google.com>
1099         * lto-plugin.c (plugin_file_info): Add temp.
1100         (cleanup_handler): Only delete temporary files.
1101         (claim_file_handler): Initialize lto_file.temp.
1103 2008-09-23  Rafael Espindola  <espindola@google.com>
1105         * plugin-api.h: Moved to include.
1107 2008-09-23 Rafael Espindola  <espindola@google.com>
1109         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1110         format.
1112 2008-09-22 Rafael Espindola  <espindola@google.com>
1114         * plugin-api.h: Copy from binutils' cvs.
1116 2008-09-22 Rafael Espindola  <espindola@google.com>
1118         * lto-symtab.c (get_symbols, add_symbols): Update signature.
1119         * plugin-api.h: Copy from binutils' cvs.
1121 2008-09-22 Rafael Espindola  <espindola@google.com>
1123         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1124         Make extern
1126 2008-09-10 Rafael Espindola  <espindola@google.com>
1128         * lto-plugin.c (onload): add missing break statements and asserts.
1129         * lto-symtab.c (claim_file_handler): Make it static.
1130         (all_symbols_read_handler): Make it static.
1131         (all_file_handles): Make it static.
1132         (num_file_handles): Make it static.
1133         (register_claim_file): Make it static.
1134         (register_object): Indent properly.
1136 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
1138         * Makefile.am (ltosymtab_LDADD): Add -lelf.
1139         * Makefiel.in: Regenerate.
1140         * lto-plugin.c: Include ar.h.
1141         (claim_file_handler): Handle file->offset != 0.
1142         * lto-symtab.c: Include gelf.h.
1143         (all_file_handles): Change type.
1144         (register_object): New.
1145         (register_file): Add support for archives.
1146         (resolve): Update to new type of all_file_handles.
1147         (print): Update to new type of all_file_handles.
1148         (free_all): Update to new type of all_file_handles.
1149         (main): Update to new type of all_file_handles.
1151 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
1153         * lto-plugin.c (get_string_table): Remove.
1154         (get_section): Use elf_strptr instead of get_string_table.
1156 2008-09-08  Doug Kwan  <dougkwan@google.com>
1158         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1159         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1161 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
1163         * Makefile.am (ltosymtab_SOURCES): add common.c.
1164         (ltosymtab_CFLAGS): New.
1165         (liblto_plugin_la_SOURCES): Add common.c.
1166         * Makefile.in: Regenerate.
1167         * common.c: New.
1168         * common.h: New.
1169         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1170         (plugin_symtab): New.
1171         (plugin_file_info): New.
1172         (register_all_symbols_read): New.
1173         (get_symbols): New.
1174         (claimed_files): New.
1175         (num_claimed_files): New.
1176         (translate): Don't drop the slot number.
1177         (free_1): New.
1178         (free_2): New.
1179         (all_symbols_read_handler): New.
1180         (claim_file_handler): Record every claimed file.
1181         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1182         LDPT_GET_SYMBOLS.
1183         * lto-symtab.c: Include stdlib.h, string.h and common.h.
1184         (current_file_handle): Remove.
1185         (ld_plugin_all_symbols_read_handler): New.
1186         (plugin_handle): New.
1187         (file_handle): New.
1188         (all_file_handles): New.
1189         (num_file_handles): New.
1190         (get_symbols): New.
1191         (register_all_symbols_read): New.
1192         (add_symbols): Don't print the symbols, just record them.
1193         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1194         LDPT_GET_SYMBOLS.
1195         (load_plugin): Use plugin_handle.
1196         (register_file): Add the file handle to all_file_handles.
1197         (resolve): New.
1198         (print): New.
1199         (unload_plugin): New.
1200         (free_all): New.
1201         (main): Call all_symbols_read_handler and free resources.
1203 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
1205         * Makefile.am (AM_CFLAGS): New.
1206         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1207         (lib_LTLIBRARIES): New.
1208         (liblto_plugin_la_SOURCES): New.
1209         (liblto_plugin_la_LIBADD): New.
1210         * Makefile.in: Regenerate.
1211         * acinclude.m4: Don't include ../config/acx.m4 and
1212         ../config/no-executables.m4.
1213         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1214         ../libtool.m4.
1215         * aclocal.m4: Regenerate.
1216         * configure: Regenerate.
1217         * configure.ac: Use AM_PROG_LIBTOOL.
1218         * lto-plugin.c: New.
1219         * lto-symtab.c: Rewrite to use the plugin.
1220         * plugin-api.h: New.
1222 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
1224         * configure: Regenerate.
1225         * configure.ac: Use AC_CHECK_GELF.
1226         * lto-symtab.c: Include gelf.h.
1227         (get_string_table): Use size independent API.
1228         (printTable): Use lld to print 64 bit integers.
1230 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
1232         * lto-symtab.c (parse_table_entry): Assert entry->kind and
1233         entry->visibility are valid.
1235 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1236         * lto-symtab.c (table_entry): Add comdat.
1237         (parse_table_entry): Read comdat.
1239 2008-08-21  Rafael Espindola  <espindola@google.com>
1241         * Makefile.am: New.
1242         * Makefile.in: New.
1243         * acinclude.m4: New.
1244         * aclocal.m4: New.
1245         * configure: New.
1246         * configure.ac: New.
1247         * lto-symtab.c: New.