1 2021-12-02 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
3 * lto-plugin.c: Fix -linker-output-auto-notlo-rel ->
4 -linker-output-auto-nolto-rel typo.
5 (process_option): Adjust accordingly, accepting both old and
8 2021-09-13 Andrew Pinski <apinski@marvell.com>
11 * Makefile.am: Export only onload.
12 * Makefile.in: Regenerate.
14 2021-06-25 Richard Biener <rguenther@suse.de>
16 * lto-plugin.c (ltrans_objects): New global.
17 (all_symbols_read_handler): If -ltrans-objects was specified,
18 add the output files from the specified file directly.
19 (process_option): Handle -ltrans-objects.
21 2021-05-10 Martin Liska <mliska@suse.cz>
23 * lto-plugin.c (LTO_SEGMENT_NAME): Remove.
24 (LTO_SYMTAB_PREFIX): Likewise.
25 (LTO_SYMTAB_PREFIX_LEN): Likewise.
26 (LTO_SYMTAB_EXT_PREFIX): Likewise.
27 (LTO_SYMTAB_EXT_PREFIX_LEN): Likewise.
28 (LTO_LTO_PREFIX): Likewise.
29 (LTO_LTO_PREFIX_LEN): Likewise.
30 (OFFLOAD_SECTION): Likewise.
31 (OFFLOAD_SECTION_LEN): Likewise.
32 (startswith): New function.
33 (all_symbols_read_handler): Use it.
34 (process_symtab): Likewise.
35 (process_symtab_extension): Likewise.
36 (process_offload_section): Likewise.
37 (process_option): Likewise.
39 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
42 * configure: Regenerated.
44 2021-04-21 Martin Liska <mliska@suse.cz>
46 * lto-plugin.c (exec_lto_wrapper): Make a temp variable.
48 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
50 * configure: Re-generate.
52 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
54 * configure: Regenerate.
56 2020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
58 * Makefile.am: Avoid using sanitizer.
59 * Makefile.in: Regenerate.
61 2020-09-10 Jonathan Yong <10walls@gmail.com>
63 * Makefile.am: drop versioning from libtool completely.
64 * Makefile.in: regenerate.
66 2020-09-09 Nick Clifton <nickc@redhat.com>
68 * lto-plugin.c (struct plugin_symtab): Add last_sym field.
69 (parse_symtab_extension): Only read as many entries as are
70 available in the buffer. Store the data read into the symbol
71 table indexed from last_sym. Increment last_sym.
73 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
76 * configure: Regenerated.
78 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
81 * configure: Regenerated.
83 2020-05-26 Alexandre Oliva <oliva@adacore.com>
85 * lto-plugin.c (skip_in_suffix): New.
86 (exec_lto_wrapper): Use skip_in_suffix and concat to build
87 non-temporary output names.
88 (onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
89 override link_output_name with it.
91 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
94 * configure: Regenerated.
96 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
98 * lto-plugin.c: Document -linker-output-auto-notlo-rel option.
99 (linker_output_set): Change type to bool.
100 (linker_output_known): Likewise.
101 (linker_output_auto_nolto_rel): New variable.
102 (all_symbols_read_handler): Take it into account.
103 <LDPO_REL>: Do not issue the warning if it is set.
104 (process_option): Process -linker-output-auto-notlo-rel.
105 (cleanup_handler): Remove unused variable.
106 (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
108 2020-04-28 H.J. Lu <hongjiu.lu@intel.com>
111 * configure: Regenerated.
113 2020-04-25 H.J. Lu <hongjiu.lu@intel.com>
116 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
117 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
118 AC_SUBST(CET_HOST_FLAGS).
119 * Makefile.in: Regenerated.
120 * aclocal.m4: Likewise.
121 * configure: Likewise.
123 2020-03-19 Martin Liska <mliska@suse.cz>
125 * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
126 (LTO_SYMTAB_PREFIX): ... this.
127 (LTO_SECTION_PREFIX_LEN): Rename to ...
128 (LTO_SYMTAB_PREFIX_LEN): ... this.
129 (LTO_SYMTAB_EXT_PREFIX): New.
130 (LTO_SYMTAB_EXT_PREFIX_LEN): New.
131 (LTO_LTO_PREFIX): New.
132 (LTO_LTO_PREFIX_LEN): New.
133 (parse_table_entry): Fill up unused to zero.
134 (parse_table_entry_extension): New.
135 (parse_symtab_extension): New.
136 (finish_conflict_resolution): Change type
138 (process_symtab): Use new macro name.
139 (process_symtab_extension): New.
140 (claim_file_handler): Parse also process_symtab_extension.
141 (onload): Call new add_symbols_v2.
143 2020-01-01 Jakub Jelinek <jakub@redhat.com>
145 Update copyright years.
147 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
149 * configure: Regenerate.
151 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
153 * lto-plugin.c (cleanup_handler): Remove unused var.
155 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
157 * lto-plugin.c (exec_lto_wrapper): Make the wrapper
158 arguments filename more user-friendly.
159 (file_exists, maybe_unlink): New.
160 (cleanup_handler): Use maybe unlink to handle the
161 case when temps should be saved.
162 (process_option): Look for -v, —-version, -save-temps.
163 (onload): Record the linker output file name.
164 Check for -v, —-version, -save-temps in the GCC collect
167 2019-02-26 Martin Liska <mliska@suse.cz>
169 * lto-symtab.c: Remove.
171 2019-01-01 Jakub Jelinek <jakub@redhat.com>
173 Update copyright years.
175 2018-10-31 Joseph Myers <joseph@codesourcery.com>
178 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
179 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
181 2018-05-30 Jan Hubicka <jh@suse.cz>
183 * lto-plugin.c: (non_claimed_files): New static var.
184 (linker_ouput_known): New static var.
185 (all_symbols_read_handler): When user specifies linker output do not
186 imply it; output warning when nonlto-rel mode is forced.
187 (claim_file_header): Record number of nonclaimed files.
188 (process_option): Remember if linker output is known
190 2018-04-18 David Malcolm <dmalcolm@redhat.com>
193 * configure: Regenerate.
195 2018-01-03 Jakub Jelinek <jakub@redhat.com>
197 Update copyright years.
199 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
202 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
204 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
206 2017-01-17 Jakub Jelinek <jakub@redhat.com>
209 * configure.ac: Add GCC_BASE_VER.
210 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
211 get version from BASE-VER file.
212 * configure: Regenerated.
213 * Makefile.in: Regenerated.
215 2017-01-04 Jakub Jelinek <jakub@redhat.com>
217 Update copyright years.
219 2016-11-15 Matthias Klose <doko@ubuntu.com>
221 * configure: Regenerate.
223 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
226 * lto-plugin.c (struct plugin_offload_file): New.
227 (offload_files): Change type.
228 (offload_files_last, offload_files_last_obj): New.
229 (offload_files_last_lto): New.
230 (free_2): Adjust accordingly.
231 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
232 Don't call free_1 for offload_files. Write names of object files with
233 offloading to the temporary file. Add new option to lto_arg_ptr.
234 (claim_file_handler): Don't claim file if it contains offload sections
235 without LTO sections. If it contains offload sections, add to the list.
237 2016-01-15 Martin Liska <mliska@suse.cz>
239 * lto-plugin.c (all_symbols_read_handler): Assign default
240 value to a string variable.
242 2015-11-25 Jan Hubicka <jh@suse.cz>
245 * lto-plugin.c (linker_output, linker_output_set): New statics.
246 (all_symbols_read_handler): Add -flinker-output option.
247 (onload): Record linker_output info.
249 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
251 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
252 * configure: Regenerate.
253 * config.h.in: Ditto.
255 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
257 * Makefile.am: Drop 'by automake version' from top-level comment.
258 * Makefile.in: Regenerated with automake-1.11.6.
259 * aclocal.m4: Likewise.
260 * configure: Likewise.
262 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
264 * lto-plugin.c (release_input_file): Removed.
265 (claim_file_handler): Don't call release_input_file.
266 (onload): Don't set release_input_file.
268 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
270 * lto-plugin.c (claim_file_handler): Pass handle to
273 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
275 * lto-plugin.c (claim_file_handler): Call release_input_file only
278 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
280 * lto-plugin.c (claim_file_handler): Call release_input_file only
283 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
286 * lto-plugin.c (release_input_file): New.
287 (claim_file_handler): Call release_input_file.
288 (onload): Set release_input_file.
290 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
292 * lto-plugin.c (offload_files, num_offload_files): New static variables.
293 (free_1): Use arguments instead of global variables.
294 (free_2): Free offload_files.
295 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
297 (claim_file_handler): Do not add file to claimed_files if it contains
298 offload sections without LTO sections. Add it to offload_files instead.
300 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
303 * configure: Regenerated.
305 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
306 Bernd Schmidt <bernds@codesourcery.com>
307 Andrey Turetskiy <andrey.turetskiy@intel.com>
308 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
310 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
311 (struct plugin_objfile): Add new field "offload".
312 (process_offload_section): New static function.
313 (claim_file_handler): Claim file if it contains offload sections.
315 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
316 Thomas Schwinge <thomas@codesourcery.com>
317 Ilya Verbin <ilya.verbin@intel.com>
318 Andrey Turetskiy <andrey.turetskiy@intel.com>
320 * Makefile.am (libexecsubdir): Tweak for the possibility of being
321 configured for offload compiler.
322 (accel_dir_suffix, real_target_noncanonical): New variables substituted
324 * Makefile.in: Regenerate.
325 * configure: Regenerate.
326 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
329 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
332 * configure: Regenerate.
334 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
337 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
338 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
340 * Makefile.in: Regenerated.
341 * configure: Likewise.
343 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
345 * configure.ac (--with-libiberty): New configure option.
346 * configure: Regenerate.
347 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
349 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
350 (liblto_plugin_la_DEPENDENCIES): Use them.
351 * Makefile.in: Regenerate.
353 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
356 * configure.ac: Check for -static-libgcc.
357 * configure: Regenerate.
359 2014-04-17 Jakub Jelinek <jakub@redhat.com>
362 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
363 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
364 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
365 over ../libiberty/pic/libiberty.a if the former exists.
366 * Makefile.in: Regenerated.
369 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
370 * Makefile.in: Regenerated.
372 2014-04-02 Richard Biener <rguenther@suse.de>
374 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
375 is set in COLLECT_GCC_OPTIONS.
377 2014-03-28 Richard Biener <rguenther@suse.de>
379 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
381 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
383 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
385 * configure: Regenerate.
386 * Makefile.am (AM_LDFLAGS): New variable.
387 (liblto_plugin_la_LDFLAGS): Add it.
388 * Makefile.in: Regenerate.
390 2013-09-20 Alan Modra <amodra@gmail.com>
392 * configure: Regenerate.
394 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
396 * configure: Regenerated.
398 2012-05-29 Joseph Myers <joseph@codesourcery.com>
400 * lto-plugin.c: Fix typo.
402 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
404 * configure: Regenerated.
406 2012-02-22 Kai Tietz <ktietz@redhat.com>
409 * lto-plugin.c (PRI_LL): New macro.
410 (dump_symtab): Use PRI_LL instead of ll in print.
411 (process_symtab): Use PRI_LL instead of ll in scan.
413 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
415 * configure: Regenerate.
417 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
419 * configure: Regenerate.
421 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
423 * configure: Regenerate.
425 2011-10-02 Jan Hubicka <jh@suse.cz>
428 * lto-plugin.c (get_symbols_v2): New variable.
429 (write_resolution): Use V2 API when available.
430 (onload): Handle LDPT_GET_SYMBOLS_V2.
432 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
433 Andi Kleen <ak@linux.intel.com>
436 * lto-plugin.c (sym_aux): Change id to unsigned long long.
437 (plugin_symtab): Likewise.
438 (dump_symtab): Likewise.
439 (resolve_conflicts): Likewise.
440 (process_symtab): Likewise.
442 2011-08-10 Richard Guenther <rguenther@suse.de>
446 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
447 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
448 * configure: Regenerate.
449 * Makefile.in: Likewise.
450 * aclocal.m4: Likewise.
452 2011-04-20 Jim Meyering <meyering@redhat.com>
454 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
456 2011-04-05 Richard Guenther <rguenther@suse.de>
459 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
461 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
463 * Makefile.in: Regenerate.
464 * aclocal.m4: Regenerate.
465 * configure: Regenerate.
467 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
469 * Makefile.am (all-local): Rename from 'all'.
470 * Makefile.in: Regenerate.
472 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
475 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
476 (liblto_plugin_la_LDFLAGS): Add -module.
477 (copy_lto_plugin): Renamed to...
478 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
480 * Makefile.in: Rebuild.
482 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
485 * Makefile.am (Wc): New helper for encoding -Wc,.
486 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
487 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
488 * Makefile.in: Regenerated.
490 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
494 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
497 * Makefile.am (Wl): New helper for encoding -Wl,.
498 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
499 * Makefile.in: Regenerated.
501 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
504 * Makefile.am (Wl): New helper for encoding -Wl,.
505 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
506 * Makefile.in: Regenerated.
508 2011-01-25 Ian Lance Taylor <iant@google.com>
510 * lto-plugin.c (gold_version): New static variable.
511 (all_symbols_read_handler): Don't check pass_through_items if
512 using gold 1.11 or later.
513 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
515 2011-01-12 Richard Guenther <rguenther@suse.de>
518 * lto-plugin.c (parse_table_entry): Use memcpy to access
521 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
523 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
524 * Makefile.in: Regenerate.
526 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
530 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
532 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
533 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
534 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
535 * Makefile.in: Regenerate.
537 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
541 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
542 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
543 * configure: Regenerate.
544 * config.h.in: Likewise.
546 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
550 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
551 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
552 override -bindir setting.
553 * aclocal.m4: Regenerate.
554 * configure: Regenerate.
555 * Makefile.in: Regenerate.
557 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
559 * config.h.in: Regenerated.
560 * configure: Regenerated.
561 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
562 * lto-plugin.c (WIFEXITED): Define default.
563 (WEXITSTATUS): Likeiwse.
565 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
567 * config.h.in: Regenerated.
568 * configure: Regenerated.
569 * Makefile.in: Regenerated.
570 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
571 * lto-plugin.c: Include sys/wait.h conditionally.
572 * aclocal.m4: Regenerated.
574 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
576 * lto-plugin.c (add_output_files): Fix memory leak.
578 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
582 * configure.ac: Add AC_TYPE_INT64_T test.
583 * config.h.in: Regenerate.
584 * configure: Likewise.
585 * lto-plugin.c (debug): Use char not bool.
587 (check_1): Rename from check, and use int not bool for gate argument.
588 (check): Macro wrapper for the above to coerce gate argument into
589 boolean-valued integer in case it has pointer type.
590 (parse_table_entry): Use 0 not false.
591 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
592 into two 32-bit parts and printing as hex ints.
594 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
597 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
599 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
602 * lto-plugin.h: Delete.
603 * lto-plugin-elf.c: Likewise.
604 * lto-plugin-coff.c: Likewise.
605 * configure.ac: Don't use libelf, don't source config.gcc.
606 (LIBELFLIBS): Delete.
608 (LTO_FORMAT): Delete.
609 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
610 (config.h): Add AC_CONFIG_HEADERS directive.
611 * Makefile.am (LIBELFLIBS): Delete.
613 (LTO_FORMAT): Delete.
615 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
616 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
617 any object-format-specific source file in the link.
618 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
619 * config.h.in: Generate.
620 * configure: Regenerate.
621 * Makefile.in: Likewise.
622 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
623 (LTO_SEGMENT_NAME): New definition.
624 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
625 (LTO_SECTION_PREFIX_LEN): New definition.
626 (struct sym_aux): Struct definition moved here from lto-plugin.h.
627 (struct plugin_symtab): Likewise.
628 (struct plugin_objfile): Likewise.
629 (struct plugin_objfile): New struct def.
630 (enum symbol_style): New enum type.
631 (add_symbols): Make static.
632 (claimed_files): Likewise.
633 (num_claimed_files): Likewise.
634 (sym_style): New global.
635 (check): Make static.
636 (parse_table_entry): Likewise. Respect sym_style when extracting
637 symbol from symtab entry.
638 (translate): Make static.
639 (resolve_conflicts): Likewise.
640 (process_symtab): New function, per-section callback version of
641 old object-format-specific handling from deleted lto-plugin-elf.c.
642 (claim_file_handler): Convert ELF-specific version from deleted
643 lto-plugin-elf.c to simple_object interface and move here.
644 (process_options): Allow new '-sym-style=' option.
645 (onload): Don't call deleted onload_format_checks hook.
647 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
649 * lto-plugin.c (dump_symtab): Correct printf argument type.
650 (finish_conflict_resolution): Initialize resolution.
652 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
655 * configure.ac: Add AC_CANONICAL_SYSTEM.
656 * configure: Regenerated.
658 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
660 * configure.ac: Source config.gcc to determine lto_binary_reader.
661 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
662 * Makefile.am (LTO_FORMAT): Import.
663 (liblto_plugin_la_SOURCES): Add object format dependent module
664 defined by LTO_FORMAT.
665 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
666 and work around libtool warning.
667 * configure: Regenerate.
668 * Makefile.in: Likewise.
669 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
670 (struct sym_aux): Likewise.
671 (struct plugin_symtab): Likewise.
672 (struct plugin_file_info): Likewise.
673 (LTO_SECTION_PREFIX): Likewise.
674 (add_symbols): Make non-static.
675 (claimed_files): Likewise.
676 (num_claimed_files): Likewise.
678 (parse_table_entry): Likewise.
679 (translate): Likewise.
680 (resolve_conflicts): Likewise.
681 (process_symtab): Move to new lto-plugin-elf.c object format dependent
683 (claim_file_handler): Likewise, and make non-static.
684 (onload): Call new onload_format_checks function.
685 * lto-plugin.h: New file.
686 (LTO_SECTION_PREFIX): Move here.
687 (struct sym_aux): Likewise.
688 (struct plugin_symtab): Likewise.
689 (struct plugin_file_info): Likewise.
690 (claim_file_handler): Add new function prototype.
691 (onload_format_checks): Likewise.
692 (check): Declare extern.
693 (translate): Likewise.
694 (parse_table_entry): Likewise.
695 (resolve_conflicts): Likewise.
696 (add_symbols): Likewise.
697 (claimed_files): Likewise.
698 (num_claimed_files): Likewise.
699 * lto-plugin-elf.c (process_symtab): Move here.
700 (claim_file_handler): Likewise, and make non-static.
701 (onload_format_checks): New function factored out from onload.
702 * lto-plugin-coff.c (claim_file_handler): New function stub.
703 (onload_format_checks): Likewise.
705 2010-08-05 Andi Kleen <ak@linux.intel.com>
707 * lto-plugin.c: Include <hashtab.h>
708 (sym_aux): Add next_conflict field to save conflict chains.
709 (plugin_file_info): Add conflicts symtab.
710 (parse_table_entry): Initialize aux->next_conflict.
711 (process_symtab): Increment found.
713 (finish_conflict_resolution): Add.
715 (write_resolution): Remove symbols loop and move into
716 dump_symtab. Call dump_symtab for main symbol and conflicts table.
717 Call free_symtab to free conflicts table.
721 (symbol_strength): Add.
722 (resolve_conflicts): Add.
723 (claim_file_handler): Add n variable. Check return value of
724 process_symtab. Call resolve_conflicts.
726 2010-07-27 Andi Kleen <ak@linux.intel.com>
728 * lto-plugin.c (translate): Remove debug fprintf.
730 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
733 * lto-plugin.c (translate): Cast to unsigned long.
735 2010-07-23 Andi Kleen <ak@linux.intel.com>
738 * lto-plugin.c (sym_aux): Add.
739 (plugin_symtab): Remove slots. Add aux and id.
740 (parse_table_entry): Change to use aux instead of slots.
741 (LTO_SECTION_PREFIX): Add.
742 (translate): Improve buffer allocation. Change to append
743 symbols to existing out buffer.
744 (get_section): Remove.
745 (process_symtab): Add.
746 (free_2): Free symtab->aux.
747 (write_resolution): Handle aux instead of slots.
748 Print sub id to resolution file.
749 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
750 calls with call to process_symtab.
752 2010-07-22 Richard Guenther <rguenther@suse.de>
754 * Makefile.am: New copy_lto_plugin rule to install the plugin
756 * Makefile.in: Regenerated.
758 2010-05-21 Richard Guenther <rguenther@suse.de>
760 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
762 2010-05-07 Richard Guenther <rguenther@suse.de>
764 * lto-plugin.c (free_2): Do not free resolution_file.
765 (write_resolution): Check that we were passed a resolution file.
766 (all_symbols_read_handler): Adjust.
767 (cleanup_handler): Do not remove the resolution file.
768 (process_option): Handle -fresolution=.
770 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
773 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
774 * Makefile.in: Regenerate.
776 2010-04-23 Richard Guenther <rguenther@suse.de>
779 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
780 (translate): Likewise.
781 (all_symbols_read_handler): Likewise.
782 (claim_file_handler): Likewise.
783 (process_option): Likewise.
784 (add_output_files): Likewise. Remove filename length limit.
786 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
788 * Makefile.in: Regenerate.
789 * aclocal.m4: Regenerate.
791 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
794 * lto-plugin.c (cleanup_handler): Delete temporary output files.
796 2010-01-11 Richard Guenther <rguenther@suse.de>
799 * Makefile.am: Disable dependencies.
800 * Makefile.in: Regenerated.
802 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
805 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
808 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
811 * configure: Regenerated.
812 * Makefile.in: Likewise.
814 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
817 * lto-plugin.c (claim_file_handler): Print offsets in hex.
819 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
821 * lto-plugin.c (write_resolution): Assume resolution_file is set.
822 Print the symbol name.
823 (all_symbols_read_handler): Create a resolution file.
825 (cleanup_handler): Remove the resolution file.
826 (process_option): Drop the -resolution option.
828 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
830 * lto-plugin.c (temp_obj_dir_name): Remove.
831 (arguments_file_name): New.
832 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
833 (exec_lto_wrapper): Create arguments file with make_temp_file.
834 (cleanup_handler): Don't remove the temporary directory. Remove the
836 (onload): Don't create the temporary directory.
838 2009-11-04 Richard Guenther <rguenther@suse.de>
839 Rafael Avila de Espindola <espindola@google.com>
841 * lto-plugin.c (plugin_file_info): Remove temp field.
842 (cleanup_handler): Don't delete temporary objects.
843 (claim_file_handler): Don't create temporary objects.
845 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
847 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
849 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
852 * lto-plugin.c (claim_file_handler): Close files that we created.
854 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
856 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
859 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
862 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
863 * configure: Regenerate.
865 2009-10-26 Richard Guenther <rguenther@suse.de>
867 * configure.ac: Use AM_MAINTAINER_MODE.
868 * acinclude.m4: Remove.
869 * configure: Re-generate.
870 * Makefile.in: Likewise.
871 * aclocal.m4: Likewise.
873 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
876 * configure: Regenerate.
877 * configure.ac: Add AC_TYPE_UINT64_T.
879 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
881 * lto-plugin.c (message): New variable.
882 (check): New function.
883 (parse_table_entry, translate, write_resolution,add_output_files,
884 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
886 (cleanup_handler): Use check instead of assert. Remove the arguments
889 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
891 * lto-plugin.c (resolution_file): New.
892 (free_1): Update comment.
893 (free_2): Free resolution_file.
894 (write_resolution): Write resolution to specified file. Use the
895 syms array from the symbol table.
896 (all_symbols_read_handler): Delay call to free_1 past call to
898 (process_option): Add a -resolution option.
900 2009-10-13 Richard Guenther <rguenther@suse.de>
902 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
904 * Makefile.in: Regenerated.
906 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
908 * lto-plugin.c (add_input_library): New.
909 (all_symbols_read_handler): Use add_input_library for items that
911 (process_option): Fit in 80 columns.
912 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
914 2009-10-02 Diego Novillo <dnovillo@google.com>
916 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
917 and -D_FILE_OFFSET_BITS=64.
918 * configure.ac: Add AC_SYS_LARGEFILE.
919 * configure: Regenerate.
920 * Makefile.in: Regenerate.
921 * lto-plugin.c: Fix copyright boilerplate.
923 2009-10-02 Diego Novillo <dnovillo@google.com>
925 * Makefile.am (ACLOCAL_AMFLAGS): Define.
926 * aclocal.m4: Regenerate with aclocal-2.64
927 * acinclude.m4: Remove.
928 * Makefile.in: Regenerate with automake-1.11
929 * configure.ac (AC_PREREQ): Update to 2.64.
930 * configure: Regenerate.
932 2009-10-02 Diego Novillo <dnovillo@google.com>
934 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
935 and -D_FILE_OFFSET_BITS=64.
936 * configure.ac: Add AC_SYS_LARGEFILE.
937 * configure: Regenerate.
938 * Makefile.in: Regenerate.
939 * lto-plugin.c: Fix copyright boilerplate.
941 2009-10-02 Diego Novillo <dnovillo@google.com>
943 * Makefile.am (ACLOCAL_AMFLAGS): Define.
944 * aclocal.m4: Regenerate with aclocal-2.64
945 * acinclude.m4: Remove.
946 * Makefile.in: Regenerate with automake-1.11
947 * configure.ac (AC_PREREQ): Update to 2.64.
948 * configure: Regenerate.
950 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
952 * Makefile.am (liblto_plugin_la_SOURCES): Remove
953 $(top_srcdir)/../gcc/lto/common.c
954 * Makefile.in: Regenerate.
956 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
958 * lto-plugin.c (pass_through_items): New.
959 (num_pass_through_items): New.
960 (all_symbols_read_handler): Update to use the -pass-through option.
961 (process_option): Replace -libgcc with -pass-through.
963 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
965 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
966 register_cleanup to be set.
968 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
970 * Makefile.am: Remove all reference to ltosymtab.
971 * Makefile.in: Regenerate.
972 * lto-symtab.c: Remove.
974 2009-05-21 Diego Novillo <dnovillo@google.com>
976 * configure.ac: Remove call to AC_CHECK_GELF.
977 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
978 * acinclude.m4: Do not include ../config/libelf.m4
979 * Makefile.am (LIBELFLIBS): Define.
981 (AM_CPPFLAGS): Add $(LIBELFINC).
982 (ltosymtab_LDADD): Add $(LIBELFLIBS).
983 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
984 * lto-plugin.c: Always include <gelf.h>
985 * lto-symtab.c: Likewise.
986 * configure: Regenerate.
987 * Makefile.in: Regenerate.
989 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
991 * lto-plugin.c (libgcc_filename): New.
992 (all_symbols_read_handler): Pass libgcc to the linker.
993 (all_symbols_read_handler): Parse -libgcc
995 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
997 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
998 * Makefile.in: Regenerate.
999 * lto-plugin.c (add_output_files): Argument is now a FILE.
1000 (exec_lto_wrapper): Use writeargv and pex.
1002 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1005 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1006 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1009 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1011 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1013 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
1015 * lto-plugin.c: Include libiberty.h.
1016 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
1019 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
1021 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
1022 file to lto-wrapper.
1024 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
1026 * lto-plugin.c (plugin_file_info): Remove fd and elf.
1027 (parse_table_entry): strdup entry->name and entry->comdat_key.
1028 (free_1): Free name and comdat_key. Don't close the file. Don't call
1030 (claim_file_handler): Always call elf_end.
1032 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
1034 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
1035 -D_FILE_OFFSET_BITS=64
1036 * Makefile.in: Regenerate
1038 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
1040 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
1041 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
1042 * Makefile.in: Regenerate.
1043 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
1044 * configure: Regenerate.
1045 * configure.ac: Add AC_SUBST(target_noncanonical).
1047 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1049 * lto-plugin.c: Include stdbool.h.
1050 (debug, nop): Declare as bool.
1052 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1054 * lto-plugin.c (nop): New.
1055 (use_original_files): New.
1056 (all_symbols_read_handler): Call use_original_files if nop is true.
1057 (process_option): Parse the -nop option.
1059 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1061 * lto-plugin.c (debug): New.
1062 (exec_lto_wrapper): Print argv if debug is true.
1063 (process_option): Process the -debug command line option.
1065 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
1067 * lto-plugin.c (process_option): The argument is now a single option,
1068 not a space separated list.
1070 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
1072 * lto-plugin.c: Include sys/types.h and sys/wait.h
1073 (output_files, num_output_files, lto_wrapper_argv,
1074 lto_wrapper_num_args): New.
1075 (free_2): Free output_files.
1076 (write_resolution): Disable.
1077 (add_output_files): New.
1078 (exec_lto_wrapper): New.
1079 (all_symbols_read_handler): Run lto-wrapper.
1080 (claim_file_handler): Free lto_file.name and call elf_end.
1081 (process_option): New.
1083 2008-11-26 Rafael Espindola <espindola@google.com>
1085 * lto-plugin.c (add_input_file): New.
1086 (get_section): Return NULL if get_section fails.
1087 (write_resolution): New.
1088 (all_symbols_read_handler): Call add_input_file.
1089 (claim_file_handler): Unlink the correct file.
1090 (onload): Record add_input_file.
1092 2008-09-23 Rafael Espindola <espindola@google.com>
1094 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
1095 Update the location of common.c.
1096 * Makefile.in: Regenerate.
1097 * common.c: Moved to gcc/lto.
1098 * common.h: Moved to gcc/lto.
1099 * lto-plugin.c: Update the location of common.h.
1100 * lto-symtab.c: Update the location of common.h.
1102 2008-09-23 Rafael Espindola <espindola@google.com>
1104 * common.c: Include common.h.
1105 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
1107 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
1110 2008-09-23 Rafael Espindola <espindola@google.com>
1112 * lto-plugin.c (plugin_file_info): Add temp.
1113 (cleanup_handler): Only delete temporary files.
1114 (claim_file_handler): Initialize lto_file.temp.
1116 2008-09-23 Rafael Espindola <espindola@google.com>
1118 * plugin-api.h: Moved to include.
1120 2008-09-23 Rafael Espindola <espindola@google.com>
1122 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1125 2008-09-22 Rafael Espindola <espindola@google.com>
1127 * plugin-api.h: Copy from binutils' cvs.
1129 2008-09-22 Rafael Espindola <espindola@google.com>
1131 * lto-symtab.c (get_symbols, add_symbols): Update signature.
1132 * plugin-api.h: Copy from binutils' cvs.
1134 2008-09-22 Rafael Espindola <espindola@google.com>
1136 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1139 2008-09-10 Rafael Espindola <espindola@google.com>
1141 * lto-plugin.c (onload): add missing break statements and asserts.
1142 * lto-symtab.c (claim_file_handler): Make it static.
1143 (all_symbols_read_handler): Make it static.
1144 (all_file_handles): Make it static.
1145 (num_file_handles): Make it static.
1146 (register_claim_file): Make it static.
1147 (register_object): Indent properly.
1149 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1151 * Makefile.am (ltosymtab_LDADD): Add -lelf.
1152 * Makefiel.in: Regenerate.
1153 * lto-plugin.c: Include ar.h.
1154 (claim_file_handler): Handle file->offset != 0.
1155 * lto-symtab.c: Include gelf.h.
1156 (all_file_handles): Change type.
1157 (register_object): New.
1158 (register_file): Add support for archives.
1159 (resolve): Update to new type of all_file_handles.
1160 (print): Update to new type of all_file_handles.
1161 (free_all): Update to new type of all_file_handles.
1162 (main): Update to new type of all_file_handles.
1164 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1166 * lto-plugin.c (get_string_table): Remove.
1167 (get_section): Use elf_strptr instead of get_string_table.
1169 2008-09-08 Doug Kwan <dougkwan@google.com>
1171 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1172 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1174 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
1176 * Makefile.am (ltosymtab_SOURCES): add common.c.
1177 (ltosymtab_CFLAGS): New.
1178 (liblto_plugin_la_SOURCES): Add common.c.
1179 * Makefile.in: Regenerate.
1182 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1183 (plugin_symtab): New.
1184 (plugin_file_info): New.
1185 (register_all_symbols_read): New.
1187 (claimed_files): New.
1188 (num_claimed_files): New.
1189 (translate): Don't drop the slot number.
1192 (all_symbols_read_handler): New.
1193 (claim_file_handler): Record every claimed file.
1194 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1196 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1197 (current_file_handle): Remove.
1198 (ld_plugin_all_symbols_read_handler): New.
1199 (plugin_handle): New.
1201 (all_file_handles): New.
1202 (num_file_handles): New.
1204 (register_all_symbols_read): New.
1205 (add_symbols): Don't print the symbols, just record them.
1206 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1208 (load_plugin): Use plugin_handle.
1209 (register_file): Add the file handle to all_file_handles.
1212 (unload_plugin): New.
1214 (main): Call all_symbols_read_handler and free resources.
1216 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1218 * Makefile.am (AM_CFLAGS): New.
1219 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1220 (lib_LTLIBRARIES): New.
1221 (liblto_plugin_la_SOURCES): New.
1222 (liblto_plugin_la_LIBADD): New.
1223 * Makefile.in: Regenerate.
1224 * acinclude.m4: Don't include ../config/acx.m4 and
1225 ../config/no-executables.m4.
1226 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1228 * aclocal.m4: Regenerate.
1229 * configure: Regenerate.
1230 * configure.ac: Use AM_PROG_LIBTOOL.
1231 * lto-plugin.c: New.
1232 * lto-symtab.c: Rewrite to use the plugin.
1233 * plugin-api.h: New.
1235 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1237 * configure: Regenerate.
1238 * configure.ac: Use AC_CHECK_GELF.
1239 * lto-symtab.c: Include gelf.h.
1240 (get_string_table): Use size independent API.
1241 (printTable): Use lld to print 64 bit integers.
1243 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1245 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1246 entry->visibility are valid.
1248 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1249 * lto-symtab.c (table_entry): Add comdat.
1250 (parse_table_entry): Read comdat.
1252 2008-08-21 Rafael Espindola <espindola@google.com>
1256 * acinclude.m4: New.
1259 * configure.ac: New.
1260 * lto-symtab.c: New.