1 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
3 * configure: Regenerate.
5 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
7 * lto-plugin.c (cleanup_handler): Remove unused var.
9 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
11 * lto-plugin.c (exec_lto_wrapper): Make the wrapper
12 arguments filename more user-friendly.
13 (file_exists, maybe_unlink): New.
14 (cleanup_handler): Use maybe unlink to handle the
15 case when temps should be saved.
16 (process_option): Look for -v, —-version, -save-temps.
17 (onload): Record the linker output file name.
18 Check for -v, —-version, -save-temps in the GCC collect
21 2019-02-26 Martin Liska <mliska@suse.cz>
23 * lto-symtab.c: Remove.
25 2019-01-01 Jakub Jelinek <jakub@redhat.com>
27 Update copyright years.
29 2018-10-31 Joseph Myers <joseph@codesourcery.com>
32 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
33 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
35 2018-05-30 Jan Hubicka <jh@suse.cz>
37 * lto-plugin.c: (non_claimed_files): New static var.
38 (linker_ouput_known): New static var.
39 (all_symbols_read_handler): When user specifies linker output do not
40 imply it; output warning when nonlto-rel mode is forced.
41 (claim_file_header): Record number of nonclaimed files.
42 (process_option): Remember if linker output is known
44 2018-04-18 David Malcolm <dmalcolm@redhat.com>
47 * configure: Regenerate.
49 2018-01-03 Jakub Jelinek <jakub@redhat.com>
51 Update copyright years.
53 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
56 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
58 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
60 2017-01-17 Jakub Jelinek <jakub@redhat.com>
63 * configure.ac: Add GCC_BASE_VER.
64 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
65 get version from BASE-VER file.
66 * configure: Regenerated.
67 * Makefile.in: Regenerated.
69 2017-01-04 Jakub Jelinek <jakub@redhat.com>
71 Update copyright years.
73 2016-11-15 Matthias Klose <doko@ubuntu.com>
75 * configure: Regenerate.
77 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
80 * lto-plugin.c (struct plugin_offload_file): New.
81 (offload_files): Change type.
82 (offload_files_last, offload_files_last_obj): New.
83 (offload_files_last_lto): New.
84 (free_2): Adjust accordingly.
85 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
86 Don't call free_1 for offload_files. Write names of object files with
87 offloading to the temporary file. Add new option to lto_arg_ptr.
88 (claim_file_handler): Don't claim file if it contains offload sections
89 without LTO sections. If it contains offload sections, add to the list.
91 2016-01-15 Martin Liska <mliska@suse.cz>
93 * lto-plugin.c (all_symbols_read_handler): Assign default
94 value to a string variable.
96 2015-11-25 Jan Hubicka <jh@suse.cz>
99 * lto-plugin.c (linker_output, linker_output_set): New statics.
100 (all_symbols_read_handler): Add -flinker-output option.
101 (onload): Record linker_output info.
103 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
105 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
106 * configure: Regenerate.
107 * config.h.in: Ditto.
109 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
111 * Makefile.am: Drop 'by automake version' from top-level comment.
112 * Makefile.in: Regenerated with automake-1.11.6.
113 * aclocal.m4: Likewise.
114 * configure: Likewise.
116 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
118 * lto-plugin.c (release_input_file): Removed.
119 (claim_file_handler): Don't call release_input_file.
120 (onload): Don't set release_input_file.
122 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
124 * lto-plugin.c (claim_file_handler): Pass handle to
127 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
129 * lto-plugin.c (claim_file_handler): Call release_input_file only
132 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
134 * lto-plugin.c (claim_file_handler): Call release_input_file only
137 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
140 * lto-plugin.c (release_input_file): New.
141 (claim_file_handler): Call release_input_file.
142 (onload): Set release_input_file.
144 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
146 * lto-plugin.c (offload_files, num_offload_files): New static variables.
147 (free_1): Use arguments instead of global variables.
148 (free_2): Free offload_files.
149 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
151 (claim_file_handler): Do not add file to claimed_files if it contains
152 offload sections without LTO sections. Add it to offload_files instead.
154 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
157 * configure: Regenerated.
159 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
160 Bernd Schmidt <bernds@codesourcery.com>
161 Andrey Turetskiy <andrey.turetskiy@intel.com>
162 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
164 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
165 (struct plugin_objfile): Add new field "offload".
166 (process_offload_section): New static function.
167 (claim_file_handler): Claim file if it contains offload sections.
169 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
170 Thomas Schwinge <thomas@codesourcery.com>
171 Ilya Verbin <ilya.verbin@intel.com>
172 Andrey Turetskiy <andrey.turetskiy@intel.com>
174 * Makefile.am (libexecsubdir): Tweak for the possibility of being
175 configured for offload compiler.
176 (accel_dir_suffix, real_target_noncanonical): New variables substituted
178 * Makefile.in: Regenerate.
179 * configure: Regenerate.
180 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
183 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
186 * configure: Regenerate.
188 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
191 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
192 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
194 * Makefile.in: Regenerated.
195 * configure: Likewise.
197 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
199 * configure.ac (--with-libiberty): New configure option.
200 * configure: Regenerate.
201 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
203 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
204 (liblto_plugin_la_DEPENDENCIES): Use them.
205 * Makefile.in: Regenerate.
207 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
210 * configure.ac: Check for -static-libgcc.
211 * configure: Regenerate.
213 2014-04-17 Jakub Jelinek <jakub@redhat.com>
216 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
217 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
218 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
219 over ../libiberty/pic/libiberty.a if the former exists.
220 * Makefile.in: Regenerated.
223 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
224 * Makefile.in: Regenerated.
226 2014-04-02 Richard Biener <rguenther@suse.de>
228 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
229 is set in COLLECT_GCC_OPTIONS.
231 2014-03-28 Richard Biener <rguenther@suse.de>
233 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
235 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
237 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
239 * configure: Regenerate.
240 * Makefile.am (AM_LDFLAGS): New variable.
241 (liblto_plugin_la_LDFLAGS): Add it.
242 * Makefile.in: Regenerate.
244 2013-09-20 Alan Modra <amodra@gmail.com>
246 * configure: Regenerate.
248 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
250 * configure: Regenerated.
252 2012-05-29 Joseph Myers <joseph@codesourcery.com>
254 * lto-plugin.c: Fix typo.
256 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
258 * configure: Regenerated.
260 2012-02-22 Kai Tietz <ktietz@redhat.com>
263 * lto-plugin.c (PRI_LL): New macro.
264 (dump_symtab): Use PRI_LL instead of ll in print.
265 (process_symtab): Use PRI_LL instead of ll in scan.
267 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
269 * configure: Regenerate.
271 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
273 * configure: Regenerate.
275 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
277 * configure: Regenerate.
279 2011-10-02 Jan Hubicka <jh@suse.cz>
282 * lto-plugin.c (get_symbols_v2): New variable.
283 (write_resolution): Use V2 API when available.
284 (onload): Handle LDPT_GET_SYMBOLS_V2.
286 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
287 Andi Kleen <ak@linux.intel.com>
290 * lto-plugin.c (sym_aux): Change id to unsigned long long.
291 (plugin_symtab): Likewise.
292 (dump_symtab): Likewise.
293 (resolve_conflicts): Likewise.
294 (process_symtab): Likewise.
296 2011-08-10 Richard Guenther <rguenther@suse.de>
300 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
301 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
302 * configure: Regenerate.
303 * Makefile.in: Likewise.
304 * aclocal.m4: Likewise.
306 2011-04-20 Jim Meyering <meyering@redhat.com>
308 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
310 2011-04-05 Richard Guenther <rguenther@suse.de>
313 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
315 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
317 * Makefile.in: Regenerate.
318 * aclocal.m4: Regenerate.
319 * configure: Regenerate.
321 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
323 * Makefile.am (all-local): Rename from 'all'.
324 * Makefile.in: Regenerate.
326 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
329 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
330 (liblto_plugin_la_LDFLAGS): Add -module.
331 (copy_lto_plugin): Renamed to...
332 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
334 * Makefile.in: Rebuild.
336 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
339 * Makefile.am (Wc): New helper for encoding -Wc,.
340 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
341 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
342 * Makefile.in: Regenerated.
344 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
348 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
351 * Makefile.am (Wl): New helper for encoding -Wl,.
352 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
353 * Makefile.in: Regenerated.
355 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
358 * Makefile.am (Wl): New helper for encoding -Wl,.
359 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
360 * Makefile.in: Regenerated.
362 2011-01-25 Ian Lance Taylor <iant@google.com>
364 * lto-plugin.c (gold_version): New static variable.
365 (all_symbols_read_handler): Don't check pass_through_items if
366 using gold 1.11 or later.
367 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
369 2011-01-12 Richard Guenther <rguenther@suse.de>
372 * lto-plugin.c (parse_table_entry): Use memcpy to access
375 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
377 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
378 * Makefile.in: Regenerate.
380 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
384 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
386 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
387 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
388 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
389 * Makefile.in: Regenerate.
391 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
395 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
396 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
397 * configure: Regenerate.
398 * config.h.in: Likewise.
400 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
404 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
405 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
406 override -bindir setting.
407 * aclocal.m4: Regenerate.
408 * configure: Regenerate.
409 * Makefile.in: Regenerate.
411 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
413 * config.h.in: Regenerated.
414 * configure: Regenerated.
415 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
416 * lto-plugin.c (WIFEXITED): Define default.
417 (WEXITSTATUS): Likeiwse.
419 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
421 * config.h.in: Regenerated.
422 * configure: Regenerated.
423 * Makefile.in: Regenerated.
424 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
425 * lto-plugin.c: Include sys/wait.h conditionally.
426 * aclocal.m4: Regenerated.
428 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
430 * lto-plugin.c (add_output_files): Fix memory leak.
432 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
436 * configure.ac: Add AC_TYPE_INT64_T test.
437 * config.h.in: Regenerate.
438 * configure: Likewise.
439 * lto-plugin.c (debug): Use char not bool.
441 (check_1): Rename from check, and use int not bool for gate argument.
442 (check): Macro wrapper for the above to coerce gate argument into
443 boolean-valued integer in case it has pointer type.
444 (parse_table_entry): Use 0 not false.
445 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
446 into two 32-bit parts and printing as hex ints.
448 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
451 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
453 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
456 * lto-plugin.h: Delete.
457 * lto-plugin-elf.c: Likewise.
458 * lto-plugin-coff.c: Likewise.
459 * configure.ac: Don't use libelf, don't source config.gcc.
460 (LIBELFLIBS): Delete.
462 (LTO_FORMAT): Delete.
463 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
464 (config.h): Add AC_CONFIG_HEADERS directive.
465 * Makefile.am (LIBELFLIBS): Delete.
467 (LTO_FORMAT): Delete.
469 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
470 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
471 any object-format-specific source file in the link.
472 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
473 * config.h.in: Generate.
474 * configure: Regenerate.
475 * Makefile.in: Likewise.
476 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
477 (LTO_SEGMENT_NAME): New definition.
478 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
479 (LTO_SECTION_PREFIX_LEN): New definition.
480 (struct sym_aux): Struct definition moved here from lto-plugin.h.
481 (struct plugin_symtab): Likewise.
482 (struct plugin_objfile): Likewise.
483 (struct plugin_objfile): New struct def.
484 (enum symbol_style): New enum type.
485 (add_symbols): Make static.
486 (claimed_files): Likewise.
487 (num_claimed_files): Likewise.
488 (sym_style): New global.
489 (check): Make static.
490 (parse_table_entry): Likewise. Respect sym_style when extracting
491 symbol from symtab entry.
492 (translate): Make static.
493 (resolve_conflicts): Likewise.
494 (process_symtab): New function, per-section callback version of
495 old object-format-specific handling from deleted lto-plugin-elf.c.
496 (claim_file_handler): Convert ELF-specific version from deleted
497 lto-plugin-elf.c to simple_object interface and move here.
498 (process_options): Allow new '-sym-style=' option.
499 (onload): Don't call deleted onload_format_checks hook.
501 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
503 * lto-plugin.c (dump_symtab): Correct printf argument type.
504 (finish_conflict_resolution): Initialize resolution.
506 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
509 * configure.ac: Add AC_CANONICAL_SYSTEM.
510 * configure: Regenerated.
512 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
514 * configure.ac: Source config.gcc to determine lto_binary_reader.
515 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
516 * Makefile.am (LTO_FORMAT): Import.
517 (liblto_plugin_la_SOURCES): Add object format dependent module
518 defined by LTO_FORMAT.
519 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
520 and work around libtool warning.
521 * configure: Regenerate.
522 * Makefile.in: Likewise.
523 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
524 (struct sym_aux): Likewise.
525 (struct plugin_symtab): Likewise.
526 (struct plugin_file_info): Likewise.
527 (LTO_SECTION_PREFIX): Likewise.
528 (add_symbols): Make non-static.
529 (claimed_files): Likewise.
530 (num_claimed_files): Likewise.
532 (parse_table_entry): Likewise.
533 (translate): Likewise.
534 (resolve_conflicts): Likewise.
535 (process_symtab): Move to new lto-plugin-elf.c object format dependent
537 (claim_file_handler): Likewise, and make non-static.
538 (onload): Call new onload_format_checks function.
539 * lto-plugin.h: New file.
540 (LTO_SECTION_PREFIX): Move here.
541 (struct sym_aux): Likewise.
542 (struct plugin_symtab): Likewise.
543 (struct plugin_file_info): Likewise.
544 (claim_file_handler): Add new function prototype.
545 (onload_format_checks): Likewise.
546 (check): Declare extern.
547 (translate): Likewise.
548 (parse_table_entry): Likewise.
549 (resolve_conflicts): Likewise.
550 (add_symbols): Likewise.
551 (claimed_files): Likewise.
552 (num_claimed_files): Likewise.
553 * lto-plugin-elf.c (process_symtab): Move here.
554 (claim_file_handler): Likewise, and make non-static.
555 (onload_format_checks): New function factored out from onload.
556 * lto-plugin-coff.c (claim_file_handler): New function stub.
557 (onload_format_checks): Likewise.
559 2010-08-05 Andi Kleen <ak@linux.intel.com>
561 * lto-plugin.c: Include <hashtab.h>
562 (sym_aux): Add next_conflict field to save conflict chains.
563 (plugin_file_info): Add conflicts symtab.
564 (parse_table_entry): Initialize aux->next_conflict.
565 (process_symtab): Increment found.
567 (finish_conflict_resolution): Add.
569 (write_resolution): Remove symbols loop and move into
570 dump_symtab. Call dump_symtab for main symbol and conflicts table.
571 Call free_symtab to free conflicts table.
575 (symbol_strength): Add.
576 (resolve_conflicts): Add.
577 (claim_file_handler): Add n variable. Check return value of
578 process_symtab. Call resolve_conflicts.
580 2010-07-27 Andi Kleen <ak@linux.intel.com>
582 * lto-plugin.c (translate): Remove debug fprintf.
584 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
587 * lto-plugin.c (translate): Cast to unsigned long.
589 2010-07-23 Andi Kleen <ak@linux.intel.com>
592 * lto-plugin.c (sym_aux): Add.
593 (plugin_symtab): Remove slots. Add aux and id.
594 (parse_table_entry): Change to use aux instead of slots.
595 (LTO_SECTION_PREFIX): Add.
596 (translate): Improve buffer allocation. Change to append
597 symbols to existing out buffer.
598 (get_section): Remove.
599 (process_symtab): Add.
600 (free_2): Free symtab->aux.
601 (write_resolution): Handle aux instead of slots.
602 Print sub id to resolution file.
603 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
604 calls with call to process_symtab.
606 2010-07-22 Richard Guenther <rguenther@suse.de>
608 * Makefile.am: New copy_lto_plugin rule to install the plugin
610 * Makefile.in: Regenerated.
612 2010-05-21 Richard Guenther <rguenther@suse.de>
614 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
616 2010-05-07 Richard Guenther <rguenther@suse.de>
618 * lto-plugin.c (free_2): Do not free resolution_file.
619 (write_resolution): Check that we were passed a resolution file.
620 (all_symbols_read_handler): Adjust.
621 (cleanup_handler): Do not remove the resolution file.
622 (process_option): Handle -fresolution=.
624 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
627 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
628 * Makefile.in: Regenerate.
630 2010-04-23 Richard Guenther <rguenther@suse.de>
633 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
634 (translate): Likewise.
635 (all_symbols_read_handler): Likewise.
636 (claim_file_handler): Likewise.
637 (process_option): Likewise.
638 (add_output_files): Likewise. Remove filename length limit.
640 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
642 * Makefile.in: Regenerate.
643 * aclocal.m4: Regenerate.
645 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
648 * lto-plugin.c (cleanup_handler): Delete temporary output files.
650 2010-01-11 Richard Guenther <rguenther@suse.de>
653 * Makefile.am: Disable dependencies.
654 * Makefile.in: Regenerated.
656 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
659 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
662 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
665 * configure: Regenerated.
666 * Makefile.in: Likewise.
668 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
671 * lto-plugin.c (claim_file_handler): Print offsets in hex.
673 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
675 * lto-plugin.c (write_resolution): Assume resolution_file is set.
676 Print the symbol name.
677 (all_symbols_read_handler): Create a resolution file.
679 (cleanup_handler): Remove the resolution file.
680 (process_option): Drop the -resolution option.
682 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
684 * lto-plugin.c (temp_obj_dir_name): Remove.
685 (arguments_file_name): New.
686 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
687 (exec_lto_wrapper): Create arguments file with make_temp_file.
688 (cleanup_handler): Don't remove the temporary directory. Remove the
690 (onload): Don't create the temporary directory.
692 2009-11-04 Richard Guenther <rguenther@suse.de>
693 Rafael Avila de Espindola <espindola@google.com>
695 * lto-plugin.c (plugin_file_info): Remove temp field.
696 (cleanup_handler): Don't delete temporary objects.
697 (claim_file_handler): Don't create temporary objects.
699 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
701 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
703 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
706 * lto-plugin.c (claim_file_handler): Close files that we created.
708 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
710 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
713 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
716 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
717 * configure: Regenerate.
719 2009-10-26 Richard Guenther <rguenther@suse.de>
721 * configure.ac: Use AM_MAINTAINER_MODE.
722 * acinclude.m4: Remove.
723 * configure: Re-generate.
724 * Makefile.in: Likewise.
725 * aclocal.m4: Likewise.
727 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
730 * configure: Regenerate.
731 * configure.ac: Add AC_TYPE_UINT64_T.
733 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
735 * lto-plugin.c (message): New variable.
736 (check): New function.
737 (parse_table_entry, translate, write_resolution,add_output_files,
738 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
740 (cleanup_handler): Use check instead of assert. Remove the arguments
743 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
745 * lto-plugin.c (resolution_file): New.
746 (free_1): Update comment.
747 (free_2): Free resolution_file.
748 (write_resolution): Write resolution to specified file. Use the
749 syms array from the symbol table.
750 (all_symbols_read_handler): Delay call to free_1 past call to
752 (process_option): Add a -resolution option.
754 2009-10-13 Richard Guenther <rguenther@suse.de>
756 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
758 * Makefile.in: Regenerated.
760 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
762 * lto-plugin.c (add_input_library): New.
763 (all_symbols_read_handler): Use add_input_library for items that
765 (process_option): Fit in 80 columns.
766 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
768 2009-10-02 Diego Novillo <dnovillo@google.com>
770 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
771 and -D_FILE_OFFSET_BITS=64.
772 * configure.ac: Add AC_SYS_LARGEFILE.
773 * configure: Regenerate.
774 * Makefile.in: Regenerate.
775 * lto-plugin.c: Fix copyright boilerplate.
777 2009-10-02 Diego Novillo <dnovillo@google.com>
779 * Makefile.am (ACLOCAL_AMFLAGS): Define.
780 * aclocal.m4: Regenerate with aclocal-2.64
781 * acinclude.m4: Remove.
782 * Makefile.in: Regenerate with automake-1.11
783 * configure.ac (AC_PREREQ): Update to 2.64.
784 * configure: Regenerate.
786 2009-10-02 Diego Novillo <dnovillo@google.com>
788 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
789 and -D_FILE_OFFSET_BITS=64.
790 * configure.ac: Add AC_SYS_LARGEFILE.
791 * configure: Regenerate.
792 * Makefile.in: Regenerate.
793 * lto-plugin.c: Fix copyright boilerplate.
795 2009-10-02 Diego Novillo <dnovillo@google.com>
797 * Makefile.am (ACLOCAL_AMFLAGS): Define.
798 * aclocal.m4: Regenerate with aclocal-2.64
799 * acinclude.m4: Remove.
800 * Makefile.in: Regenerate with automake-1.11
801 * configure.ac (AC_PREREQ): Update to 2.64.
802 * configure: Regenerate.
804 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
806 * Makefile.am (liblto_plugin_la_SOURCES): Remove
807 $(top_srcdir)/../gcc/lto/common.c
808 * Makefile.in: Regenerate.
810 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
812 * lto-plugin.c (pass_through_items): New.
813 (num_pass_through_items): New.
814 (all_symbols_read_handler): Update to use the -pass-through option.
815 (process_option): Replace -libgcc with -pass-through.
817 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
819 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
820 register_cleanup to be set.
822 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
824 * Makefile.am: Remove all reference to ltosymtab.
825 * Makefile.in: Regenerate.
826 * lto-symtab.c: Remove.
828 2009-05-21 Diego Novillo <dnovillo@google.com>
830 * configure.ac: Remove call to AC_CHECK_GELF.
831 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
832 * acinclude.m4: Do not include ../config/libelf.m4
833 * Makefile.am (LIBELFLIBS): Define.
835 (AM_CPPFLAGS): Add $(LIBELFINC).
836 (ltosymtab_LDADD): Add $(LIBELFLIBS).
837 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
838 * lto-plugin.c: Always include <gelf.h>
839 * lto-symtab.c: Likewise.
840 * configure: Regenerate.
841 * Makefile.in: Regenerate.
843 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
845 * lto-plugin.c (libgcc_filename): New.
846 (all_symbols_read_handler): Pass libgcc to the linker.
847 (all_symbols_read_handler): Parse -libgcc
849 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
851 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
852 * Makefile.in: Regenerate.
853 * lto-plugin.c (add_output_files): Argument is now a FILE.
854 (exec_lto_wrapper): Use writeargv and pex.
856 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
859 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
860 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
863 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
865 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
867 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
869 * lto-plugin.c: Include libiberty.h.
870 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
873 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
875 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
878 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
880 * lto-plugin.c (plugin_file_info): Remove fd and elf.
881 (parse_table_entry): strdup entry->name and entry->comdat_key.
882 (free_1): Free name and comdat_key. Don't close the file. Don't call
884 (claim_file_handler): Always call elf_end.
886 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
888 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
889 -D_FILE_OFFSET_BITS=64
890 * Makefile.in: Regenerate
892 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
894 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
895 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
896 * Makefile.in: Regenerate.
897 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
898 * configure: Regenerate.
899 * configure.ac: Add AC_SUBST(target_noncanonical).
901 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
903 * lto-plugin.c: Include stdbool.h.
904 (debug, nop): Declare as bool.
906 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
908 * lto-plugin.c (nop): New.
909 (use_original_files): New.
910 (all_symbols_read_handler): Call use_original_files if nop is true.
911 (process_option): Parse the -nop option.
913 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
915 * lto-plugin.c (debug): New.
916 (exec_lto_wrapper): Print argv if debug is true.
917 (process_option): Process the -debug command line option.
919 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
921 * lto-plugin.c (process_option): The argument is now a single option,
922 not a space separated list.
924 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
926 * lto-plugin.c: Include sys/types.h and sys/wait.h
927 (output_files, num_output_files, lto_wrapper_argv,
928 lto_wrapper_num_args): New.
929 (free_2): Free output_files.
930 (write_resolution): Disable.
931 (add_output_files): New.
932 (exec_lto_wrapper): New.
933 (all_symbols_read_handler): Run lto-wrapper.
934 (claim_file_handler): Free lto_file.name and call elf_end.
935 (process_option): New.
937 2008-11-26 Rafael Espindola <espindola@google.com>
939 * lto-plugin.c (add_input_file): New.
940 (get_section): Return NULL if get_section fails.
941 (write_resolution): New.
942 (all_symbols_read_handler): Call add_input_file.
943 (claim_file_handler): Unlink the correct file.
944 (onload): Record add_input_file.
946 2008-09-23 Rafael Espindola <espindola@google.com>
948 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
949 Update the location of common.c.
950 * Makefile.in: Regenerate.
951 * common.c: Moved to gcc/lto.
952 * common.h: Moved to gcc/lto.
953 * lto-plugin.c: Update the location of common.h.
954 * lto-symtab.c: Update the location of common.h.
956 2008-09-23 Rafael Espindola <espindola@google.com>
958 * common.c: Include common.h.
959 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
961 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
964 2008-09-23 Rafael Espindola <espindola@google.com>
966 * lto-plugin.c (plugin_file_info): Add temp.
967 (cleanup_handler): Only delete temporary files.
968 (claim_file_handler): Initialize lto_file.temp.
970 2008-09-23 Rafael Espindola <espindola@google.com>
972 * plugin-api.h: Moved to include.
974 2008-09-23 Rafael Espindola <espindola@google.com>
976 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
979 2008-09-22 Rafael Espindola <espindola@google.com>
981 * plugin-api.h: Copy from binutils' cvs.
983 2008-09-22 Rafael Espindola <espindola@google.com>
985 * lto-symtab.c (get_symbols, add_symbols): Update signature.
986 * plugin-api.h: Copy from binutils' cvs.
988 2008-09-22 Rafael Espindola <espindola@google.com>
990 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
993 2008-09-10 Rafael Espindola <espindola@google.com>
995 * lto-plugin.c (onload): add missing break statements and asserts.
996 * lto-symtab.c (claim_file_handler): Make it static.
997 (all_symbols_read_handler): Make it static.
998 (all_file_handles): Make it static.
999 (num_file_handles): Make it static.
1000 (register_claim_file): Make it static.
1001 (register_object): Indent properly.
1003 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1005 * Makefile.am (ltosymtab_LDADD): Add -lelf.
1006 * Makefiel.in: Regenerate.
1007 * lto-plugin.c: Include ar.h.
1008 (claim_file_handler): Handle file->offset != 0.
1009 * lto-symtab.c: Include gelf.h.
1010 (all_file_handles): Change type.
1011 (register_object): New.
1012 (register_file): Add support for archives.
1013 (resolve): Update to new type of all_file_handles.
1014 (print): Update to new type of all_file_handles.
1015 (free_all): Update to new type of all_file_handles.
1016 (main): Update to new type of all_file_handles.
1018 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1020 * lto-plugin.c (get_string_table): Remove.
1021 (get_section): Use elf_strptr instead of get_string_table.
1023 2008-09-08 Doug Kwan <dougkwan@google.com>
1025 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1026 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1028 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
1030 * Makefile.am (ltosymtab_SOURCES): add common.c.
1031 (ltosymtab_CFLAGS): New.
1032 (liblto_plugin_la_SOURCES): Add common.c.
1033 * Makefile.in: Regenerate.
1036 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1037 (plugin_symtab): New.
1038 (plugin_file_info): New.
1039 (register_all_symbols_read): New.
1041 (claimed_files): New.
1042 (num_claimed_files): New.
1043 (translate): Don't drop the slot number.
1046 (all_symbols_read_handler): New.
1047 (claim_file_handler): Record every claimed file.
1048 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1050 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1051 (current_file_handle): Remove.
1052 (ld_plugin_all_symbols_read_handler): New.
1053 (plugin_handle): New.
1055 (all_file_handles): New.
1056 (num_file_handles): New.
1058 (register_all_symbols_read): New.
1059 (add_symbols): Don't print the symbols, just record them.
1060 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1062 (load_plugin): Use plugin_handle.
1063 (register_file): Add the file handle to all_file_handles.
1066 (unload_plugin): New.
1068 (main): Call all_symbols_read_handler and free resources.
1070 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1072 * Makefile.am (AM_CFLAGS): New.
1073 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1074 (lib_LTLIBRARIES): New.
1075 (liblto_plugin_la_SOURCES): New.
1076 (liblto_plugin_la_LIBADD): New.
1077 * Makefile.in: Regenerate.
1078 * acinclude.m4: Don't include ../config/acx.m4 and
1079 ../config/no-executables.m4.
1080 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1082 * aclocal.m4: Regenerate.
1083 * configure: Regenerate.
1084 * configure.ac: Use AM_PROG_LIBTOOL.
1085 * lto-plugin.c: New.
1086 * lto-symtab.c: Rewrite to use the plugin.
1087 * plugin-api.h: New.
1089 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1091 * configure: Regenerate.
1092 * configure.ac: Use AC_CHECK_GELF.
1093 * lto-symtab.c: Include gelf.h.
1094 (get_string_table): Use size independent API.
1095 (printTable): Use lld to print 64 bit integers.
1097 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1099 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1100 entry->visibility are valid.
1102 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1103 * lto-symtab.c (table_entry): Add comdat.
1104 (parse_table_entry): Read comdat.
1106 2008-08-21 Rafael Espindola <espindola@google.com>
1110 * acinclude.m4: New.
1113 * configure.ac: New.
1114 * lto-symtab.c: New.