1 2023-05-29 Release Manager
5 2022-04-21 Release Manager
9 2021-12-02 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
11 Backported from master:
12 2021-12-02 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
14 * lto-plugin.c: Fix -linker-output-auto-notlo-rel ->
15 -linker-output-auto-nolto-rel typo.
16 (process_option): Adjust accordingly, accepting both old and
19 2021-07-28 Release Manager
21 * GCC 11.2.0 released.
23 2021-04-27 Release Manager
25 * GCC 11.1.0 released.
27 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
29 * configure: Re-generate.
31 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
33 * configure: Regenerate.
35 2020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
37 * Makefile.am: Avoid using sanitizer.
38 * Makefile.in: Regenerate.
40 2020-09-10 Jonathan Yong <10walls@gmail.com>
42 * Makefile.am: drop versioning from libtool completely.
43 * Makefile.in: regenerate.
45 2020-09-09 Nick Clifton <nickc@redhat.com>
47 * lto-plugin.c (struct plugin_symtab): Add last_sym field.
48 (parse_symtab_extension): Only read as many entries as are
49 available in the buffer. Store the data read into the symbol
50 table indexed from last_sym. Increment last_sym.
52 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
55 * configure: Regenerated.
57 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
60 * configure: Regenerated.
62 2020-05-26 Alexandre Oliva <oliva@adacore.com>
64 * lto-plugin.c (skip_in_suffix): New.
65 (exec_lto_wrapper): Use skip_in_suffix and concat to build
66 non-temporary output names.
67 (onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
68 override link_output_name with it.
70 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
73 * configure: Regenerated.
75 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
77 * lto-plugin.c: Document -linker-output-auto-notlo-rel option.
78 (linker_output_set): Change type to bool.
79 (linker_output_known): Likewise.
80 (linker_output_auto_nolto_rel): New variable.
81 (all_symbols_read_handler): Take it into account.
82 <LDPO_REL>: Do not issue the warning if it is set.
83 (process_option): Process -linker-output-auto-notlo-rel.
84 (cleanup_handler): Remove unused variable.
85 (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
87 2020-04-28 H.J. Lu <hongjiu.lu@intel.com>
90 * configure: Regenerated.
92 2020-04-25 H.J. Lu <hongjiu.lu@intel.com>
95 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
96 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
97 AC_SUBST(CET_HOST_FLAGS).
98 * Makefile.in: Regenerated.
99 * aclocal.m4: Likewise.
100 * configure: Likewise.
102 2020-03-19 Martin Liska <mliska@suse.cz>
104 * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
105 (LTO_SYMTAB_PREFIX): ... this.
106 (LTO_SECTION_PREFIX_LEN): Rename to ...
107 (LTO_SYMTAB_PREFIX_LEN): ... this.
108 (LTO_SYMTAB_EXT_PREFIX): New.
109 (LTO_SYMTAB_EXT_PREFIX_LEN): New.
110 (LTO_LTO_PREFIX): New.
111 (LTO_LTO_PREFIX_LEN): New.
112 (parse_table_entry): Fill up unused to zero.
113 (parse_table_entry_extension): New.
114 (parse_symtab_extension): New.
115 (finish_conflict_resolution): Change type
117 (process_symtab): Use new macro name.
118 (process_symtab_extension): New.
119 (claim_file_handler): Parse also process_symtab_extension.
120 (onload): Call new add_symbols_v2.
122 2020-01-01 Jakub Jelinek <jakub@redhat.com>
124 Update copyright years.
126 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
128 * configure: Regenerate.
130 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
132 * lto-plugin.c (cleanup_handler): Remove unused var.
134 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
136 * lto-plugin.c (exec_lto_wrapper): Make the wrapper
137 arguments filename more user-friendly.
138 (file_exists, maybe_unlink): New.
139 (cleanup_handler): Use maybe unlink to handle the
140 case when temps should be saved.
141 (process_option): Look for -v, —-version, -save-temps.
142 (onload): Record the linker output file name.
143 Check for -v, —-version, -save-temps in the GCC collect
146 2019-02-26 Martin Liska <mliska@suse.cz>
148 * lto-symtab.c: Remove.
150 2019-01-01 Jakub Jelinek <jakub@redhat.com>
152 Update copyright years.
154 2018-10-31 Joseph Myers <joseph@codesourcery.com>
157 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
158 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
160 2018-05-30 Jan Hubicka <jh@suse.cz>
162 * lto-plugin.c: (non_claimed_files): New static var.
163 (linker_ouput_known): New static var.
164 (all_symbols_read_handler): When user specifies linker output do not
165 imply it; output warning when nonlto-rel mode is forced.
166 (claim_file_header): Record number of nonclaimed files.
167 (process_option): Remember if linker output is known
169 2018-04-18 David Malcolm <dmalcolm@redhat.com>
172 * configure: Regenerate.
174 2018-01-03 Jakub Jelinek <jakub@redhat.com>
176 Update copyright years.
178 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
181 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
183 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
185 2017-01-17 Jakub Jelinek <jakub@redhat.com>
188 * configure.ac: Add GCC_BASE_VER.
189 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
190 get version from BASE-VER file.
191 * configure: Regenerated.
192 * Makefile.in: Regenerated.
194 2017-01-04 Jakub Jelinek <jakub@redhat.com>
196 Update copyright years.
198 2016-11-15 Matthias Klose <doko@ubuntu.com>
200 * configure: Regenerate.
202 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
205 * lto-plugin.c (struct plugin_offload_file): New.
206 (offload_files): Change type.
207 (offload_files_last, offload_files_last_obj): New.
208 (offload_files_last_lto): New.
209 (free_2): Adjust accordingly.
210 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
211 Don't call free_1 for offload_files. Write names of object files with
212 offloading to the temporary file. Add new option to lto_arg_ptr.
213 (claim_file_handler): Don't claim file if it contains offload sections
214 without LTO sections. If it contains offload sections, add to the list.
216 2016-01-15 Martin Liska <mliska@suse.cz>
218 * lto-plugin.c (all_symbols_read_handler): Assign default
219 value to a string variable.
221 2015-11-25 Jan Hubicka <jh@suse.cz>
224 * lto-plugin.c (linker_output, linker_output_set): New statics.
225 (all_symbols_read_handler): Add -flinker-output option.
226 (onload): Record linker_output info.
228 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
230 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
231 * configure: Regenerate.
232 * config.h.in: Ditto.
234 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
236 * Makefile.am: Drop 'by automake version' from top-level comment.
237 * Makefile.in: Regenerated with automake-1.11.6.
238 * aclocal.m4: Likewise.
239 * configure: Likewise.
241 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
243 * lto-plugin.c (release_input_file): Removed.
244 (claim_file_handler): Don't call release_input_file.
245 (onload): Don't set release_input_file.
247 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
249 * lto-plugin.c (claim_file_handler): Pass handle to
252 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
254 * lto-plugin.c (claim_file_handler): Call release_input_file only
257 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
259 * lto-plugin.c (claim_file_handler): Call release_input_file only
262 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
265 * lto-plugin.c (release_input_file): New.
266 (claim_file_handler): Call release_input_file.
267 (onload): Set release_input_file.
269 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
271 * lto-plugin.c (offload_files, num_offload_files): New static variables.
272 (free_1): Use arguments instead of global variables.
273 (free_2): Free offload_files.
274 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
276 (claim_file_handler): Do not add file to claimed_files if it contains
277 offload sections without LTO sections. Add it to offload_files instead.
279 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
282 * configure: Regenerated.
284 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
285 Bernd Schmidt <bernds@codesourcery.com>
286 Andrey Turetskiy <andrey.turetskiy@intel.com>
287 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
289 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
290 (struct plugin_objfile): Add new field "offload".
291 (process_offload_section): New static function.
292 (claim_file_handler): Claim file if it contains offload sections.
294 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
295 Thomas Schwinge <thomas@codesourcery.com>
296 Ilya Verbin <ilya.verbin@intel.com>
297 Andrey Turetskiy <andrey.turetskiy@intel.com>
299 * Makefile.am (libexecsubdir): Tweak for the possibility of being
300 configured for offload compiler.
301 (accel_dir_suffix, real_target_noncanonical): New variables substituted
303 * Makefile.in: Regenerate.
304 * configure: Regenerate.
305 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
308 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
311 * configure: Regenerate.
313 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
316 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
317 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
319 * Makefile.in: Regenerated.
320 * configure: Likewise.
322 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
324 * configure.ac (--with-libiberty): New configure option.
325 * configure: Regenerate.
326 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
328 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
329 (liblto_plugin_la_DEPENDENCIES): Use them.
330 * Makefile.in: Regenerate.
332 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
335 * configure.ac: Check for -static-libgcc.
336 * configure: Regenerate.
338 2014-04-17 Jakub Jelinek <jakub@redhat.com>
341 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
342 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
343 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
344 over ../libiberty/pic/libiberty.a if the former exists.
345 * Makefile.in: Regenerated.
348 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
349 * Makefile.in: Regenerated.
351 2014-04-02 Richard Biener <rguenther@suse.de>
353 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
354 is set in COLLECT_GCC_OPTIONS.
356 2014-03-28 Richard Biener <rguenther@suse.de>
358 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
360 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
362 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
364 * configure: Regenerate.
365 * Makefile.am (AM_LDFLAGS): New variable.
366 (liblto_plugin_la_LDFLAGS): Add it.
367 * Makefile.in: Regenerate.
369 2013-09-20 Alan Modra <amodra@gmail.com>
371 * configure: Regenerate.
373 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
375 * configure: Regenerated.
377 2012-05-29 Joseph Myers <joseph@codesourcery.com>
379 * lto-plugin.c: Fix typo.
381 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
383 * configure: Regenerated.
385 2012-02-22 Kai Tietz <ktietz@redhat.com>
388 * lto-plugin.c (PRI_LL): New macro.
389 (dump_symtab): Use PRI_LL instead of ll in print.
390 (process_symtab): Use PRI_LL instead of ll in scan.
392 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
394 * configure: Regenerate.
396 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
398 * configure: Regenerate.
400 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
402 * configure: Regenerate.
404 2011-10-02 Jan Hubicka <jh@suse.cz>
407 * lto-plugin.c (get_symbols_v2): New variable.
408 (write_resolution): Use V2 API when available.
409 (onload): Handle LDPT_GET_SYMBOLS_V2.
411 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
412 Andi Kleen <ak@linux.intel.com>
415 * lto-plugin.c (sym_aux): Change id to unsigned long long.
416 (plugin_symtab): Likewise.
417 (dump_symtab): Likewise.
418 (resolve_conflicts): Likewise.
419 (process_symtab): Likewise.
421 2011-08-10 Richard Guenther <rguenther@suse.de>
425 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
426 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
427 * configure: Regenerate.
428 * Makefile.in: Likewise.
429 * aclocal.m4: Likewise.
431 2011-04-20 Jim Meyering <meyering@redhat.com>
433 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
435 2011-04-05 Richard Guenther <rguenther@suse.de>
438 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
440 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
442 * Makefile.in: Regenerate.
443 * aclocal.m4: Regenerate.
444 * configure: Regenerate.
446 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
448 * Makefile.am (all-local): Rename from 'all'.
449 * Makefile.in: Regenerate.
451 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
454 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
455 (liblto_plugin_la_LDFLAGS): Add -module.
456 (copy_lto_plugin): Renamed to...
457 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
459 * Makefile.in: Rebuild.
461 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
464 * Makefile.am (Wc): New helper for encoding -Wc,.
465 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
466 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
467 * Makefile.in: Regenerated.
469 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
473 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
476 * Makefile.am (Wl): New helper for encoding -Wl,.
477 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
478 * Makefile.in: Regenerated.
480 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
483 * Makefile.am (Wl): New helper for encoding -Wl,.
484 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
485 * Makefile.in: Regenerated.
487 2011-01-25 Ian Lance Taylor <iant@google.com>
489 * lto-plugin.c (gold_version): New static variable.
490 (all_symbols_read_handler): Don't check pass_through_items if
491 using gold 1.11 or later.
492 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
494 2011-01-12 Richard Guenther <rguenther@suse.de>
497 * lto-plugin.c (parse_table_entry): Use memcpy to access
500 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
502 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
503 * Makefile.in: Regenerate.
505 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
509 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
511 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
512 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
513 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
514 * Makefile.in: Regenerate.
516 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
520 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
521 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
522 * configure: Regenerate.
523 * config.h.in: Likewise.
525 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
529 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
530 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
531 override -bindir setting.
532 * aclocal.m4: Regenerate.
533 * configure: Regenerate.
534 * Makefile.in: Regenerate.
536 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
538 * config.h.in: Regenerated.
539 * configure: Regenerated.
540 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
541 * lto-plugin.c (WIFEXITED): Define default.
542 (WEXITSTATUS): Likeiwse.
544 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
546 * config.h.in: Regenerated.
547 * configure: Regenerated.
548 * Makefile.in: Regenerated.
549 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
550 * lto-plugin.c: Include sys/wait.h conditionally.
551 * aclocal.m4: Regenerated.
553 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
555 * lto-plugin.c (add_output_files): Fix memory leak.
557 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
561 * configure.ac: Add AC_TYPE_INT64_T test.
562 * config.h.in: Regenerate.
563 * configure: Likewise.
564 * lto-plugin.c (debug): Use char not bool.
566 (check_1): Rename from check, and use int not bool for gate argument.
567 (check): Macro wrapper for the above to coerce gate argument into
568 boolean-valued integer in case it has pointer type.
569 (parse_table_entry): Use 0 not false.
570 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
571 into two 32-bit parts and printing as hex ints.
573 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
576 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
578 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
581 * lto-plugin.h: Delete.
582 * lto-plugin-elf.c: Likewise.
583 * lto-plugin-coff.c: Likewise.
584 * configure.ac: Don't use libelf, don't source config.gcc.
585 (LIBELFLIBS): Delete.
587 (LTO_FORMAT): Delete.
588 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
589 (config.h): Add AC_CONFIG_HEADERS directive.
590 * Makefile.am (LIBELFLIBS): Delete.
592 (LTO_FORMAT): Delete.
594 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
595 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
596 any object-format-specific source file in the link.
597 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
598 * config.h.in: Generate.
599 * configure: Regenerate.
600 * Makefile.in: Likewise.
601 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
602 (LTO_SEGMENT_NAME): New definition.
603 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
604 (LTO_SECTION_PREFIX_LEN): New definition.
605 (struct sym_aux): Struct definition moved here from lto-plugin.h.
606 (struct plugin_symtab): Likewise.
607 (struct plugin_objfile): Likewise.
608 (struct plugin_objfile): New struct def.
609 (enum symbol_style): New enum type.
610 (add_symbols): Make static.
611 (claimed_files): Likewise.
612 (num_claimed_files): Likewise.
613 (sym_style): New global.
614 (check): Make static.
615 (parse_table_entry): Likewise. Respect sym_style when extracting
616 symbol from symtab entry.
617 (translate): Make static.
618 (resolve_conflicts): Likewise.
619 (process_symtab): New function, per-section callback version of
620 old object-format-specific handling from deleted lto-plugin-elf.c.
621 (claim_file_handler): Convert ELF-specific version from deleted
622 lto-plugin-elf.c to simple_object interface and move here.
623 (process_options): Allow new '-sym-style=' option.
624 (onload): Don't call deleted onload_format_checks hook.
626 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
628 * lto-plugin.c (dump_symtab): Correct printf argument type.
629 (finish_conflict_resolution): Initialize resolution.
631 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
634 * configure.ac: Add AC_CANONICAL_SYSTEM.
635 * configure: Regenerated.
637 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
639 * configure.ac: Source config.gcc to determine lto_binary_reader.
640 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
641 * Makefile.am (LTO_FORMAT): Import.
642 (liblto_plugin_la_SOURCES): Add object format dependent module
643 defined by LTO_FORMAT.
644 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
645 and work around libtool warning.
646 * configure: Regenerate.
647 * Makefile.in: Likewise.
648 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
649 (struct sym_aux): Likewise.
650 (struct plugin_symtab): Likewise.
651 (struct plugin_file_info): Likewise.
652 (LTO_SECTION_PREFIX): Likewise.
653 (add_symbols): Make non-static.
654 (claimed_files): Likewise.
655 (num_claimed_files): Likewise.
657 (parse_table_entry): Likewise.
658 (translate): Likewise.
659 (resolve_conflicts): Likewise.
660 (process_symtab): Move to new lto-plugin-elf.c object format dependent
662 (claim_file_handler): Likewise, and make non-static.
663 (onload): Call new onload_format_checks function.
664 * lto-plugin.h: New file.
665 (LTO_SECTION_PREFIX): Move here.
666 (struct sym_aux): Likewise.
667 (struct plugin_symtab): Likewise.
668 (struct plugin_file_info): Likewise.
669 (claim_file_handler): Add new function prototype.
670 (onload_format_checks): Likewise.
671 (check): Declare extern.
672 (translate): Likewise.
673 (parse_table_entry): Likewise.
674 (resolve_conflicts): Likewise.
675 (add_symbols): Likewise.
676 (claimed_files): Likewise.
677 (num_claimed_files): Likewise.
678 * lto-plugin-elf.c (process_symtab): Move here.
679 (claim_file_handler): Likewise, and make non-static.
680 (onload_format_checks): New function factored out from onload.
681 * lto-plugin-coff.c (claim_file_handler): New function stub.
682 (onload_format_checks): Likewise.
684 2010-08-05 Andi Kleen <ak@linux.intel.com>
686 * lto-plugin.c: Include <hashtab.h>
687 (sym_aux): Add next_conflict field to save conflict chains.
688 (plugin_file_info): Add conflicts symtab.
689 (parse_table_entry): Initialize aux->next_conflict.
690 (process_symtab): Increment found.
692 (finish_conflict_resolution): Add.
694 (write_resolution): Remove symbols loop and move into
695 dump_symtab. Call dump_symtab for main symbol and conflicts table.
696 Call free_symtab to free conflicts table.
700 (symbol_strength): Add.
701 (resolve_conflicts): Add.
702 (claim_file_handler): Add n variable. Check return value of
703 process_symtab. Call resolve_conflicts.
705 2010-07-27 Andi Kleen <ak@linux.intel.com>
707 * lto-plugin.c (translate): Remove debug fprintf.
709 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
712 * lto-plugin.c (translate): Cast to unsigned long.
714 2010-07-23 Andi Kleen <ak@linux.intel.com>
717 * lto-plugin.c (sym_aux): Add.
718 (plugin_symtab): Remove slots. Add aux and id.
719 (parse_table_entry): Change to use aux instead of slots.
720 (LTO_SECTION_PREFIX): Add.
721 (translate): Improve buffer allocation. Change to append
722 symbols to existing out buffer.
723 (get_section): Remove.
724 (process_symtab): Add.
725 (free_2): Free symtab->aux.
726 (write_resolution): Handle aux instead of slots.
727 Print sub id to resolution file.
728 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
729 calls with call to process_symtab.
731 2010-07-22 Richard Guenther <rguenther@suse.de>
733 * Makefile.am: New copy_lto_plugin rule to install the plugin
735 * Makefile.in: Regenerated.
737 2010-05-21 Richard Guenther <rguenther@suse.de>
739 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
741 2010-05-07 Richard Guenther <rguenther@suse.de>
743 * lto-plugin.c (free_2): Do not free resolution_file.
744 (write_resolution): Check that we were passed a resolution file.
745 (all_symbols_read_handler): Adjust.
746 (cleanup_handler): Do not remove the resolution file.
747 (process_option): Handle -fresolution=.
749 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
752 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
753 * Makefile.in: Regenerate.
755 2010-04-23 Richard Guenther <rguenther@suse.de>
758 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
759 (translate): Likewise.
760 (all_symbols_read_handler): Likewise.
761 (claim_file_handler): Likewise.
762 (process_option): Likewise.
763 (add_output_files): Likewise. Remove filename length limit.
765 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
767 * Makefile.in: Regenerate.
768 * aclocal.m4: Regenerate.
770 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
773 * lto-plugin.c (cleanup_handler): Delete temporary output files.
775 2010-01-11 Richard Guenther <rguenther@suse.de>
778 * Makefile.am: Disable dependencies.
779 * Makefile.in: Regenerated.
781 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
784 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
787 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
790 * configure: Regenerated.
791 * Makefile.in: Likewise.
793 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
796 * lto-plugin.c (claim_file_handler): Print offsets in hex.
798 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
800 * lto-plugin.c (write_resolution): Assume resolution_file is set.
801 Print the symbol name.
802 (all_symbols_read_handler): Create a resolution file.
804 (cleanup_handler): Remove the resolution file.
805 (process_option): Drop the -resolution option.
807 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
809 * lto-plugin.c (temp_obj_dir_name): Remove.
810 (arguments_file_name): New.
811 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
812 (exec_lto_wrapper): Create arguments file with make_temp_file.
813 (cleanup_handler): Don't remove the temporary directory. Remove the
815 (onload): Don't create the temporary directory.
817 2009-11-04 Richard Guenther <rguenther@suse.de>
818 Rafael Avila de Espindola <espindola@google.com>
820 * lto-plugin.c (plugin_file_info): Remove temp field.
821 (cleanup_handler): Don't delete temporary objects.
822 (claim_file_handler): Don't create temporary objects.
824 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
826 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
828 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
831 * lto-plugin.c (claim_file_handler): Close files that we created.
833 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
835 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
838 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
841 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
842 * configure: Regenerate.
844 2009-10-26 Richard Guenther <rguenther@suse.de>
846 * configure.ac: Use AM_MAINTAINER_MODE.
847 * acinclude.m4: Remove.
848 * configure: Re-generate.
849 * Makefile.in: Likewise.
850 * aclocal.m4: Likewise.
852 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
855 * configure: Regenerate.
856 * configure.ac: Add AC_TYPE_UINT64_T.
858 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
860 * lto-plugin.c (message): New variable.
861 (check): New function.
862 (parse_table_entry, translate, write_resolution,add_output_files,
863 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
865 (cleanup_handler): Use check instead of assert. Remove the arguments
868 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
870 * lto-plugin.c (resolution_file): New.
871 (free_1): Update comment.
872 (free_2): Free resolution_file.
873 (write_resolution): Write resolution to specified file. Use the
874 syms array from the symbol table.
875 (all_symbols_read_handler): Delay call to free_1 past call to
877 (process_option): Add a -resolution option.
879 2009-10-13 Richard Guenther <rguenther@suse.de>
881 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
883 * Makefile.in: Regenerated.
885 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
887 * lto-plugin.c (add_input_library): New.
888 (all_symbols_read_handler): Use add_input_library for items that
890 (process_option): Fit in 80 columns.
891 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
893 2009-10-02 Diego Novillo <dnovillo@google.com>
895 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
896 and -D_FILE_OFFSET_BITS=64.
897 * configure.ac: Add AC_SYS_LARGEFILE.
898 * configure: Regenerate.
899 * Makefile.in: Regenerate.
900 * lto-plugin.c: Fix copyright boilerplate.
902 2009-10-02 Diego Novillo <dnovillo@google.com>
904 * Makefile.am (ACLOCAL_AMFLAGS): Define.
905 * aclocal.m4: Regenerate with aclocal-2.64
906 * acinclude.m4: Remove.
907 * Makefile.in: Regenerate with automake-1.11
908 * configure.ac (AC_PREREQ): Update to 2.64.
909 * configure: Regenerate.
911 2009-10-02 Diego Novillo <dnovillo@google.com>
913 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
914 and -D_FILE_OFFSET_BITS=64.
915 * configure.ac: Add AC_SYS_LARGEFILE.
916 * configure: Regenerate.
917 * Makefile.in: Regenerate.
918 * lto-plugin.c: Fix copyright boilerplate.
920 2009-10-02 Diego Novillo <dnovillo@google.com>
922 * Makefile.am (ACLOCAL_AMFLAGS): Define.
923 * aclocal.m4: Regenerate with aclocal-2.64
924 * acinclude.m4: Remove.
925 * Makefile.in: Regenerate with automake-1.11
926 * configure.ac (AC_PREREQ): Update to 2.64.
927 * configure: Regenerate.
929 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
931 * Makefile.am (liblto_plugin_la_SOURCES): Remove
932 $(top_srcdir)/../gcc/lto/common.c
933 * Makefile.in: Regenerate.
935 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
937 * lto-plugin.c (pass_through_items): New.
938 (num_pass_through_items): New.
939 (all_symbols_read_handler): Update to use the -pass-through option.
940 (process_option): Replace -libgcc with -pass-through.
942 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
944 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
945 register_cleanup to be set.
947 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
949 * Makefile.am: Remove all reference to ltosymtab.
950 * Makefile.in: Regenerate.
951 * lto-symtab.c: Remove.
953 2009-05-21 Diego Novillo <dnovillo@google.com>
955 * configure.ac: Remove call to AC_CHECK_GELF.
956 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
957 * acinclude.m4: Do not include ../config/libelf.m4
958 * Makefile.am (LIBELFLIBS): Define.
960 (AM_CPPFLAGS): Add $(LIBELFINC).
961 (ltosymtab_LDADD): Add $(LIBELFLIBS).
962 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
963 * lto-plugin.c: Always include <gelf.h>
964 * lto-symtab.c: Likewise.
965 * configure: Regenerate.
966 * Makefile.in: Regenerate.
968 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
970 * lto-plugin.c (libgcc_filename): New.
971 (all_symbols_read_handler): Pass libgcc to the linker.
972 (all_symbols_read_handler): Parse -libgcc
974 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
976 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
977 * Makefile.in: Regenerate.
978 * lto-plugin.c (add_output_files): Argument is now a FILE.
979 (exec_lto_wrapper): Use writeargv and pex.
981 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
984 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
985 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
988 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
990 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
992 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
994 * lto-plugin.c: Include libiberty.h.
995 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
998 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
1000 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
1001 file to lto-wrapper.
1003 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
1005 * lto-plugin.c (plugin_file_info): Remove fd and elf.
1006 (parse_table_entry): strdup entry->name and entry->comdat_key.
1007 (free_1): Free name and comdat_key. Don't close the file. Don't call
1009 (claim_file_handler): Always call elf_end.
1011 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
1013 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
1014 -D_FILE_OFFSET_BITS=64
1015 * Makefile.in: Regenerate
1017 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
1019 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
1020 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
1021 * Makefile.in: Regenerate.
1022 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
1023 * configure: Regenerate.
1024 * configure.ac: Add AC_SUBST(target_noncanonical).
1026 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1028 * lto-plugin.c: Include stdbool.h.
1029 (debug, nop): Declare as bool.
1031 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1033 * lto-plugin.c (nop): New.
1034 (use_original_files): New.
1035 (all_symbols_read_handler): Call use_original_files if nop is true.
1036 (process_option): Parse the -nop option.
1038 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1040 * lto-plugin.c (debug): New.
1041 (exec_lto_wrapper): Print argv if debug is true.
1042 (process_option): Process the -debug command line option.
1044 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
1046 * lto-plugin.c (process_option): The argument is now a single option,
1047 not a space separated list.
1049 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
1051 * lto-plugin.c: Include sys/types.h and sys/wait.h
1052 (output_files, num_output_files, lto_wrapper_argv,
1053 lto_wrapper_num_args): New.
1054 (free_2): Free output_files.
1055 (write_resolution): Disable.
1056 (add_output_files): New.
1057 (exec_lto_wrapper): New.
1058 (all_symbols_read_handler): Run lto-wrapper.
1059 (claim_file_handler): Free lto_file.name and call elf_end.
1060 (process_option): New.
1062 2008-11-26 Rafael Espindola <espindola@google.com>
1064 * lto-plugin.c (add_input_file): New.
1065 (get_section): Return NULL if get_section fails.
1066 (write_resolution): New.
1067 (all_symbols_read_handler): Call add_input_file.
1068 (claim_file_handler): Unlink the correct file.
1069 (onload): Record add_input_file.
1071 2008-09-23 Rafael Espindola <espindola@google.com>
1073 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
1074 Update the location of common.c.
1075 * Makefile.in: Regenerate.
1076 * common.c: Moved to gcc/lto.
1077 * common.h: Moved to gcc/lto.
1078 * lto-plugin.c: Update the location of common.h.
1079 * lto-symtab.c: Update the location of common.h.
1081 2008-09-23 Rafael Espindola <espindola@google.com>
1083 * common.c: Include common.h.
1084 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
1086 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
1089 2008-09-23 Rafael Espindola <espindola@google.com>
1091 * lto-plugin.c (plugin_file_info): Add temp.
1092 (cleanup_handler): Only delete temporary files.
1093 (claim_file_handler): Initialize lto_file.temp.
1095 2008-09-23 Rafael Espindola <espindola@google.com>
1097 * plugin-api.h: Moved to include.
1099 2008-09-23 Rafael Espindola <espindola@google.com>
1101 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1104 2008-09-22 Rafael Espindola <espindola@google.com>
1106 * plugin-api.h: Copy from binutils' cvs.
1108 2008-09-22 Rafael Espindola <espindola@google.com>
1110 * lto-symtab.c (get_symbols, add_symbols): Update signature.
1111 * plugin-api.h: Copy from binutils' cvs.
1113 2008-09-22 Rafael Espindola <espindola@google.com>
1115 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1118 2008-09-10 Rafael Espindola <espindola@google.com>
1120 * lto-plugin.c (onload): add missing break statements and asserts.
1121 * lto-symtab.c (claim_file_handler): Make it static.
1122 (all_symbols_read_handler): Make it static.
1123 (all_file_handles): Make it static.
1124 (num_file_handles): Make it static.
1125 (register_claim_file): Make it static.
1126 (register_object): Indent properly.
1128 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1130 * Makefile.am (ltosymtab_LDADD): Add -lelf.
1131 * Makefiel.in: Regenerate.
1132 * lto-plugin.c: Include ar.h.
1133 (claim_file_handler): Handle file->offset != 0.
1134 * lto-symtab.c: Include gelf.h.
1135 (all_file_handles): Change type.
1136 (register_object): New.
1137 (register_file): Add support for archives.
1138 (resolve): Update to new type of all_file_handles.
1139 (print): Update to new type of all_file_handles.
1140 (free_all): Update to new type of all_file_handles.
1141 (main): Update to new type of all_file_handles.
1143 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1145 * lto-plugin.c (get_string_table): Remove.
1146 (get_section): Use elf_strptr instead of get_string_table.
1148 2008-09-08 Doug Kwan <dougkwan@google.com>
1150 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1151 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1153 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
1155 * Makefile.am (ltosymtab_SOURCES): add common.c.
1156 (ltosymtab_CFLAGS): New.
1157 (liblto_plugin_la_SOURCES): Add common.c.
1158 * Makefile.in: Regenerate.
1161 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1162 (plugin_symtab): New.
1163 (plugin_file_info): New.
1164 (register_all_symbols_read): New.
1166 (claimed_files): New.
1167 (num_claimed_files): New.
1168 (translate): Don't drop the slot number.
1171 (all_symbols_read_handler): New.
1172 (claim_file_handler): Record every claimed file.
1173 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1175 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1176 (current_file_handle): Remove.
1177 (ld_plugin_all_symbols_read_handler): New.
1178 (plugin_handle): New.
1180 (all_file_handles): New.
1181 (num_file_handles): New.
1183 (register_all_symbols_read): New.
1184 (add_symbols): Don't print the symbols, just record them.
1185 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1187 (load_plugin): Use plugin_handle.
1188 (register_file): Add the file handle to all_file_handles.
1191 (unload_plugin): New.
1193 (main): Call all_symbols_read_handler and free resources.
1195 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1197 * Makefile.am (AM_CFLAGS): New.
1198 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1199 (lib_LTLIBRARIES): New.
1200 (liblto_plugin_la_SOURCES): New.
1201 (liblto_plugin_la_LIBADD): New.
1202 * Makefile.in: Regenerate.
1203 * acinclude.m4: Don't include ../config/acx.m4 and
1204 ../config/no-executables.m4.
1205 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1207 * aclocal.m4: Regenerate.
1208 * configure: Regenerate.
1209 * configure.ac: Use AM_PROG_LIBTOOL.
1210 * lto-plugin.c: New.
1211 * lto-symtab.c: Rewrite to use the plugin.
1212 * plugin-api.h: New.
1214 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1216 * configure: Regenerate.
1217 * configure.ac: Use AC_CHECK_GELF.
1218 * lto-symtab.c: Include gelf.h.
1219 (get_string_table): Use size independent API.
1220 (printTable): Use lld to print 64 bit integers.
1222 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1224 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1225 entry->visibility are valid.
1227 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1228 * lto-symtab.c (table_entry): Add comdat.
1229 (parse_table_entry): Read comdat.
1231 2008-08-21 Rafael Espindola <espindola@google.com>
1235 * acinclude.m4: New.
1238 * configure.ac: New.
1239 * lto-symtab.c: New.