1 2020-04-25 H.J. Lu <hongjiu.lu@intel.com>
4 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
5 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
6 AC_SUBST(CET_HOST_FLAGS).
7 * Makefile.in: Regenerated.
8 * aclocal.m4: Likewise.
11 2020-03-19 Martin Liska <mliska@suse.cz>
13 * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
14 (LTO_SYMTAB_PREFIX): ... this.
15 (LTO_SECTION_PREFIX_LEN): Rename to ...
16 (LTO_SYMTAB_PREFIX_LEN): ... this.
17 (LTO_SYMTAB_EXT_PREFIX): New.
18 (LTO_SYMTAB_EXT_PREFIX_LEN): New.
19 (LTO_LTO_PREFIX): New.
20 (LTO_LTO_PREFIX_LEN): New.
21 (parse_table_entry): Fill up unused to zero.
22 (parse_table_entry_extension): New.
23 (parse_symtab_extension): New.
24 (finish_conflict_resolution): Change type
26 (process_symtab): Use new macro name.
27 (process_symtab_extension): New.
28 (claim_file_handler): Parse also process_symtab_extension.
29 (onload): Call new add_symbols_v2.
31 2020-01-01 Jakub Jelinek <jakub@redhat.com>
33 Update copyright years.
35 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
37 * configure: Regenerate.
39 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
41 * lto-plugin.c (cleanup_handler): Remove unused var.
43 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
45 * lto-plugin.c (exec_lto_wrapper): Make the wrapper
46 arguments filename more user-friendly.
47 (file_exists, maybe_unlink): New.
48 (cleanup_handler): Use maybe unlink to handle the
49 case when temps should be saved.
50 (process_option): Look for -v, —-version, -save-temps.
51 (onload): Record the linker output file name.
52 Check for -v, —-version, -save-temps in the GCC collect
55 2019-02-26 Martin Liska <mliska@suse.cz>
57 * lto-symtab.c: Remove.
59 2019-01-01 Jakub Jelinek <jakub@redhat.com>
61 Update copyright years.
63 2018-10-31 Joseph Myers <joseph@codesourcery.com>
66 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
67 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
69 2018-05-30 Jan Hubicka <jh@suse.cz>
71 * lto-plugin.c: (non_claimed_files): New static var.
72 (linker_ouput_known): New static var.
73 (all_symbols_read_handler): When user specifies linker output do not
74 imply it; output warning when nonlto-rel mode is forced.
75 (claim_file_header): Record number of nonclaimed files.
76 (process_option): Remember if linker output is known
78 2018-04-18 David Malcolm <dmalcolm@redhat.com>
81 * configure: Regenerate.
83 2018-01-03 Jakub Jelinek <jakub@redhat.com>
85 Update copyright years.
87 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
90 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
92 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
94 2017-01-17 Jakub Jelinek <jakub@redhat.com>
97 * configure.ac: Add GCC_BASE_VER.
98 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
99 get version from BASE-VER file.
100 * configure: Regenerated.
101 * Makefile.in: Regenerated.
103 2017-01-04 Jakub Jelinek <jakub@redhat.com>
105 Update copyright years.
107 2016-11-15 Matthias Klose <doko@ubuntu.com>
109 * configure: Regenerate.
111 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
114 * lto-plugin.c (struct plugin_offload_file): New.
115 (offload_files): Change type.
116 (offload_files_last, offload_files_last_obj): New.
117 (offload_files_last_lto): New.
118 (free_2): Adjust accordingly.
119 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
120 Don't call free_1 for offload_files. Write names of object files with
121 offloading to the temporary file. Add new option to lto_arg_ptr.
122 (claim_file_handler): Don't claim file if it contains offload sections
123 without LTO sections. If it contains offload sections, add to the list.
125 2016-01-15 Martin Liska <mliska@suse.cz>
127 * lto-plugin.c (all_symbols_read_handler): Assign default
128 value to a string variable.
130 2015-11-25 Jan Hubicka <jh@suse.cz>
133 * lto-plugin.c (linker_output, linker_output_set): New statics.
134 (all_symbols_read_handler): Add -flinker-output option.
135 (onload): Record linker_output info.
137 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
139 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
140 * configure: Regenerate.
141 * config.h.in: Ditto.
143 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
145 * Makefile.am: Drop 'by automake version' from top-level comment.
146 * Makefile.in: Regenerated with automake-1.11.6.
147 * aclocal.m4: Likewise.
148 * configure: Likewise.
150 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
152 * lto-plugin.c (release_input_file): Removed.
153 (claim_file_handler): Don't call release_input_file.
154 (onload): Don't set release_input_file.
156 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
158 * lto-plugin.c (claim_file_handler): Pass handle to
161 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
163 * lto-plugin.c (claim_file_handler): Call release_input_file only
166 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
168 * lto-plugin.c (claim_file_handler): Call release_input_file only
171 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
174 * lto-plugin.c (release_input_file): New.
175 (claim_file_handler): Call release_input_file.
176 (onload): Set release_input_file.
178 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
180 * lto-plugin.c (offload_files, num_offload_files): New static variables.
181 (free_1): Use arguments instead of global variables.
182 (free_2): Free offload_files.
183 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
185 (claim_file_handler): Do not add file to claimed_files if it contains
186 offload sections without LTO sections. Add it to offload_files instead.
188 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
191 * configure: Regenerated.
193 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
194 Bernd Schmidt <bernds@codesourcery.com>
195 Andrey Turetskiy <andrey.turetskiy@intel.com>
196 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
198 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
199 (struct plugin_objfile): Add new field "offload".
200 (process_offload_section): New static function.
201 (claim_file_handler): Claim file if it contains offload sections.
203 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
204 Thomas Schwinge <thomas@codesourcery.com>
205 Ilya Verbin <ilya.verbin@intel.com>
206 Andrey Turetskiy <andrey.turetskiy@intel.com>
208 * Makefile.am (libexecsubdir): Tweak for the possibility of being
209 configured for offload compiler.
210 (accel_dir_suffix, real_target_noncanonical): New variables substituted
212 * Makefile.in: Regenerate.
213 * configure: Regenerate.
214 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
217 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
220 * configure: Regenerate.
222 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
225 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
226 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
228 * Makefile.in: Regenerated.
229 * configure: Likewise.
231 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
233 * configure.ac (--with-libiberty): New configure option.
234 * configure: Regenerate.
235 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
237 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
238 (liblto_plugin_la_DEPENDENCIES): Use them.
239 * Makefile.in: Regenerate.
241 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
244 * configure.ac: Check for -static-libgcc.
245 * configure: Regenerate.
247 2014-04-17 Jakub Jelinek <jakub@redhat.com>
250 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
251 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
252 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
253 over ../libiberty/pic/libiberty.a if the former exists.
254 * Makefile.in: Regenerated.
257 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
258 * Makefile.in: Regenerated.
260 2014-04-02 Richard Biener <rguenther@suse.de>
262 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
263 is set in COLLECT_GCC_OPTIONS.
265 2014-03-28 Richard Biener <rguenther@suse.de>
267 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
269 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
271 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
273 * configure: Regenerate.
274 * Makefile.am (AM_LDFLAGS): New variable.
275 (liblto_plugin_la_LDFLAGS): Add it.
276 * Makefile.in: Regenerate.
278 2013-09-20 Alan Modra <amodra@gmail.com>
280 * configure: Regenerate.
282 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
284 * configure: Regenerated.
286 2012-05-29 Joseph Myers <joseph@codesourcery.com>
288 * lto-plugin.c: Fix typo.
290 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
292 * configure: Regenerated.
294 2012-02-22 Kai Tietz <ktietz@redhat.com>
297 * lto-plugin.c (PRI_LL): New macro.
298 (dump_symtab): Use PRI_LL instead of ll in print.
299 (process_symtab): Use PRI_LL instead of ll in scan.
301 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
303 * configure: Regenerate.
305 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
307 * configure: Regenerate.
309 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
311 * configure: Regenerate.
313 2011-10-02 Jan Hubicka <jh@suse.cz>
316 * lto-plugin.c (get_symbols_v2): New variable.
317 (write_resolution): Use V2 API when available.
318 (onload): Handle LDPT_GET_SYMBOLS_V2.
320 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
321 Andi Kleen <ak@linux.intel.com>
324 * lto-plugin.c (sym_aux): Change id to unsigned long long.
325 (plugin_symtab): Likewise.
326 (dump_symtab): Likewise.
327 (resolve_conflicts): Likewise.
328 (process_symtab): Likewise.
330 2011-08-10 Richard Guenther <rguenther@suse.de>
334 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
335 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
336 * configure: Regenerate.
337 * Makefile.in: Likewise.
338 * aclocal.m4: Likewise.
340 2011-04-20 Jim Meyering <meyering@redhat.com>
342 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
344 2011-04-05 Richard Guenther <rguenther@suse.de>
347 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
349 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
351 * Makefile.in: Regenerate.
352 * aclocal.m4: Regenerate.
353 * configure: Regenerate.
355 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
357 * Makefile.am (all-local): Rename from 'all'.
358 * Makefile.in: Regenerate.
360 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
363 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
364 (liblto_plugin_la_LDFLAGS): Add -module.
365 (copy_lto_plugin): Renamed to...
366 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
368 * Makefile.in: Rebuild.
370 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
373 * Makefile.am (Wc): New helper for encoding -Wc,.
374 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
375 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
376 * Makefile.in: Regenerated.
378 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
382 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
385 * Makefile.am (Wl): New helper for encoding -Wl,.
386 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
387 * Makefile.in: Regenerated.
389 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
392 * Makefile.am (Wl): New helper for encoding -Wl,.
393 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
394 * Makefile.in: Regenerated.
396 2011-01-25 Ian Lance Taylor <iant@google.com>
398 * lto-plugin.c (gold_version): New static variable.
399 (all_symbols_read_handler): Don't check pass_through_items if
400 using gold 1.11 or later.
401 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
403 2011-01-12 Richard Guenther <rguenther@suse.de>
406 * lto-plugin.c (parse_table_entry): Use memcpy to access
409 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
411 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
412 * Makefile.in: Regenerate.
414 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
418 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
420 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
421 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
422 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
423 * Makefile.in: Regenerate.
425 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
429 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
430 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
431 * configure: Regenerate.
432 * config.h.in: Likewise.
434 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
438 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
439 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
440 override -bindir setting.
441 * aclocal.m4: Regenerate.
442 * configure: Regenerate.
443 * Makefile.in: Regenerate.
445 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
447 * config.h.in: Regenerated.
448 * configure: Regenerated.
449 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
450 * lto-plugin.c (WIFEXITED): Define default.
451 (WEXITSTATUS): Likeiwse.
453 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
455 * config.h.in: Regenerated.
456 * configure: Regenerated.
457 * Makefile.in: Regenerated.
458 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
459 * lto-plugin.c: Include sys/wait.h conditionally.
460 * aclocal.m4: Regenerated.
462 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
464 * lto-plugin.c (add_output_files): Fix memory leak.
466 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
470 * configure.ac: Add AC_TYPE_INT64_T test.
471 * config.h.in: Regenerate.
472 * configure: Likewise.
473 * lto-plugin.c (debug): Use char not bool.
475 (check_1): Rename from check, and use int not bool for gate argument.
476 (check): Macro wrapper for the above to coerce gate argument into
477 boolean-valued integer in case it has pointer type.
478 (parse_table_entry): Use 0 not false.
479 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
480 into two 32-bit parts and printing as hex ints.
482 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
485 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
487 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
490 * lto-plugin.h: Delete.
491 * lto-plugin-elf.c: Likewise.
492 * lto-plugin-coff.c: Likewise.
493 * configure.ac: Don't use libelf, don't source config.gcc.
494 (LIBELFLIBS): Delete.
496 (LTO_FORMAT): Delete.
497 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
498 (config.h): Add AC_CONFIG_HEADERS directive.
499 * Makefile.am (LIBELFLIBS): Delete.
501 (LTO_FORMAT): Delete.
503 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
504 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
505 any object-format-specific source file in the link.
506 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
507 * config.h.in: Generate.
508 * configure: Regenerate.
509 * Makefile.in: Likewise.
510 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
511 (LTO_SEGMENT_NAME): New definition.
512 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
513 (LTO_SECTION_PREFIX_LEN): New definition.
514 (struct sym_aux): Struct definition moved here from lto-plugin.h.
515 (struct plugin_symtab): Likewise.
516 (struct plugin_objfile): Likewise.
517 (struct plugin_objfile): New struct def.
518 (enum symbol_style): New enum type.
519 (add_symbols): Make static.
520 (claimed_files): Likewise.
521 (num_claimed_files): Likewise.
522 (sym_style): New global.
523 (check): Make static.
524 (parse_table_entry): Likewise. Respect sym_style when extracting
525 symbol from symtab entry.
526 (translate): Make static.
527 (resolve_conflicts): Likewise.
528 (process_symtab): New function, per-section callback version of
529 old object-format-specific handling from deleted lto-plugin-elf.c.
530 (claim_file_handler): Convert ELF-specific version from deleted
531 lto-plugin-elf.c to simple_object interface and move here.
532 (process_options): Allow new '-sym-style=' option.
533 (onload): Don't call deleted onload_format_checks hook.
535 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
537 * lto-plugin.c (dump_symtab): Correct printf argument type.
538 (finish_conflict_resolution): Initialize resolution.
540 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
543 * configure.ac: Add AC_CANONICAL_SYSTEM.
544 * configure: Regenerated.
546 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
548 * configure.ac: Source config.gcc to determine lto_binary_reader.
549 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
550 * Makefile.am (LTO_FORMAT): Import.
551 (liblto_plugin_la_SOURCES): Add object format dependent module
552 defined by LTO_FORMAT.
553 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
554 and work around libtool warning.
555 * configure: Regenerate.
556 * Makefile.in: Likewise.
557 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
558 (struct sym_aux): Likewise.
559 (struct plugin_symtab): Likewise.
560 (struct plugin_file_info): Likewise.
561 (LTO_SECTION_PREFIX): Likewise.
562 (add_symbols): Make non-static.
563 (claimed_files): Likewise.
564 (num_claimed_files): Likewise.
566 (parse_table_entry): Likewise.
567 (translate): Likewise.
568 (resolve_conflicts): Likewise.
569 (process_symtab): Move to new lto-plugin-elf.c object format dependent
571 (claim_file_handler): Likewise, and make non-static.
572 (onload): Call new onload_format_checks function.
573 * lto-plugin.h: New file.
574 (LTO_SECTION_PREFIX): Move here.
575 (struct sym_aux): Likewise.
576 (struct plugin_symtab): Likewise.
577 (struct plugin_file_info): Likewise.
578 (claim_file_handler): Add new function prototype.
579 (onload_format_checks): Likewise.
580 (check): Declare extern.
581 (translate): Likewise.
582 (parse_table_entry): Likewise.
583 (resolve_conflicts): Likewise.
584 (add_symbols): Likewise.
585 (claimed_files): Likewise.
586 (num_claimed_files): Likewise.
587 * lto-plugin-elf.c (process_symtab): Move here.
588 (claim_file_handler): Likewise, and make non-static.
589 (onload_format_checks): New function factored out from onload.
590 * lto-plugin-coff.c (claim_file_handler): New function stub.
591 (onload_format_checks): Likewise.
593 2010-08-05 Andi Kleen <ak@linux.intel.com>
595 * lto-plugin.c: Include <hashtab.h>
596 (sym_aux): Add next_conflict field to save conflict chains.
597 (plugin_file_info): Add conflicts symtab.
598 (parse_table_entry): Initialize aux->next_conflict.
599 (process_symtab): Increment found.
601 (finish_conflict_resolution): Add.
603 (write_resolution): Remove symbols loop and move into
604 dump_symtab. Call dump_symtab for main symbol and conflicts table.
605 Call free_symtab to free conflicts table.
609 (symbol_strength): Add.
610 (resolve_conflicts): Add.
611 (claim_file_handler): Add n variable. Check return value of
612 process_symtab. Call resolve_conflicts.
614 2010-07-27 Andi Kleen <ak@linux.intel.com>
616 * lto-plugin.c (translate): Remove debug fprintf.
618 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
621 * lto-plugin.c (translate): Cast to unsigned long.
623 2010-07-23 Andi Kleen <ak@linux.intel.com>
626 * lto-plugin.c (sym_aux): Add.
627 (plugin_symtab): Remove slots. Add aux and id.
628 (parse_table_entry): Change to use aux instead of slots.
629 (LTO_SECTION_PREFIX): Add.
630 (translate): Improve buffer allocation. Change to append
631 symbols to existing out buffer.
632 (get_section): Remove.
633 (process_symtab): Add.
634 (free_2): Free symtab->aux.
635 (write_resolution): Handle aux instead of slots.
636 Print sub id to resolution file.
637 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
638 calls with call to process_symtab.
640 2010-07-22 Richard Guenther <rguenther@suse.de>
642 * Makefile.am: New copy_lto_plugin rule to install the plugin
644 * Makefile.in: Regenerated.
646 2010-05-21 Richard Guenther <rguenther@suse.de>
648 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
650 2010-05-07 Richard Guenther <rguenther@suse.de>
652 * lto-plugin.c (free_2): Do not free resolution_file.
653 (write_resolution): Check that we were passed a resolution file.
654 (all_symbols_read_handler): Adjust.
655 (cleanup_handler): Do not remove the resolution file.
656 (process_option): Handle -fresolution=.
658 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
661 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
662 * Makefile.in: Regenerate.
664 2010-04-23 Richard Guenther <rguenther@suse.de>
667 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
668 (translate): Likewise.
669 (all_symbols_read_handler): Likewise.
670 (claim_file_handler): Likewise.
671 (process_option): Likewise.
672 (add_output_files): Likewise. Remove filename length limit.
674 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
676 * Makefile.in: Regenerate.
677 * aclocal.m4: Regenerate.
679 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
682 * lto-plugin.c (cleanup_handler): Delete temporary output files.
684 2010-01-11 Richard Guenther <rguenther@suse.de>
687 * Makefile.am: Disable dependencies.
688 * Makefile.in: Regenerated.
690 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
693 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
696 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
699 * configure: Regenerated.
700 * Makefile.in: Likewise.
702 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
705 * lto-plugin.c (claim_file_handler): Print offsets in hex.
707 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
709 * lto-plugin.c (write_resolution): Assume resolution_file is set.
710 Print the symbol name.
711 (all_symbols_read_handler): Create a resolution file.
713 (cleanup_handler): Remove the resolution file.
714 (process_option): Drop the -resolution option.
716 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
718 * lto-plugin.c (temp_obj_dir_name): Remove.
719 (arguments_file_name): New.
720 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
721 (exec_lto_wrapper): Create arguments file with make_temp_file.
722 (cleanup_handler): Don't remove the temporary directory. Remove the
724 (onload): Don't create the temporary directory.
726 2009-11-04 Richard Guenther <rguenther@suse.de>
727 Rafael Avila de Espindola <espindola@google.com>
729 * lto-plugin.c (plugin_file_info): Remove temp field.
730 (cleanup_handler): Don't delete temporary objects.
731 (claim_file_handler): Don't create temporary objects.
733 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
735 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
737 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
740 * lto-plugin.c (claim_file_handler): Close files that we created.
742 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
744 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
747 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
750 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
751 * configure: Regenerate.
753 2009-10-26 Richard Guenther <rguenther@suse.de>
755 * configure.ac: Use AM_MAINTAINER_MODE.
756 * acinclude.m4: Remove.
757 * configure: Re-generate.
758 * Makefile.in: Likewise.
759 * aclocal.m4: Likewise.
761 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
764 * configure: Regenerate.
765 * configure.ac: Add AC_TYPE_UINT64_T.
767 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
769 * lto-plugin.c (message): New variable.
770 (check): New function.
771 (parse_table_entry, translate, write_resolution,add_output_files,
772 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
774 (cleanup_handler): Use check instead of assert. Remove the arguments
777 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
779 * lto-plugin.c (resolution_file): New.
780 (free_1): Update comment.
781 (free_2): Free resolution_file.
782 (write_resolution): Write resolution to specified file. Use the
783 syms array from the symbol table.
784 (all_symbols_read_handler): Delay call to free_1 past call to
786 (process_option): Add a -resolution option.
788 2009-10-13 Richard Guenther <rguenther@suse.de>
790 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
792 * Makefile.in: Regenerated.
794 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
796 * lto-plugin.c (add_input_library): New.
797 (all_symbols_read_handler): Use add_input_library for items that
799 (process_option): Fit in 80 columns.
800 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
802 2009-10-02 Diego Novillo <dnovillo@google.com>
804 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
805 and -D_FILE_OFFSET_BITS=64.
806 * configure.ac: Add AC_SYS_LARGEFILE.
807 * configure: Regenerate.
808 * Makefile.in: Regenerate.
809 * lto-plugin.c: Fix copyright boilerplate.
811 2009-10-02 Diego Novillo <dnovillo@google.com>
813 * Makefile.am (ACLOCAL_AMFLAGS): Define.
814 * aclocal.m4: Regenerate with aclocal-2.64
815 * acinclude.m4: Remove.
816 * Makefile.in: Regenerate with automake-1.11
817 * configure.ac (AC_PREREQ): Update to 2.64.
818 * configure: Regenerate.
820 2009-10-02 Diego Novillo <dnovillo@google.com>
822 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
823 and -D_FILE_OFFSET_BITS=64.
824 * configure.ac: Add AC_SYS_LARGEFILE.
825 * configure: Regenerate.
826 * Makefile.in: Regenerate.
827 * lto-plugin.c: Fix copyright boilerplate.
829 2009-10-02 Diego Novillo <dnovillo@google.com>
831 * Makefile.am (ACLOCAL_AMFLAGS): Define.
832 * aclocal.m4: Regenerate with aclocal-2.64
833 * acinclude.m4: Remove.
834 * Makefile.in: Regenerate with automake-1.11
835 * configure.ac (AC_PREREQ): Update to 2.64.
836 * configure: Regenerate.
838 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
840 * Makefile.am (liblto_plugin_la_SOURCES): Remove
841 $(top_srcdir)/../gcc/lto/common.c
842 * Makefile.in: Regenerate.
844 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
846 * lto-plugin.c (pass_through_items): New.
847 (num_pass_through_items): New.
848 (all_symbols_read_handler): Update to use the -pass-through option.
849 (process_option): Replace -libgcc with -pass-through.
851 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
853 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
854 register_cleanup to be set.
856 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
858 * Makefile.am: Remove all reference to ltosymtab.
859 * Makefile.in: Regenerate.
860 * lto-symtab.c: Remove.
862 2009-05-21 Diego Novillo <dnovillo@google.com>
864 * configure.ac: Remove call to AC_CHECK_GELF.
865 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
866 * acinclude.m4: Do not include ../config/libelf.m4
867 * Makefile.am (LIBELFLIBS): Define.
869 (AM_CPPFLAGS): Add $(LIBELFINC).
870 (ltosymtab_LDADD): Add $(LIBELFLIBS).
871 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
872 * lto-plugin.c: Always include <gelf.h>
873 * lto-symtab.c: Likewise.
874 * configure: Regenerate.
875 * Makefile.in: Regenerate.
877 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
879 * lto-plugin.c (libgcc_filename): New.
880 (all_symbols_read_handler): Pass libgcc to the linker.
881 (all_symbols_read_handler): Parse -libgcc
883 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
885 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
886 * Makefile.in: Regenerate.
887 * lto-plugin.c (add_output_files): Argument is now a FILE.
888 (exec_lto_wrapper): Use writeargv and pex.
890 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
893 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
894 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
897 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
899 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
901 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
903 * lto-plugin.c: Include libiberty.h.
904 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
907 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
909 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
912 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
914 * lto-plugin.c (plugin_file_info): Remove fd and elf.
915 (parse_table_entry): strdup entry->name and entry->comdat_key.
916 (free_1): Free name and comdat_key. Don't close the file. Don't call
918 (claim_file_handler): Always call elf_end.
920 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
922 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
923 -D_FILE_OFFSET_BITS=64
924 * Makefile.in: Regenerate
926 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
928 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
929 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
930 * Makefile.in: Regenerate.
931 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
932 * configure: Regenerate.
933 * configure.ac: Add AC_SUBST(target_noncanonical).
935 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
937 * lto-plugin.c: Include stdbool.h.
938 (debug, nop): Declare as bool.
940 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
942 * lto-plugin.c (nop): New.
943 (use_original_files): New.
944 (all_symbols_read_handler): Call use_original_files if nop is true.
945 (process_option): Parse the -nop option.
947 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
949 * lto-plugin.c (debug): New.
950 (exec_lto_wrapper): Print argv if debug is true.
951 (process_option): Process the -debug command line option.
953 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
955 * lto-plugin.c (process_option): The argument is now a single option,
956 not a space separated list.
958 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
960 * lto-plugin.c: Include sys/types.h and sys/wait.h
961 (output_files, num_output_files, lto_wrapper_argv,
962 lto_wrapper_num_args): New.
963 (free_2): Free output_files.
964 (write_resolution): Disable.
965 (add_output_files): New.
966 (exec_lto_wrapper): New.
967 (all_symbols_read_handler): Run lto-wrapper.
968 (claim_file_handler): Free lto_file.name and call elf_end.
969 (process_option): New.
971 2008-11-26 Rafael Espindola <espindola@google.com>
973 * lto-plugin.c (add_input_file): New.
974 (get_section): Return NULL if get_section fails.
975 (write_resolution): New.
976 (all_symbols_read_handler): Call add_input_file.
977 (claim_file_handler): Unlink the correct file.
978 (onload): Record add_input_file.
980 2008-09-23 Rafael Espindola <espindola@google.com>
982 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
983 Update the location of common.c.
984 * Makefile.in: Regenerate.
985 * common.c: Moved to gcc/lto.
986 * common.h: Moved to gcc/lto.
987 * lto-plugin.c: Update the location of common.h.
988 * lto-symtab.c: Update the location of common.h.
990 2008-09-23 Rafael Espindola <espindola@google.com>
992 * common.c: Include common.h.
993 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
995 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
998 2008-09-23 Rafael Espindola <espindola@google.com>
1000 * lto-plugin.c (plugin_file_info): Add temp.
1001 (cleanup_handler): Only delete temporary files.
1002 (claim_file_handler): Initialize lto_file.temp.
1004 2008-09-23 Rafael Espindola <espindola@google.com>
1006 * plugin-api.h: Moved to include.
1008 2008-09-23 Rafael Espindola <espindola@google.com>
1010 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1013 2008-09-22 Rafael Espindola <espindola@google.com>
1015 * plugin-api.h: Copy from binutils' cvs.
1017 2008-09-22 Rafael Espindola <espindola@google.com>
1019 * lto-symtab.c (get_symbols, add_symbols): Update signature.
1020 * plugin-api.h: Copy from binutils' cvs.
1022 2008-09-22 Rafael Espindola <espindola@google.com>
1024 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1027 2008-09-10 Rafael Espindola <espindola@google.com>
1029 * lto-plugin.c (onload): add missing break statements and asserts.
1030 * lto-symtab.c (claim_file_handler): Make it static.
1031 (all_symbols_read_handler): Make it static.
1032 (all_file_handles): Make it static.
1033 (num_file_handles): Make it static.
1034 (register_claim_file): Make it static.
1035 (register_object): Indent properly.
1037 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1039 * Makefile.am (ltosymtab_LDADD): Add -lelf.
1040 * Makefiel.in: Regenerate.
1041 * lto-plugin.c: Include ar.h.
1042 (claim_file_handler): Handle file->offset != 0.
1043 * lto-symtab.c: Include gelf.h.
1044 (all_file_handles): Change type.
1045 (register_object): New.
1046 (register_file): Add support for archives.
1047 (resolve): Update to new type of all_file_handles.
1048 (print): Update to new type of all_file_handles.
1049 (free_all): Update to new type of all_file_handles.
1050 (main): Update to new type of all_file_handles.
1052 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1054 * lto-plugin.c (get_string_table): Remove.
1055 (get_section): Use elf_strptr instead of get_string_table.
1057 2008-09-08 Doug Kwan <dougkwan@google.com>
1059 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1060 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1062 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
1064 * Makefile.am (ltosymtab_SOURCES): add common.c.
1065 (ltosymtab_CFLAGS): New.
1066 (liblto_plugin_la_SOURCES): Add common.c.
1067 * Makefile.in: Regenerate.
1070 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1071 (plugin_symtab): New.
1072 (plugin_file_info): New.
1073 (register_all_symbols_read): New.
1075 (claimed_files): New.
1076 (num_claimed_files): New.
1077 (translate): Don't drop the slot number.
1080 (all_symbols_read_handler): New.
1081 (claim_file_handler): Record every claimed file.
1082 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1084 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1085 (current_file_handle): Remove.
1086 (ld_plugin_all_symbols_read_handler): New.
1087 (plugin_handle): New.
1089 (all_file_handles): New.
1090 (num_file_handles): New.
1092 (register_all_symbols_read): New.
1093 (add_symbols): Don't print the symbols, just record them.
1094 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1096 (load_plugin): Use plugin_handle.
1097 (register_file): Add the file handle to all_file_handles.
1100 (unload_plugin): New.
1102 (main): Call all_symbols_read_handler and free resources.
1104 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1106 * Makefile.am (AM_CFLAGS): New.
1107 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1108 (lib_LTLIBRARIES): New.
1109 (liblto_plugin_la_SOURCES): New.
1110 (liblto_plugin_la_LIBADD): New.
1111 * Makefile.in: Regenerate.
1112 * acinclude.m4: Don't include ../config/acx.m4 and
1113 ../config/no-executables.m4.
1114 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1116 * aclocal.m4: Regenerate.
1117 * configure: Regenerate.
1118 * configure.ac: Use AM_PROG_LIBTOOL.
1119 * lto-plugin.c: New.
1120 * lto-symtab.c: Rewrite to use the plugin.
1121 * plugin-api.h: New.
1123 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1125 * configure: Regenerate.
1126 * configure.ac: Use AC_CHECK_GELF.
1127 * lto-symtab.c: Include gelf.h.
1128 (get_string_table): Use size independent API.
1129 (printTable): Use lld to print 64 bit integers.
1131 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1133 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1134 entry->visibility are valid.
1136 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1137 * lto-symtab.c (table_entry): Add comdat.
1138 (parse_table_entry): Read comdat.
1140 2008-08-21 Rafael Espindola <espindola@google.com>
1144 * acinclude.m4: New.
1147 * configure.ac: New.
1148 * lto-symtab.c: New.