1 2023-05-11 Joseph Myers <joseph@codesourcery.com>
4 * lto-plugin.c (register_claim_file_v2): New.
5 (claim_file_handler_v2): New.
6 (claim_file_handler): Wrap claim_file_handler_v2.
7 (onload): Handle LDPT_REGISTER_CLAIM_FILE_HOOK_V2.
9 2022-11-23 Marek Polacek <polacek@redhat.com>
12 2022-11-23 Marek Polacek <polacek@redhat.com>
14 * configure.ac (--enable-host-bind-now): New check. Link with
16 * configure: Regenerate.
18 2022-11-23 Marek Polacek <polacek@redhat.com>
20 * configure.ac (--enable-host-bind-now): New check. Link with
22 * configure: Regenerate.
24 2022-10-12 Martin Liska <mliska@suse.cz>
26 * configure: Regenerate.
28 2022-10-11 Olivier Hainque <hainque@adacore.com>
29 Olivier Hainque <hainque@adacore.com>
31 * configure: Regenerate.
33 2022-08-01 Martin Liska <mliska@suse.cz>
36 * configure.ac: Replace $target with $host.
37 * configure: Regenerate.
39 2022-07-14 Martin Liska <mliska@suse.cz>
42 * Makefile.am: Use ac_lto_plugin_extra_ldflags for AM_LDFLAGS.
43 * configure.ac: Use AC_SUBST(ac_lto_plugin_extra_ldflags).
44 * Makefile.in: Regenerate.
45 * configure: Regenerate.
47 2022-07-12 Martin Liska <mliska@suse.cz>
49 * lto-plugin.c (negotiate_api_version): New.
50 (onload): Negotiate API version.
51 * Makefile.am: Add -DBASE_VERSION.
52 * Makefile.in: Regenerate.
54 2022-07-07 Martin Liska <mliska@suse.cz>
57 * configure.ac: Configure HAVE_PTHREAD_LOCKING.
58 * lto-plugin.c (LOCK_SECTION): New.
59 (UNLOCK_SECTION): New.
60 (claim_file_handler): Use the newly added macros.
62 * config.h.in: Regenerate.
63 * configure: Regenerate.
65 2022-07-01 Pekka Seppänen <pexu@gcc.mail.kapsi.fi>
68 * configure.ac: Move -pthread from here...
69 * Makefile.am: ...to here.
70 * configure: Regenerate.
71 * Makefile.in: Likewise.
73 2022-06-27 Martin Liska <mliska@suse.cz>
75 * lto-plugin.c (plugin_lock): New lock.
76 (claim_file_handler): Use mutex for critical section.
77 (onload): Initialize mutex.
78 * configure.ac: Check for pthread.h.
79 * configure: Regenerate.
80 * config.h.in: Regenerate.
82 2022-06-20 Martin Liska <mliska@suse.cz>
84 * lto-plugin.c (struct plugin_file_info): Add skip_file flag.
85 (write_resolution): Write resolution only if get_symbols != LDPS_NO_SYMS.
86 (all_symbols_read_handler): Ignore file if skip_file is true.
87 (onload): Handle LDPT_GET_SYMBOLS_V3.
89 2022-05-04 Martin Liska <mliska@suse.cz>
91 * lto-plugin.c (struct plugin_objfile): Use bool for offset
93 (exec_lto_wrapper): Assign true/false to bool variables.
94 (process_offload_section): Likewise.
95 (claim_file_handler): Likewise.
98 2022-03-22 Jakub Jelinek <jakub@redhat.com>
101 * configure.ac (LTO_PLUGIN_USE_SYMVER, LTO_PLUGIN_USE_SYMVER_GNU,
102 LTO_PLUGIN_USE_SYMVER_SUN): New test for symbol versioning support.
103 * Makefile.am (version_arg, version_dep): Set conditionally based
104 on LTO_PLUGIN_USE_SYMVER*.
105 (liblto_plugin_la_LDFLAGS): Use $(version_arg) instead of
106 -export-symbols-regex onload.
107 (liblto_plugin_la_DEPENDENCIES): Depend on $(version_dep).
108 * lto-plugin.map: New file.
109 * configure: Regenerated.
110 * Makefile.in: Regenerated.
112 2022-03-11 Tobias Burnus <tobias@codesourcery.com>
114 * lto-plugin.c (all_symbols_read_handler): With -save-temps, use
115 link_output_name for -foffload-objects's file name, if available.
117 2022-03-01 Martin Liska <mliska@suse.cz>
119 * lto-plugin.c (process_offload_section): Use a linker as many
120 comments are connected to gold linker.
121 (process_option): Likewise.
123 2021-12-02 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
125 * lto-plugin.c: Fix -linker-output-auto-notlo-rel ->
126 -linker-output-auto-nolto-rel typo.
127 (process_option): Adjust accordingly, accepting both old and
130 2021-09-13 Andrew Pinski <apinski@marvell.com>
133 * Makefile.am: Export only onload.
134 * Makefile.in: Regenerate.
136 2021-06-25 Richard Biener <rguenther@suse.de>
138 * lto-plugin.c (ltrans_objects): New global.
139 (all_symbols_read_handler): If -ltrans-objects was specified,
140 add the output files from the specified file directly.
141 (process_option): Handle -ltrans-objects.
143 2021-05-10 Martin Liska <mliska@suse.cz>
145 * lto-plugin.c (LTO_SEGMENT_NAME): Remove.
146 (LTO_SYMTAB_PREFIX): Likewise.
147 (LTO_SYMTAB_PREFIX_LEN): Likewise.
148 (LTO_SYMTAB_EXT_PREFIX): Likewise.
149 (LTO_SYMTAB_EXT_PREFIX_LEN): Likewise.
150 (LTO_LTO_PREFIX): Likewise.
151 (LTO_LTO_PREFIX_LEN): Likewise.
152 (OFFLOAD_SECTION): Likewise.
153 (OFFLOAD_SECTION_LEN): Likewise.
154 (startswith): New function.
155 (all_symbols_read_handler): Use it.
156 (process_symtab): Likewise.
157 (process_symtab_extension): Likewise.
158 (process_offload_section): Likewise.
159 (process_option): Likewise.
161 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
164 * configure: Regenerated.
166 2021-04-21 Martin Liska <mliska@suse.cz>
168 * lto-plugin.c (exec_lto_wrapper): Make a temp variable.
170 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
172 * configure: Re-generate.
174 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
176 * configure: Regenerate.
178 2020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
180 * Makefile.am: Avoid using sanitizer.
181 * Makefile.in: Regenerate.
183 2020-09-10 Jonathan Yong <10walls@gmail.com>
185 * Makefile.am: drop versioning from libtool completely.
186 * Makefile.in: regenerate.
188 2020-09-09 Nick Clifton <nickc@redhat.com>
190 * lto-plugin.c (struct plugin_symtab): Add last_sym field.
191 (parse_symtab_extension): Only read as many entries as are
192 available in the buffer. Store the data read into the symbol
193 table indexed from last_sym. Increment last_sym.
195 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
198 * configure: Regenerated.
200 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
203 * configure: Regenerated.
205 2020-05-26 Alexandre Oliva <oliva@adacore.com>
207 * lto-plugin.c (skip_in_suffix): New.
208 (exec_lto_wrapper): Use skip_in_suffix and concat to build
209 non-temporary output names.
210 (onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
211 override link_output_name with it.
213 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
216 * configure: Regenerated.
218 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
220 * lto-plugin.c: Document -linker-output-auto-notlo-rel option.
221 (linker_output_set): Change type to bool.
222 (linker_output_known): Likewise.
223 (linker_output_auto_nolto_rel): New variable.
224 (all_symbols_read_handler): Take it into account.
225 <LDPO_REL>: Do not issue the warning if it is set.
226 (process_option): Process -linker-output-auto-notlo-rel.
227 (cleanup_handler): Remove unused variable.
228 (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
230 2020-04-28 H.J. Lu <hongjiu.lu@intel.com>
233 * configure: Regenerated.
235 2020-04-25 H.J. Lu <hongjiu.lu@intel.com>
238 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
239 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
240 AC_SUBST(CET_HOST_FLAGS).
241 * Makefile.in: Regenerated.
242 * aclocal.m4: Likewise.
243 * configure: Likewise.
245 2020-03-19 Martin Liska <mliska@suse.cz>
247 * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
248 (LTO_SYMTAB_PREFIX): ... this.
249 (LTO_SECTION_PREFIX_LEN): Rename to ...
250 (LTO_SYMTAB_PREFIX_LEN): ... this.
251 (LTO_SYMTAB_EXT_PREFIX): New.
252 (LTO_SYMTAB_EXT_PREFIX_LEN): New.
253 (LTO_LTO_PREFIX): New.
254 (LTO_LTO_PREFIX_LEN): New.
255 (parse_table_entry): Fill up unused to zero.
256 (parse_table_entry_extension): New.
257 (parse_symtab_extension): New.
258 (finish_conflict_resolution): Change type
260 (process_symtab): Use new macro name.
261 (process_symtab_extension): New.
262 (claim_file_handler): Parse also process_symtab_extension.
263 (onload): Call new add_symbols_v2.
265 2020-01-01 Jakub Jelinek <jakub@redhat.com>
267 Update copyright years.
269 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
271 * configure: Regenerate.
273 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
275 * lto-plugin.c (cleanup_handler): Remove unused var.
277 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
279 * lto-plugin.c (exec_lto_wrapper): Make the wrapper
280 arguments filename more user-friendly.
281 (file_exists, maybe_unlink): New.
282 (cleanup_handler): Use maybe unlink to handle the
283 case when temps should be saved.
284 (process_option): Look for -v, —-version, -save-temps.
285 (onload): Record the linker output file name.
286 Check for -v, —-version, -save-temps in the GCC collect
289 2019-02-26 Martin Liska <mliska@suse.cz>
291 * lto-symtab.c: Remove.
293 2019-01-01 Jakub Jelinek <jakub@redhat.com>
295 Update copyright years.
297 2018-10-31 Joseph Myers <joseph@codesourcery.com>
300 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
301 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
303 2018-05-30 Jan Hubicka <jh@suse.cz>
305 * lto-plugin.c: (non_claimed_files): New static var.
306 (linker_ouput_known): New static var.
307 (all_symbols_read_handler): When user specifies linker output do not
308 imply it; output warning when nonlto-rel mode is forced.
309 (claim_file_header): Record number of nonclaimed files.
310 (process_option): Remember if linker output is known
312 2018-04-18 David Malcolm <dmalcolm@redhat.com>
315 * configure: Regenerate.
317 2018-01-03 Jakub Jelinek <jakub@redhat.com>
319 Update copyright years.
321 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
324 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
326 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
328 2017-01-17 Jakub Jelinek <jakub@redhat.com>
331 * configure.ac: Add GCC_BASE_VER.
332 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
333 get version from BASE-VER file.
334 * configure: Regenerated.
335 * Makefile.in: Regenerated.
337 2017-01-04 Jakub Jelinek <jakub@redhat.com>
339 Update copyright years.
341 2016-11-15 Matthias Klose <doko@ubuntu.com>
343 * configure: Regenerate.
345 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
348 * lto-plugin.c (struct plugin_offload_file): New.
349 (offload_files): Change type.
350 (offload_files_last, offload_files_last_obj): New.
351 (offload_files_last_lto): New.
352 (free_2): Adjust accordingly.
353 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
354 Don't call free_1 for offload_files. Write names of object files with
355 offloading to the temporary file. Add new option to lto_arg_ptr.
356 (claim_file_handler): Don't claim file if it contains offload sections
357 without LTO sections. If it contains offload sections, add to the list.
359 2016-01-15 Martin Liska <mliska@suse.cz>
361 * lto-plugin.c (all_symbols_read_handler): Assign default
362 value to a string variable.
364 2015-11-25 Jan Hubicka <jh@suse.cz>
367 * lto-plugin.c (linker_output, linker_output_set): New statics.
368 (all_symbols_read_handler): Add -flinker-output option.
369 (onload): Record linker_output info.
371 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
373 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
374 * configure: Regenerate.
375 * config.h.in: Ditto.
377 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
379 * Makefile.am: Drop 'by automake version' from top-level comment.
380 * Makefile.in: Regenerated with automake-1.11.6.
381 * aclocal.m4: Likewise.
382 * configure: Likewise.
384 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
386 * lto-plugin.c (release_input_file): Removed.
387 (claim_file_handler): Don't call release_input_file.
388 (onload): Don't set release_input_file.
390 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
392 * lto-plugin.c (claim_file_handler): Pass handle to
395 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
397 * lto-plugin.c (claim_file_handler): Call release_input_file only
400 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
402 * lto-plugin.c (claim_file_handler): Call release_input_file only
405 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
408 * lto-plugin.c (release_input_file): New.
409 (claim_file_handler): Call release_input_file.
410 (onload): Set release_input_file.
412 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
414 * lto-plugin.c (offload_files, num_offload_files): New static variables.
415 (free_1): Use arguments instead of global variables.
416 (free_2): Free offload_files.
417 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
419 (claim_file_handler): Do not add file to claimed_files if it contains
420 offload sections without LTO sections. Add it to offload_files instead.
422 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
425 * configure: Regenerated.
427 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
428 Bernd Schmidt <bernds@codesourcery.com>
429 Andrey Turetskiy <andrey.turetskiy@intel.com>
430 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
432 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
433 (struct plugin_objfile): Add new field "offload".
434 (process_offload_section): New static function.
435 (claim_file_handler): Claim file if it contains offload sections.
437 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
438 Thomas Schwinge <thomas@codesourcery.com>
439 Ilya Verbin <ilya.verbin@intel.com>
440 Andrey Turetskiy <andrey.turetskiy@intel.com>
442 * Makefile.am (libexecsubdir): Tweak for the possibility of being
443 configured for offload compiler.
444 (accel_dir_suffix, real_target_noncanonical): New variables substituted
446 * Makefile.in: Regenerate.
447 * configure: Regenerate.
448 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
451 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
454 * configure: Regenerate.
456 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
459 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
460 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
462 * Makefile.in: Regenerated.
463 * configure: Likewise.
465 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
467 * configure.ac (--with-libiberty): New configure option.
468 * configure: Regenerate.
469 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
471 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
472 (liblto_plugin_la_DEPENDENCIES): Use them.
473 * Makefile.in: Regenerate.
475 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
478 * configure.ac: Check for -static-libgcc.
479 * configure: Regenerate.
481 2014-04-17 Jakub Jelinek <jakub@redhat.com>
484 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
485 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
486 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
487 over ../libiberty/pic/libiberty.a if the former exists.
488 * Makefile.in: Regenerated.
491 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
492 * Makefile.in: Regenerated.
494 2014-04-02 Richard Biener <rguenther@suse.de>
496 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
497 is set in COLLECT_GCC_OPTIONS.
499 2014-03-28 Richard Biener <rguenther@suse.de>
501 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
503 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
505 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
507 * configure: Regenerate.
508 * Makefile.am (AM_LDFLAGS): New variable.
509 (liblto_plugin_la_LDFLAGS): Add it.
510 * Makefile.in: Regenerate.
512 2013-09-20 Alan Modra <amodra@gmail.com>
514 * configure: Regenerate.
516 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
518 * configure: Regenerated.
520 2012-05-29 Joseph Myers <joseph@codesourcery.com>
522 * lto-plugin.c: Fix typo.
524 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
526 * configure: Regenerated.
528 2012-02-22 Kai Tietz <ktietz@redhat.com>
531 * lto-plugin.c (PRI_LL): New macro.
532 (dump_symtab): Use PRI_LL instead of ll in print.
533 (process_symtab): Use PRI_LL instead of ll in scan.
535 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
537 * configure: Regenerate.
539 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
541 * configure: Regenerate.
543 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
545 * configure: Regenerate.
547 2011-10-02 Jan Hubicka <jh@suse.cz>
550 * lto-plugin.c (get_symbols_v2): New variable.
551 (write_resolution): Use V2 API when available.
552 (onload): Handle LDPT_GET_SYMBOLS_V2.
554 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
555 Andi Kleen <ak@linux.intel.com>
558 * lto-plugin.c (sym_aux): Change id to unsigned long long.
559 (plugin_symtab): Likewise.
560 (dump_symtab): Likewise.
561 (resolve_conflicts): Likewise.
562 (process_symtab): Likewise.
564 2011-08-10 Richard Guenther <rguenther@suse.de>
568 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
569 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
570 * configure: Regenerate.
571 * Makefile.in: Likewise.
572 * aclocal.m4: Likewise.
574 2011-04-20 Jim Meyering <meyering@redhat.com>
576 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
578 2011-04-05 Richard Guenther <rguenther@suse.de>
581 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
583 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
585 * Makefile.in: Regenerate.
586 * aclocal.m4: Regenerate.
587 * configure: Regenerate.
589 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
591 * Makefile.am (all-local): Rename from 'all'.
592 * Makefile.in: Regenerate.
594 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
597 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
598 (liblto_plugin_la_LDFLAGS): Add -module.
599 (copy_lto_plugin): Renamed to...
600 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
602 * Makefile.in: Rebuild.
604 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
607 * Makefile.am (Wc): New helper for encoding -Wc,.
608 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
609 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
610 * Makefile.in: Regenerated.
612 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
616 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
619 * Makefile.am (Wl): New helper for encoding -Wl,.
620 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
621 * Makefile.in: Regenerated.
623 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
626 * Makefile.am (Wl): New helper for encoding -Wl,.
627 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
628 * Makefile.in: Regenerated.
630 2011-01-25 Ian Lance Taylor <iant@google.com>
632 * lto-plugin.c (gold_version): New static variable.
633 (all_symbols_read_handler): Don't check pass_through_items if
634 using gold 1.11 or later.
635 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
637 2011-01-12 Richard Guenther <rguenther@suse.de>
640 * lto-plugin.c (parse_table_entry): Use memcpy to access
643 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
645 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
646 * Makefile.in: Regenerate.
648 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
652 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
654 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
655 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
656 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
657 * Makefile.in: Regenerate.
659 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
663 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
664 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
665 * configure: Regenerate.
666 * config.h.in: Likewise.
668 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
672 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
673 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
674 override -bindir setting.
675 * aclocal.m4: Regenerate.
676 * configure: Regenerate.
677 * Makefile.in: Regenerate.
679 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
681 * config.h.in: Regenerated.
682 * configure: Regenerated.
683 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
684 * lto-plugin.c (WIFEXITED): Define default.
685 (WEXITSTATUS): Likeiwse.
687 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
689 * config.h.in: Regenerated.
690 * configure: Regenerated.
691 * Makefile.in: Regenerated.
692 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
693 * lto-plugin.c: Include sys/wait.h conditionally.
694 * aclocal.m4: Regenerated.
696 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
698 * lto-plugin.c (add_output_files): Fix memory leak.
700 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
704 * configure.ac: Add AC_TYPE_INT64_T test.
705 * config.h.in: Regenerate.
706 * configure: Likewise.
707 * lto-plugin.c (debug): Use char not bool.
709 (check_1): Rename from check, and use int not bool for gate argument.
710 (check): Macro wrapper for the above to coerce gate argument into
711 boolean-valued integer in case it has pointer type.
712 (parse_table_entry): Use 0 not false.
713 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
714 into two 32-bit parts and printing as hex ints.
716 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
719 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
721 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
724 * lto-plugin.h: Delete.
725 * lto-plugin-elf.c: Likewise.
726 * lto-plugin-coff.c: Likewise.
727 * configure.ac: Don't use libelf, don't source config.gcc.
728 (LIBELFLIBS): Delete.
730 (LTO_FORMAT): Delete.
731 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
732 (config.h): Add AC_CONFIG_HEADERS directive.
733 * Makefile.am (LIBELFLIBS): Delete.
735 (LTO_FORMAT): Delete.
737 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
738 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
739 any object-format-specific source file in the link.
740 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
741 * config.h.in: Generate.
742 * configure: Regenerate.
743 * Makefile.in: Likewise.
744 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
745 (LTO_SEGMENT_NAME): New definition.
746 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
747 (LTO_SECTION_PREFIX_LEN): New definition.
748 (struct sym_aux): Struct definition moved here from lto-plugin.h.
749 (struct plugin_symtab): Likewise.
750 (struct plugin_objfile): Likewise.
751 (struct plugin_objfile): New struct def.
752 (enum symbol_style): New enum type.
753 (add_symbols): Make static.
754 (claimed_files): Likewise.
755 (num_claimed_files): Likewise.
756 (sym_style): New global.
757 (check): Make static.
758 (parse_table_entry): Likewise. Respect sym_style when extracting
759 symbol from symtab entry.
760 (translate): Make static.
761 (resolve_conflicts): Likewise.
762 (process_symtab): New function, per-section callback version of
763 old object-format-specific handling from deleted lto-plugin-elf.c.
764 (claim_file_handler): Convert ELF-specific version from deleted
765 lto-plugin-elf.c to simple_object interface and move here.
766 (process_options): Allow new '-sym-style=' option.
767 (onload): Don't call deleted onload_format_checks hook.
769 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
771 * lto-plugin.c (dump_symtab): Correct printf argument type.
772 (finish_conflict_resolution): Initialize resolution.
774 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
777 * configure.ac: Add AC_CANONICAL_SYSTEM.
778 * configure: Regenerated.
780 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
782 * configure.ac: Source config.gcc to determine lto_binary_reader.
783 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
784 * Makefile.am (LTO_FORMAT): Import.
785 (liblto_plugin_la_SOURCES): Add object format dependent module
786 defined by LTO_FORMAT.
787 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
788 and work around libtool warning.
789 * configure: Regenerate.
790 * Makefile.in: Likewise.
791 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
792 (struct sym_aux): Likewise.
793 (struct plugin_symtab): Likewise.
794 (struct plugin_file_info): Likewise.
795 (LTO_SECTION_PREFIX): Likewise.
796 (add_symbols): Make non-static.
797 (claimed_files): Likewise.
798 (num_claimed_files): Likewise.
800 (parse_table_entry): Likewise.
801 (translate): Likewise.
802 (resolve_conflicts): Likewise.
803 (process_symtab): Move to new lto-plugin-elf.c object format dependent
805 (claim_file_handler): Likewise, and make non-static.
806 (onload): Call new onload_format_checks function.
807 * lto-plugin.h: New file.
808 (LTO_SECTION_PREFIX): Move here.
809 (struct sym_aux): Likewise.
810 (struct plugin_symtab): Likewise.
811 (struct plugin_file_info): Likewise.
812 (claim_file_handler): Add new function prototype.
813 (onload_format_checks): Likewise.
814 (check): Declare extern.
815 (translate): Likewise.
816 (parse_table_entry): Likewise.
817 (resolve_conflicts): Likewise.
818 (add_symbols): Likewise.
819 (claimed_files): Likewise.
820 (num_claimed_files): Likewise.
821 * lto-plugin-elf.c (process_symtab): Move here.
822 (claim_file_handler): Likewise, and make non-static.
823 (onload_format_checks): New function factored out from onload.
824 * lto-plugin-coff.c (claim_file_handler): New function stub.
825 (onload_format_checks): Likewise.
827 2010-08-05 Andi Kleen <ak@linux.intel.com>
829 * lto-plugin.c: Include <hashtab.h>
830 (sym_aux): Add next_conflict field to save conflict chains.
831 (plugin_file_info): Add conflicts symtab.
832 (parse_table_entry): Initialize aux->next_conflict.
833 (process_symtab): Increment found.
835 (finish_conflict_resolution): Add.
837 (write_resolution): Remove symbols loop and move into
838 dump_symtab. Call dump_symtab for main symbol and conflicts table.
839 Call free_symtab to free conflicts table.
843 (symbol_strength): Add.
844 (resolve_conflicts): Add.
845 (claim_file_handler): Add n variable. Check return value of
846 process_symtab. Call resolve_conflicts.
848 2010-07-27 Andi Kleen <ak@linux.intel.com>
850 * lto-plugin.c (translate): Remove debug fprintf.
852 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
855 * lto-plugin.c (translate): Cast to unsigned long.
857 2010-07-23 Andi Kleen <ak@linux.intel.com>
860 * lto-plugin.c (sym_aux): Add.
861 (plugin_symtab): Remove slots. Add aux and id.
862 (parse_table_entry): Change to use aux instead of slots.
863 (LTO_SECTION_PREFIX): Add.
864 (translate): Improve buffer allocation. Change to append
865 symbols to existing out buffer.
866 (get_section): Remove.
867 (process_symtab): Add.
868 (free_2): Free symtab->aux.
869 (write_resolution): Handle aux instead of slots.
870 Print sub id to resolution file.
871 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
872 calls with call to process_symtab.
874 2010-07-22 Richard Guenther <rguenther@suse.de>
876 * Makefile.am: New copy_lto_plugin rule to install the plugin
878 * Makefile.in: Regenerated.
880 2010-05-21 Richard Guenther <rguenther@suse.de>
882 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
884 2010-05-07 Richard Guenther <rguenther@suse.de>
886 * lto-plugin.c (free_2): Do not free resolution_file.
887 (write_resolution): Check that we were passed a resolution file.
888 (all_symbols_read_handler): Adjust.
889 (cleanup_handler): Do not remove the resolution file.
890 (process_option): Handle -fresolution=.
892 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
895 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
896 * Makefile.in: Regenerate.
898 2010-04-23 Richard Guenther <rguenther@suse.de>
901 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
902 (translate): Likewise.
903 (all_symbols_read_handler): Likewise.
904 (claim_file_handler): Likewise.
905 (process_option): Likewise.
906 (add_output_files): Likewise. Remove filename length limit.
908 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
910 * Makefile.in: Regenerate.
911 * aclocal.m4: Regenerate.
913 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
916 * lto-plugin.c (cleanup_handler): Delete temporary output files.
918 2010-01-11 Richard Guenther <rguenther@suse.de>
921 * Makefile.am: Disable dependencies.
922 * Makefile.in: Regenerated.
924 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
927 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
930 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
933 * configure: Regenerated.
934 * Makefile.in: Likewise.
936 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
939 * lto-plugin.c (claim_file_handler): Print offsets in hex.
941 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
943 * lto-plugin.c (write_resolution): Assume resolution_file is set.
944 Print the symbol name.
945 (all_symbols_read_handler): Create a resolution file.
947 (cleanup_handler): Remove the resolution file.
948 (process_option): Drop the -resolution option.
950 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
952 * lto-plugin.c (temp_obj_dir_name): Remove.
953 (arguments_file_name): New.
954 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
955 (exec_lto_wrapper): Create arguments file with make_temp_file.
956 (cleanup_handler): Don't remove the temporary directory. Remove the
958 (onload): Don't create the temporary directory.
960 2009-11-04 Richard Guenther <rguenther@suse.de>
961 Rafael Avila de Espindola <espindola@google.com>
963 * lto-plugin.c (plugin_file_info): Remove temp field.
964 (cleanup_handler): Don't delete temporary objects.
965 (claim_file_handler): Don't create temporary objects.
967 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
969 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
971 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
974 * lto-plugin.c (claim_file_handler): Close files that we created.
976 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
978 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
981 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
984 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
985 * configure: Regenerate.
987 2009-10-26 Richard Guenther <rguenther@suse.de>
989 * configure.ac: Use AM_MAINTAINER_MODE.
990 * acinclude.m4: Remove.
991 * configure: Re-generate.
992 * Makefile.in: Likewise.
993 * aclocal.m4: Likewise.
995 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
998 * configure: Regenerate.
999 * configure.ac: Add AC_TYPE_UINT64_T.
1001 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
1003 * lto-plugin.c (message): New variable.
1004 (check): New function.
1005 (parse_table_entry, translate, write_resolution,add_output_files,
1006 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
1008 (cleanup_handler): Use check instead of assert. Remove the arguments
1011 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
1013 * lto-plugin.c (resolution_file): New.
1014 (free_1): Update comment.
1015 (free_2): Free resolution_file.
1016 (write_resolution): Write resolution to specified file. Use the
1017 syms array from the symbol table.
1018 (all_symbols_read_handler): Delay call to free_1 past call to
1020 (process_option): Add a -resolution option.
1022 2009-10-13 Richard Guenther <rguenther@suse.de>
1024 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
1026 * Makefile.in: Regenerated.
1028 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
1030 * lto-plugin.c (add_input_library): New.
1031 (all_symbols_read_handler): Use add_input_library for items that
1033 (process_option): Fit in 80 columns.
1034 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
1036 2009-10-02 Diego Novillo <dnovillo@google.com>
1038 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1039 and -D_FILE_OFFSET_BITS=64.
1040 * configure.ac: Add AC_SYS_LARGEFILE.
1041 * configure: Regenerate.
1042 * Makefile.in: Regenerate.
1043 * lto-plugin.c: Fix copyright boilerplate.
1045 2009-10-02 Diego Novillo <dnovillo@google.com>
1047 * Makefile.am (ACLOCAL_AMFLAGS): Define.
1048 * aclocal.m4: Regenerate with aclocal-2.64
1049 * acinclude.m4: Remove.
1050 * Makefile.in: Regenerate with automake-1.11
1051 * configure.ac (AC_PREREQ): Update to 2.64.
1052 * configure: Regenerate.
1054 2009-10-02 Diego Novillo <dnovillo@google.com>
1056 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1057 and -D_FILE_OFFSET_BITS=64.
1058 * configure.ac: Add AC_SYS_LARGEFILE.
1059 * configure: Regenerate.
1060 * Makefile.in: Regenerate.
1061 * lto-plugin.c: Fix copyright boilerplate.
1063 2009-10-02 Diego Novillo <dnovillo@google.com>
1065 * Makefile.am (ACLOCAL_AMFLAGS): Define.
1066 * aclocal.m4: Regenerate with aclocal-2.64
1067 * acinclude.m4: Remove.
1068 * Makefile.in: Regenerate with automake-1.11
1069 * configure.ac (AC_PREREQ): Update to 2.64.
1070 * configure: Regenerate.
1072 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
1074 * Makefile.am (liblto_plugin_la_SOURCES): Remove
1075 $(top_srcdir)/../gcc/lto/common.c
1076 * Makefile.in: Regenerate.
1078 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
1080 * lto-plugin.c (pass_through_items): New.
1081 (num_pass_through_items): New.
1082 (all_symbols_read_handler): Update to use the -pass-through option.
1083 (process_option): Replace -libgcc with -pass-through.
1085 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
1087 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
1088 register_cleanup to be set.
1090 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
1092 * Makefile.am: Remove all reference to ltosymtab.
1093 * Makefile.in: Regenerate.
1094 * lto-symtab.c: Remove.
1096 2009-05-21 Diego Novillo <dnovillo@google.com>
1098 * configure.ac: Remove call to AC_CHECK_GELF.
1099 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
1100 * acinclude.m4: Do not include ../config/libelf.m4
1101 * Makefile.am (LIBELFLIBS): Define.
1102 (LIBELFINC): Define.
1103 (AM_CPPFLAGS): Add $(LIBELFINC).
1104 (ltosymtab_LDADD): Add $(LIBELFLIBS).
1105 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
1106 * lto-plugin.c: Always include <gelf.h>
1107 * lto-symtab.c: Likewise.
1108 * configure: Regenerate.
1109 * Makefile.in: Regenerate.
1111 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
1113 * lto-plugin.c (libgcc_filename): New.
1114 (all_symbols_read_handler): Pass libgcc to the linker.
1115 (all_symbols_read_handler): Parse -libgcc
1117 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
1119 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
1120 * Makefile.in: Regenerate.
1121 * lto-plugin.c (add_output_files): Argument is now a FILE.
1122 (exec_lto_wrapper): Use writeargv and pex.
1124 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1127 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1128 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1131 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1133 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1135 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
1137 * lto-plugin.c: Include libiberty.h.
1138 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
1141 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
1143 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
1144 file to lto-wrapper.
1146 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
1148 * lto-plugin.c (plugin_file_info): Remove fd and elf.
1149 (parse_table_entry): strdup entry->name and entry->comdat_key.
1150 (free_1): Free name and comdat_key. Don't close the file. Don't call
1152 (claim_file_handler): Always call elf_end.
1154 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
1156 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
1157 -D_FILE_OFFSET_BITS=64
1158 * Makefile.in: Regenerate
1160 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
1162 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
1163 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
1164 * Makefile.in: Regenerate.
1165 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
1166 * configure: Regenerate.
1167 * configure.ac: Add AC_SUBST(target_noncanonical).
1169 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1171 * lto-plugin.c: Include stdbool.h.
1172 (debug, nop): Declare as bool.
1174 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1176 * lto-plugin.c (nop): New.
1177 (use_original_files): New.
1178 (all_symbols_read_handler): Call use_original_files if nop is true.
1179 (process_option): Parse the -nop option.
1181 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1183 * lto-plugin.c (debug): New.
1184 (exec_lto_wrapper): Print argv if debug is true.
1185 (process_option): Process the -debug command line option.
1187 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
1189 * lto-plugin.c (process_option): The argument is now a single option,
1190 not a space separated list.
1192 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
1194 * lto-plugin.c: Include sys/types.h and sys/wait.h
1195 (output_files, num_output_files, lto_wrapper_argv,
1196 lto_wrapper_num_args): New.
1197 (free_2): Free output_files.
1198 (write_resolution): Disable.
1199 (add_output_files): New.
1200 (exec_lto_wrapper): New.
1201 (all_symbols_read_handler): Run lto-wrapper.
1202 (claim_file_handler): Free lto_file.name and call elf_end.
1203 (process_option): New.
1205 2008-11-26 Rafael Espindola <espindola@google.com>
1207 * lto-plugin.c (add_input_file): New.
1208 (get_section): Return NULL if get_section fails.
1209 (write_resolution): New.
1210 (all_symbols_read_handler): Call add_input_file.
1211 (claim_file_handler): Unlink the correct file.
1212 (onload): Record add_input_file.
1214 2008-09-23 Rafael Espindola <espindola@google.com>
1216 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
1217 Update the location of common.c.
1218 * Makefile.in: Regenerate.
1219 * common.c: Moved to gcc/lto.
1220 * common.h: Moved to gcc/lto.
1221 * lto-plugin.c: Update the location of common.h.
1222 * lto-symtab.c: Update the location of common.h.
1224 2008-09-23 Rafael Espindola <espindola@google.com>
1226 * common.c: Include common.h.
1227 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
1229 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
1232 2008-09-23 Rafael Espindola <espindola@google.com>
1234 * lto-plugin.c (plugin_file_info): Add temp.
1235 (cleanup_handler): Only delete temporary files.
1236 (claim_file_handler): Initialize lto_file.temp.
1238 2008-09-23 Rafael Espindola <espindola@google.com>
1240 * plugin-api.h: Moved to include.
1242 2008-09-23 Rafael Espindola <espindola@google.com>
1244 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1247 2008-09-22 Rafael Espindola <espindola@google.com>
1249 * plugin-api.h: Copy from binutils' cvs.
1251 2008-09-22 Rafael Espindola <espindola@google.com>
1253 * lto-symtab.c (get_symbols, add_symbols): Update signature.
1254 * plugin-api.h: Copy from binutils' cvs.
1256 2008-09-22 Rafael Espindola <espindola@google.com>
1258 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1261 2008-09-10 Rafael Espindola <espindola@google.com>
1263 * lto-plugin.c (onload): add missing break statements and asserts.
1264 * lto-symtab.c (claim_file_handler): Make it static.
1265 (all_symbols_read_handler): Make it static.
1266 (all_file_handles): Make it static.
1267 (num_file_handles): Make it static.
1268 (register_claim_file): Make it static.
1269 (register_object): Indent properly.
1271 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1273 * Makefile.am (ltosymtab_LDADD): Add -lelf.
1274 * Makefiel.in: Regenerate.
1275 * lto-plugin.c: Include ar.h.
1276 (claim_file_handler): Handle file->offset != 0.
1277 * lto-symtab.c: Include gelf.h.
1278 (all_file_handles): Change type.
1279 (register_object): New.
1280 (register_file): Add support for archives.
1281 (resolve): Update to new type of all_file_handles.
1282 (print): Update to new type of all_file_handles.
1283 (free_all): Update to new type of all_file_handles.
1284 (main): Update to new type of all_file_handles.
1286 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1288 * lto-plugin.c (get_string_table): Remove.
1289 (get_section): Use elf_strptr instead of get_string_table.
1291 2008-09-08 Doug Kwan <dougkwan@google.com>
1293 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1294 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1296 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
1298 * Makefile.am (ltosymtab_SOURCES): add common.c.
1299 (ltosymtab_CFLAGS): New.
1300 (liblto_plugin_la_SOURCES): Add common.c.
1301 * Makefile.in: Regenerate.
1304 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1305 (plugin_symtab): New.
1306 (plugin_file_info): New.
1307 (register_all_symbols_read): New.
1309 (claimed_files): New.
1310 (num_claimed_files): New.
1311 (translate): Don't drop the slot number.
1314 (all_symbols_read_handler): New.
1315 (claim_file_handler): Record every claimed file.
1316 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1318 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1319 (current_file_handle): Remove.
1320 (ld_plugin_all_symbols_read_handler): New.
1321 (plugin_handle): New.
1323 (all_file_handles): New.
1324 (num_file_handles): New.
1326 (register_all_symbols_read): New.
1327 (add_symbols): Don't print the symbols, just record them.
1328 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1330 (load_plugin): Use plugin_handle.
1331 (register_file): Add the file handle to all_file_handles.
1334 (unload_plugin): New.
1336 (main): Call all_symbols_read_handler and free resources.
1338 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1340 * Makefile.am (AM_CFLAGS): New.
1341 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1342 (lib_LTLIBRARIES): New.
1343 (liblto_plugin_la_SOURCES): New.
1344 (liblto_plugin_la_LIBADD): New.
1345 * Makefile.in: Regenerate.
1346 * acinclude.m4: Don't include ../config/acx.m4 and
1347 ../config/no-executables.m4.
1348 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1350 * aclocal.m4: Regenerate.
1351 * configure: Regenerate.
1352 * configure.ac: Use AM_PROG_LIBTOOL.
1353 * lto-plugin.c: New.
1354 * lto-symtab.c: Rewrite to use the plugin.
1355 * plugin-api.h: New.
1357 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1359 * configure: Regenerate.
1360 * configure.ac: Use AC_CHECK_GELF.
1361 * lto-symtab.c: Include gelf.h.
1362 (get_string_table): Use size independent API.
1363 (printTable): Use lld to print 64 bit integers.
1365 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1367 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1368 entry->visibility are valid.
1370 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1371 * lto-symtab.c (table_entry): Add comdat.
1372 (parse_table_entry): Read comdat.
1374 2008-08-21 Rafael Espindola <espindola@google.com>
1378 * acinclude.m4: New.
1381 * configure.ac: New.
1382 * lto-symtab.c: New.