1 2020-01-01 Jakub Jelinek <jakub@redhat.com>
3 Update copyright years.
5 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
7 * configure: Regenerate.
9 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
11 * lto-plugin.c (cleanup_handler): Remove unused var.
13 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
15 * lto-plugin.c (exec_lto_wrapper): Make the wrapper
16 arguments filename more user-friendly.
17 (file_exists, maybe_unlink): New.
18 (cleanup_handler): Use maybe unlink to handle the
19 case when temps should be saved.
20 (process_option): Look for -v, —-version, -save-temps.
21 (onload): Record the linker output file name.
22 Check for -v, —-version, -save-temps in the GCC collect
25 2019-02-26 Martin Liska <mliska@suse.cz>
27 * lto-symtab.c: Remove.
29 2019-01-01 Jakub Jelinek <jakub@redhat.com>
31 Update copyright years.
33 2018-10-31 Joseph Myers <joseph@codesourcery.com>
36 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
37 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
39 2018-05-30 Jan Hubicka <jh@suse.cz>
41 * lto-plugin.c: (non_claimed_files): New static var.
42 (linker_ouput_known): New static var.
43 (all_symbols_read_handler): When user specifies linker output do not
44 imply it; output warning when nonlto-rel mode is forced.
45 (claim_file_header): Record number of nonclaimed files.
46 (process_option): Remember if linker output is known
48 2018-04-18 David Malcolm <dmalcolm@redhat.com>
51 * configure: Regenerate.
53 2018-01-03 Jakub Jelinek <jakub@redhat.com>
55 Update copyright years.
57 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
60 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
62 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
64 2017-01-17 Jakub Jelinek <jakub@redhat.com>
67 * configure.ac: Add GCC_BASE_VER.
68 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
69 get version from BASE-VER file.
70 * configure: Regenerated.
71 * Makefile.in: Regenerated.
73 2017-01-04 Jakub Jelinek <jakub@redhat.com>
75 Update copyright years.
77 2016-11-15 Matthias Klose <doko@ubuntu.com>
79 * configure: Regenerate.
81 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
84 * lto-plugin.c (struct plugin_offload_file): New.
85 (offload_files): Change type.
86 (offload_files_last, offload_files_last_obj): New.
87 (offload_files_last_lto): New.
88 (free_2): Adjust accordingly.
89 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
90 Don't call free_1 for offload_files. Write names of object files with
91 offloading to the temporary file. Add new option to lto_arg_ptr.
92 (claim_file_handler): Don't claim file if it contains offload sections
93 without LTO sections. If it contains offload sections, add to the list.
95 2016-01-15 Martin Liska <mliska@suse.cz>
97 * lto-plugin.c (all_symbols_read_handler): Assign default
98 value to a string variable.
100 2015-11-25 Jan Hubicka <jh@suse.cz>
103 * lto-plugin.c (linker_output, linker_output_set): New statics.
104 (all_symbols_read_handler): Add -flinker-output option.
105 (onload): Record linker_output info.
107 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
109 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
110 * configure: Regenerate.
111 * config.h.in: Ditto.
113 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
115 * Makefile.am: Drop 'by automake version' from top-level comment.
116 * Makefile.in: Regenerated with automake-1.11.6.
117 * aclocal.m4: Likewise.
118 * configure: Likewise.
120 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
122 * lto-plugin.c (release_input_file): Removed.
123 (claim_file_handler): Don't call release_input_file.
124 (onload): Don't set release_input_file.
126 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
128 * lto-plugin.c (claim_file_handler): Pass handle to
131 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
133 * lto-plugin.c (claim_file_handler): Call release_input_file only
136 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
138 * lto-plugin.c (claim_file_handler): Call release_input_file only
141 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
144 * lto-plugin.c (release_input_file): New.
145 (claim_file_handler): Call release_input_file.
146 (onload): Set release_input_file.
148 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
150 * lto-plugin.c (offload_files, num_offload_files): New static variables.
151 (free_1): Use arguments instead of global variables.
152 (free_2): Free offload_files.
153 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
155 (claim_file_handler): Do not add file to claimed_files if it contains
156 offload sections without LTO sections. Add it to offload_files instead.
158 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
161 * configure: Regenerated.
163 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
164 Bernd Schmidt <bernds@codesourcery.com>
165 Andrey Turetskiy <andrey.turetskiy@intel.com>
166 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
168 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
169 (struct plugin_objfile): Add new field "offload".
170 (process_offload_section): New static function.
171 (claim_file_handler): Claim file if it contains offload sections.
173 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
174 Thomas Schwinge <thomas@codesourcery.com>
175 Ilya Verbin <ilya.verbin@intel.com>
176 Andrey Turetskiy <andrey.turetskiy@intel.com>
178 * Makefile.am (libexecsubdir): Tweak for the possibility of being
179 configured for offload compiler.
180 (accel_dir_suffix, real_target_noncanonical): New variables substituted
182 * Makefile.in: Regenerate.
183 * configure: Regenerate.
184 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
187 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
190 * configure: Regenerate.
192 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
195 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
196 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
198 * Makefile.in: Regenerated.
199 * configure: Likewise.
201 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
203 * configure.ac (--with-libiberty): New configure option.
204 * configure: Regenerate.
205 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
207 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
208 (liblto_plugin_la_DEPENDENCIES): Use them.
209 * Makefile.in: Regenerate.
211 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
214 * configure.ac: Check for -static-libgcc.
215 * configure: Regenerate.
217 2014-04-17 Jakub Jelinek <jakub@redhat.com>
220 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
221 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
222 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
223 over ../libiberty/pic/libiberty.a if the former exists.
224 * Makefile.in: Regenerated.
227 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
228 * Makefile.in: Regenerated.
230 2014-04-02 Richard Biener <rguenther@suse.de>
232 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
233 is set in COLLECT_GCC_OPTIONS.
235 2014-03-28 Richard Biener <rguenther@suse.de>
237 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
239 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
241 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
243 * configure: Regenerate.
244 * Makefile.am (AM_LDFLAGS): New variable.
245 (liblto_plugin_la_LDFLAGS): Add it.
246 * Makefile.in: Regenerate.
248 2013-09-20 Alan Modra <amodra@gmail.com>
250 * configure: Regenerate.
252 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
254 * configure: Regenerated.
256 2012-05-29 Joseph Myers <joseph@codesourcery.com>
258 * lto-plugin.c: Fix typo.
260 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
262 * configure: Regenerated.
264 2012-02-22 Kai Tietz <ktietz@redhat.com>
267 * lto-plugin.c (PRI_LL): New macro.
268 (dump_symtab): Use PRI_LL instead of ll in print.
269 (process_symtab): Use PRI_LL instead of ll in scan.
271 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
273 * configure: Regenerate.
275 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
277 * configure: Regenerate.
279 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
281 * configure: Regenerate.
283 2011-10-02 Jan Hubicka <jh@suse.cz>
286 * lto-plugin.c (get_symbols_v2): New variable.
287 (write_resolution): Use V2 API when available.
288 (onload): Handle LDPT_GET_SYMBOLS_V2.
290 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
291 Andi Kleen <ak@linux.intel.com>
294 * lto-plugin.c (sym_aux): Change id to unsigned long long.
295 (plugin_symtab): Likewise.
296 (dump_symtab): Likewise.
297 (resolve_conflicts): Likewise.
298 (process_symtab): Likewise.
300 2011-08-10 Richard Guenther <rguenther@suse.de>
304 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
305 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
306 * configure: Regenerate.
307 * Makefile.in: Likewise.
308 * aclocal.m4: Likewise.
310 2011-04-20 Jim Meyering <meyering@redhat.com>
312 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
314 2011-04-05 Richard Guenther <rguenther@suse.de>
317 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
319 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
321 * Makefile.in: Regenerate.
322 * aclocal.m4: Regenerate.
323 * configure: Regenerate.
325 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
327 * Makefile.am (all-local): Rename from 'all'.
328 * Makefile.in: Regenerate.
330 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
333 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
334 (liblto_plugin_la_LDFLAGS): Add -module.
335 (copy_lto_plugin): Renamed to...
336 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
338 * Makefile.in: Rebuild.
340 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
343 * Makefile.am (Wc): New helper for encoding -Wc,.
344 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
345 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
346 * Makefile.in: Regenerated.
348 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
352 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
355 * Makefile.am (Wl): New helper for encoding -Wl,.
356 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
357 * Makefile.in: Regenerated.
359 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
362 * Makefile.am (Wl): New helper for encoding -Wl,.
363 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
364 * Makefile.in: Regenerated.
366 2011-01-25 Ian Lance Taylor <iant@google.com>
368 * lto-plugin.c (gold_version): New static variable.
369 (all_symbols_read_handler): Don't check pass_through_items if
370 using gold 1.11 or later.
371 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
373 2011-01-12 Richard Guenther <rguenther@suse.de>
376 * lto-plugin.c (parse_table_entry): Use memcpy to access
379 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
381 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
382 * Makefile.in: Regenerate.
384 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
388 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
390 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
391 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
392 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
393 * Makefile.in: Regenerate.
395 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
399 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
400 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
401 * configure: Regenerate.
402 * config.h.in: Likewise.
404 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
408 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
409 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
410 override -bindir setting.
411 * aclocal.m4: Regenerate.
412 * configure: Regenerate.
413 * Makefile.in: Regenerate.
415 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
417 * config.h.in: Regenerated.
418 * configure: Regenerated.
419 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
420 * lto-plugin.c (WIFEXITED): Define default.
421 (WEXITSTATUS): Likeiwse.
423 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
425 * config.h.in: Regenerated.
426 * configure: Regenerated.
427 * Makefile.in: Regenerated.
428 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
429 * lto-plugin.c: Include sys/wait.h conditionally.
430 * aclocal.m4: Regenerated.
432 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
434 * lto-plugin.c (add_output_files): Fix memory leak.
436 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
440 * configure.ac: Add AC_TYPE_INT64_T test.
441 * config.h.in: Regenerate.
442 * configure: Likewise.
443 * lto-plugin.c (debug): Use char not bool.
445 (check_1): Rename from check, and use int not bool for gate argument.
446 (check): Macro wrapper for the above to coerce gate argument into
447 boolean-valued integer in case it has pointer type.
448 (parse_table_entry): Use 0 not false.
449 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
450 into two 32-bit parts and printing as hex ints.
452 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
455 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
457 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
460 * lto-plugin.h: Delete.
461 * lto-plugin-elf.c: Likewise.
462 * lto-plugin-coff.c: Likewise.
463 * configure.ac: Don't use libelf, don't source config.gcc.
464 (LIBELFLIBS): Delete.
466 (LTO_FORMAT): Delete.
467 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
468 (config.h): Add AC_CONFIG_HEADERS directive.
469 * Makefile.am (LIBELFLIBS): Delete.
471 (LTO_FORMAT): Delete.
473 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
474 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
475 any object-format-specific source file in the link.
476 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
477 * config.h.in: Generate.
478 * configure: Regenerate.
479 * Makefile.in: Likewise.
480 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
481 (LTO_SEGMENT_NAME): New definition.
482 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
483 (LTO_SECTION_PREFIX_LEN): New definition.
484 (struct sym_aux): Struct definition moved here from lto-plugin.h.
485 (struct plugin_symtab): Likewise.
486 (struct plugin_objfile): Likewise.
487 (struct plugin_objfile): New struct def.
488 (enum symbol_style): New enum type.
489 (add_symbols): Make static.
490 (claimed_files): Likewise.
491 (num_claimed_files): Likewise.
492 (sym_style): New global.
493 (check): Make static.
494 (parse_table_entry): Likewise. Respect sym_style when extracting
495 symbol from symtab entry.
496 (translate): Make static.
497 (resolve_conflicts): Likewise.
498 (process_symtab): New function, per-section callback version of
499 old object-format-specific handling from deleted lto-plugin-elf.c.
500 (claim_file_handler): Convert ELF-specific version from deleted
501 lto-plugin-elf.c to simple_object interface and move here.
502 (process_options): Allow new '-sym-style=' option.
503 (onload): Don't call deleted onload_format_checks hook.
505 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
507 * lto-plugin.c (dump_symtab): Correct printf argument type.
508 (finish_conflict_resolution): Initialize resolution.
510 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
513 * configure.ac: Add AC_CANONICAL_SYSTEM.
514 * configure: Regenerated.
516 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
518 * configure.ac: Source config.gcc to determine lto_binary_reader.
519 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
520 * Makefile.am (LTO_FORMAT): Import.
521 (liblto_plugin_la_SOURCES): Add object format dependent module
522 defined by LTO_FORMAT.
523 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
524 and work around libtool warning.
525 * configure: Regenerate.
526 * Makefile.in: Likewise.
527 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
528 (struct sym_aux): Likewise.
529 (struct plugin_symtab): Likewise.
530 (struct plugin_file_info): Likewise.
531 (LTO_SECTION_PREFIX): Likewise.
532 (add_symbols): Make non-static.
533 (claimed_files): Likewise.
534 (num_claimed_files): Likewise.
536 (parse_table_entry): Likewise.
537 (translate): Likewise.
538 (resolve_conflicts): Likewise.
539 (process_symtab): Move to new lto-plugin-elf.c object format dependent
541 (claim_file_handler): Likewise, and make non-static.
542 (onload): Call new onload_format_checks function.
543 * lto-plugin.h: New file.
544 (LTO_SECTION_PREFIX): Move here.
545 (struct sym_aux): Likewise.
546 (struct plugin_symtab): Likewise.
547 (struct plugin_file_info): Likewise.
548 (claim_file_handler): Add new function prototype.
549 (onload_format_checks): Likewise.
550 (check): Declare extern.
551 (translate): Likewise.
552 (parse_table_entry): Likewise.
553 (resolve_conflicts): Likewise.
554 (add_symbols): Likewise.
555 (claimed_files): Likewise.
556 (num_claimed_files): Likewise.
557 * lto-plugin-elf.c (process_symtab): Move here.
558 (claim_file_handler): Likewise, and make non-static.
559 (onload_format_checks): New function factored out from onload.
560 * lto-plugin-coff.c (claim_file_handler): New function stub.
561 (onload_format_checks): Likewise.
563 2010-08-05 Andi Kleen <ak@linux.intel.com>
565 * lto-plugin.c: Include <hashtab.h>
566 (sym_aux): Add next_conflict field to save conflict chains.
567 (plugin_file_info): Add conflicts symtab.
568 (parse_table_entry): Initialize aux->next_conflict.
569 (process_symtab): Increment found.
571 (finish_conflict_resolution): Add.
573 (write_resolution): Remove symbols loop and move into
574 dump_symtab. Call dump_symtab for main symbol and conflicts table.
575 Call free_symtab to free conflicts table.
579 (symbol_strength): Add.
580 (resolve_conflicts): Add.
581 (claim_file_handler): Add n variable. Check return value of
582 process_symtab. Call resolve_conflicts.
584 2010-07-27 Andi Kleen <ak@linux.intel.com>
586 * lto-plugin.c (translate): Remove debug fprintf.
588 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
591 * lto-plugin.c (translate): Cast to unsigned long.
593 2010-07-23 Andi Kleen <ak@linux.intel.com>
596 * lto-plugin.c (sym_aux): Add.
597 (plugin_symtab): Remove slots. Add aux and id.
598 (parse_table_entry): Change to use aux instead of slots.
599 (LTO_SECTION_PREFIX): Add.
600 (translate): Improve buffer allocation. Change to append
601 symbols to existing out buffer.
602 (get_section): Remove.
603 (process_symtab): Add.
604 (free_2): Free symtab->aux.
605 (write_resolution): Handle aux instead of slots.
606 Print sub id to resolution file.
607 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
608 calls with call to process_symtab.
610 2010-07-22 Richard Guenther <rguenther@suse.de>
612 * Makefile.am: New copy_lto_plugin rule to install the plugin
614 * Makefile.in: Regenerated.
616 2010-05-21 Richard Guenther <rguenther@suse.de>
618 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
620 2010-05-07 Richard Guenther <rguenther@suse.de>
622 * lto-plugin.c (free_2): Do not free resolution_file.
623 (write_resolution): Check that we were passed a resolution file.
624 (all_symbols_read_handler): Adjust.
625 (cleanup_handler): Do not remove the resolution file.
626 (process_option): Handle -fresolution=.
628 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
631 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
632 * Makefile.in: Regenerate.
634 2010-04-23 Richard Guenther <rguenther@suse.de>
637 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
638 (translate): Likewise.
639 (all_symbols_read_handler): Likewise.
640 (claim_file_handler): Likewise.
641 (process_option): Likewise.
642 (add_output_files): Likewise. Remove filename length limit.
644 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
646 * Makefile.in: Regenerate.
647 * aclocal.m4: Regenerate.
649 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
652 * lto-plugin.c (cleanup_handler): Delete temporary output files.
654 2010-01-11 Richard Guenther <rguenther@suse.de>
657 * Makefile.am: Disable dependencies.
658 * Makefile.in: Regenerated.
660 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
663 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
666 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
669 * configure: Regenerated.
670 * Makefile.in: Likewise.
672 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
675 * lto-plugin.c (claim_file_handler): Print offsets in hex.
677 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
679 * lto-plugin.c (write_resolution): Assume resolution_file is set.
680 Print the symbol name.
681 (all_symbols_read_handler): Create a resolution file.
683 (cleanup_handler): Remove the resolution file.
684 (process_option): Drop the -resolution option.
686 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
688 * lto-plugin.c (temp_obj_dir_name): Remove.
689 (arguments_file_name): New.
690 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
691 (exec_lto_wrapper): Create arguments file with make_temp_file.
692 (cleanup_handler): Don't remove the temporary directory. Remove the
694 (onload): Don't create the temporary directory.
696 2009-11-04 Richard Guenther <rguenther@suse.de>
697 Rafael Avila de Espindola <espindola@google.com>
699 * lto-plugin.c (plugin_file_info): Remove temp field.
700 (cleanup_handler): Don't delete temporary objects.
701 (claim_file_handler): Don't create temporary objects.
703 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
705 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
707 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
710 * lto-plugin.c (claim_file_handler): Close files that we created.
712 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
714 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
717 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
720 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
721 * configure: Regenerate.
723 2009-10-26 Richard Guenther <rguenther@suse.de>
725 * configure.ac: Use AM_MAINTAINER_MODE.
726 * acinclude.m4: Remove.
727 * configure: Re-generate.
728 * Makefile.in: Likewise.
729 * aclocal.m4: Likewise.
731 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
734 * configure: Regenerate.
735 * configure.ac: Add AC_TYPE_UINT64_T.
737 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
739 * lto-plugin.c (message): New variable.
740 (check): New function.
741 (parse_table_entry, translate, write_resolution,add_output_files,
742 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
744 (cleanup_handler): Use check instead of assert. Remove the arguments
747 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
749 * lto-plugin.c (resolution_file): New.
750 (free_1): Update comment.
751 (free_2): Free resolution_file.
752 (write_resolution): Write resolution to specified file. Use the
753 syms array from the symbol table.
754 (all_symbols_read_handler): Delay call to free_1 past call to
756 (process_option): Add a -resolution option.
758 2009-10-13 Richard Guenther <rguenther@suse.de>
760 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
762 * Makefile.in: Regenerated.
764 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
766 * lto-plugin.c (add_input_library): New.
767 (all_symbols_read_handler): Use add_input_library for items that
769 (process_option): Fit in 80 columns.
770 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
772 2009-10-02 Diego Novillo <dnovillo@google.com>
774 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
775 and -D_FILE_OFFSET_BITS=64.
776 * configure.ac: Add AC_SYS_LARGEFILE.
777 * configure: Regenerate.
778 * Makefile.in: Regenerate.
779 * lto-plugin.c: Fix copyright boilerplate.
781 2009-10-02 Diego Novillo <dnovillo@google.com>
783 * Makefile.am (ACLOCAL_AMFLAGS): Define.
784 * aclocal.m4: Regenerate with aclocal-2.64
785 * acinclude.m4: Remove.
786 * Makefile.in: Regenerate with automake-1.11
787 * configure.ac (AC_PREREQ): Update to 2.64.
788 * configure: Regenerate.
790 2009-10-02 Diego Novillo <dnovillo@google.com>
792 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
793 and -D_FILE_OFFSET_BITS=64.
794 * configure.ac: Add AC_SYS_LARGEFILE.
795 * configure: Regenerate.
796 * Makefile.in: Regenerate.
797 * lto-plugin.c: Fix copyright boilerplate.
799 2009-10-02 Diego Novillo <dnovillo@google.com>
801 * Makefile.am (ACLOCAL_AMFLAGS): Define.
802 * aclocal.m4: Regenerate with aclocal-2.64
803 * acinclude.m4: Remove.
804 * Makefile.in: Regenerate with automake-1.11
805 * configure.ac (AC_PREREQ): Update to 2.64.
806 * configure: Regenerate.
808 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
810 * Makefile.am (liblto_plugin_la_SOURCES): Remove
811 $(top_srcdir)/../gcc/lto/common.c
812 * Makefile.in: Regenerate.
814 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
816 * lto-plugin.c (pass_through_items): New.
817 (num_pass_through_items): New.
818 (all_symbols_read_handler): Update to use the -pass-through option.
819 (process_option): Replace -libgcc with -pass-through.
821 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
823 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
824 register_cleanup to be set.
826 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
828 * Makefile.am: Remove all reference to ltosymtab.
829 * Makefile.in: Regenerate.
830 * lto-symtab.c: Remove.
832 2009-05-21 Diego Novillo <dnovillo@google.com>
834 * configure.ac: Remove call to AC_CHECK_GELF.
835 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
836 * acinclude.m4: Do not include ../config/libelf.m4
837 * Makefile.am (LIBELFLIBS): Define.
839 (AM_CPPFLAGS): Add $(LIBELFINC).
840 (ltosymtab_LDADD): Add $(LIBELFLIBS).
841 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
842 * lto-plugin.c: Always include <gelf.h>
843 * lto-symtab.c: Likewise.
844 * configure: Regenerate.
845 * Makefile.in: Regenerate.
847 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
849 * lto-plugin.c (libgcc_filename): New.
850 (all_symbols_read_handler): Pass libgcc to the linker.
851 (all_symbols_read_handler): Parse -libgcc
853 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
855 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
856 * Makefile.in: Regenerate.
857 * lto-plugin.c (add_output_files): Argument is now a FILE.
858 (exec_lto_wrapper): Use writeargv and pex.
860 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
863 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
864 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
867 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
869 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
871 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
873 * lto-plugin.c: Include libiberty.h.
874 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
877 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
879 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
882 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
884 * lto-plugin.c (plugin_file_info): Remove fd and elf.
885 (parse_table_entry): strdup entry->name and entry->comdat_key.
886 (free_1): Free name and comdat_key. Don't close the file. Don't call
888 (claim_file_handler): Always call elf_end.
890 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
892 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
893 -D_FILE_OFFSET_BITS=64
894 * Makefile.in: Regenerate
896 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
898 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
899 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
900 * Makefile.in: Regenerate.
901 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
902 * configure: Regenerate.
903 * configure.ac: Add AC_SUBST(target_noncanonical).
905 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
907 * lto-plugin.c: Include stdbool.h.
908 (debug, nop): Declare as bool.
910 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
912 * lto-plugin.c (nop): New.
913 (use_original_files): New.
914 (all_symbols_read_handler): Call use_original_files if nop is true.
915 (process_option): Parse the -nop option.
917 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
919 * lto-plugin.c (debug): New.
920 (exec_lto_wrapper): Print argv if debug is true.
921 (process_option): Process the -debug command line option.
923 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
925 * lto-plugin.c (process_option): The argument is now a single option,
926 not a space separated list.
928 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
930 * lto-plugin.c: Include sys/types.h and sys/wait.h
931 (output_files, num_output_files, lto_wrapper_argv,
932 lto_wrapper_num_args): New.
933 (free_2): Free output_files.
934 (write_resolution): Disable.
935 (add_output_files): New.
936 (exec_lto_wrapper): New.
937 (all_symbols_read_handler): Run lto-wrapper.
938 (claim_file_handler): Free lto_file.name and call elf_end.
939 (process_option): New.
941 2008-11-26 Rafael Espindola <espindola@google.com>
943 * lto-plugin.c (add_input_file): New.
944 (get_section): Return NULL if get_section fails.
945 (write_resolution): New.
946 (all_symbols_read_handler): Call add_input_file.
947 (claim_file_handler): Unlink the correct file.
948 (onload): Record add_input_file.
950 2008-09-23 Rafael Espindola <espindola@google.com>
952 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
953 Update the location of common.c.
954 * Makefile.in: Regenerate.
955 * common.c: Moved to gcc/lto.
956 * common.h: Moved to gcc/lto.
957 * lto-plugin.c: Update the location of common.h.
958 * lto-symtab.c: Update the location of common.h.
960 2008-09-23 Rafael Espindola <espindola@google.com>
962 * common.c: Include common.h.
963 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
965 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
968 2008-09-23 Rafael Espindola <espindola@google.com>
970 * lto-plugin.c (plugin_file_info): Add temp.
971 (cleanup_handler): Only delete temporary files.
972 (claim_file_handler): Initialize lto_file.temp.
974 2008-09-23 Rafael Espindola <espindola@google.com>
976 * plugin-api.h: Moved to include.
978 2008-09-23 Rafael Espindola <espindola@google.com>
980 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
983 2008-09-22 Rafael Espindola <espindola@google.com>
985 * plugin-api.h: Copy from binutils' cvs.
987 2008-09-22 Rafael Espindola <espindola@google.com>
989 * lto-symtab.c (get_symbols, add_symbols): Update signature.
990 * plugin-api.h: Copy from binutils' cvs.
992 2008-09-22 Rafael Espindola <espindola@google.com>
994 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
997 2008-09-10 Rafael Espindola <espindola@google.com>
999 * lto-plugin.c (onload): add missing break statements and asserts.
1000 * lto-symtab.c (claim_file_handler): Make it static.
1001 (all_symbols_read_handler): Make it static.
1002 (all_file_handles): Make it static.
1003 (num_file_handles): Make it static.
1004 (register_claim_file): Make it static.
1005 (register_object): Indent properly.
1007 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1009 * Makefile.am (ltosymtab_LDADD): Add -lelf.
1010 * Makefiel.in: Regenerate.
1011 * lto-plugin.c: Include ar.h.
1012 (claim_file_handler): Handle file->offset != 0.
1013 * lto-symtab.c: Include gelf.h.
1014 (all_file_handles): Change type.
1015 (register_object): New.
1016 (register_file): Add support for archives.
1017 (resolve): Update to new type of all_file_handles.
1018 (print): Update to new type of all_file_handles.
1019 (free_all): Update to new type of all_file_handles.
1020 (main): Update to new type of all_file_handles.
1022 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1024 * lto-plugin.c (get_string_table): Remove.
1025 (get_section): Use elf_strptr instead of get_string_table.
1027 2008-09-08 Doug Kwan <dougkwan@google.com>
1029 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1030 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1032 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
1034 * Makefile.am (ltosymtab_SOURCES): add common.c.
1035 (ltosymtab_CFLAGS): New.
1036 (liblto_plugin_la_SOURCES): Add common.c.
1037 * Makefile.in: Regenerate.
1040 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1041 (plugin_symtab): New.
1042 (plugin_file_info): New.
1043 (register_all_symbols_read): New.
1045 (claimed_files): New.
1046 (num_claimed_files): New.
1047 (translate): Don't drop the slot number.
1050 (all_symbols_read_handler): New.
1051 (claim_file_handler): Record every claimed file.
1052 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1054 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1055 (current_file_handle): Remove.
1056 (ld_plugin_all_symbols_read_handler): New.
1057 (plugin_handle): New.
1059 (all_file_handles): New.
1060 (num_file_handles): New.
1062 (register_all_symbols_read): New.
1063 (add_symbols): Don't print the symbols, just record them.
1064 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1066 (load_plugin): Use plugin_handle.
1067 (register_file): Add the file handle to all_file_handles.
1070 (unload_plugin): New.
1072 (main): Call all_symbols_read_handler and free resources.
1074 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1076 * Makefile.am (AM_CFLAGS): New.
1077 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1078 (lib_LTLIBRARIES): New.
1079 (liblto_plugin_la_SOURCES): New.
1080 (liblto_plugin_la_LIBADD): New.
1081 * Makefile.in: Regenerate.
1082 * acinclude.m4: Don't include ../config/acx.m4 and
1083 ../config/no-executables.m4.
1084 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1086 * aclocal.m4: Regenerate.
1087 * configure: Regenerate.
1088 * configure.ac: Use AM_PROG_LIBTOOL.
1089 * lto-plugin.c: New.
1090 * lto-symtab.c: Rewrite to use the plugin.
1091 * plugin-api.h: New.
1093 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1095 * configure: Regenerate.
1096 * configure.ac: Use AC_CHECK_GELF.
1097 * lto-symtab.c: Include gelf.h.
1098 (get_string_table): Use size independent API.
1099 (printTable): Use lld to print 64 bit integers.
1101 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1103 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1104 entry->visibility are valid.
1106 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1107 * lto-symtab.c (table_entry): Add comdat.
1108 (parse_table_entry): Read comdat.
1110 2008-08-21 Rafael Espindola <espindola@google.com>
1114 * acinclude.m4: New.
1117 * configure.ac: New.
1118 * lto-symtab.c: New.