1 2018-10-31 Joseph Myers <joseph@codesourcery.com>
4 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
5 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
7 2018-05-30 Jan Hubicka <jh@suse.cz>
9 * lto-plugin.c: (non_claimed_files): New static var.
10 (linker_ouput_known): New static var.
11 (all_symbols_read_handler): When user specifies linker output do not
12 imply it; output warning when nonlto-rel mode is forced.
13 (claim_file_header): Record number of nonclaimed files.
14 (process_option): Remember if linker output is known
16 2018-04-18 David Malcolm <dmalcolm@redhat.com>
19 * configure: Regenerate.
21 2018-01-03 Jakub Jelinek <jakub@redhat.com>
23 Update copyright years.
25 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
28 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
30 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
32 2017-01-17 Jakub Jelinek <jakub@redhat.com>
35 * configure.ac: Add GCC_BASE_VER.
36 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
37 get version from BASE-VER file.
38 * configure: Regenerated.
39 * Makefile.in: Regenerated.
41 2017-01-04 Jakub Jelinek <jakub@redhat.com>
43 Update copyright years.
45 2016-11-15 Matthias Klose <doko@ubuntu.com>
47 * configure: Regenerate.
49 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
52 * lto-plugin.c (struct plugin_offload_file): New.
53 (offload_files): Change type.
54 (offload_files_last, offload_files_last_obj): New.
55 (offload_files_last_lto): New.
56 (free_2): Adjust accordingly.
57 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
58 Don't call free_1 for offload_files. Write names of object files with
59 offloading to the temporary file. Add new option to lto_arg_ptr.
60 (claim_file_handler): Don't claim file if it contains offload sections
61 without LTO sections. If it contains offload sections, add to the list.
63 2016-01-15 Martin Liska <mliska@suse.cz>
65 * lto-plugin.c (all_symbols_read_handler): Assign default
66 value to a string variable.
68 2015-11-25 Jan Hubicka <jh@suse.cz>
71 * lto-plugin.c (linker_output, linker_output_set): New statics.
72 (all_symbols_read_handler): Add -flinker-output option.
73 (onload): Record linker_output info.
75 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
77 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
78 * configure: Regenerate.
81 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
83 * Makefile.am: Drop 'by automake version' from top-level comment.
84 * Makefile.in: Regenerated with automake-1.11.6.
85 * aclocal.m4: Likewise.
86 * configure: Likewise.
88 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
90 * lto-plugin.c (release_input_file): Removed.
91 (claim_file_handler): Don't call release_input_file.
92 (onload): Don't set release_input_file.
94 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
96 * lto-plugin.c (claim_file_handler): Pass handle to
99 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
101 * lto-plugin.c (claim_file_handler): Call release_input_file only
104 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
106 * lto-plugin.c (claim_file_handler): Call release_input_file only
109 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
112 * lto-plugin.c (release_input_file): New.
113 (claim_file_handler): Call release_input_file.
114 (onload): Set release_input_file.
116 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
118 * lto-plugin.c (offload_files, num_offload_files): New static variables.
119 (free_1): Use arguments instead of global variables.
120 (free_2): Free offload_files.
121 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
123 (claim_file_handler): Do not add file to claimed_files if it contains
124 offload sections without LTO sections. Add it to offload_files instead.
126 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
129 * configure: Regenerated.
131 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
132 Bernd Schmidt <bernds@codesourcery.com>
133 Andrey Turetskiy <andrey.turetskiy@intel.com>
134 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
136 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
137 (struct plugin_objfile): Add new field "offload".
138 (process_offload_section): New static function.
139 (claim_file_handler): Claim file if it contains offload sections.
141 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
142 Thomas Schwinge <thomas@codesourcery.com>
143 Ilya Verbin <ilya.verbin@intel.com>
144 Andrey Turetskiy <andrey.turetskiy@intel.com>
146 * Makefile.am (libexecsubdir): Tweak for the possibility of being
147 configured for offload compiler.
148 (accel_dir_suffix, real_target_noncanonical): New variables substituted
150 * Makefile.in: Regenerate.
151 * configure: Regenerate.
152 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
155 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
158 * configure: Regenerate.
160 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
163 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
164 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
166 * Makefile.in: Regenerated.
167 * configure: Likewise.
169 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
171 * configure.ac (--with-libiberty): New configure option.
172 * configure: Regenerate.
173 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
175 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
176 (liblto_plugin_la_DEPENDENCIES): Use them.
177 * Makefile.in: Regenerate.
179 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
182 * configure.ac: Check for -static-libgcc.
183 * configure: Regenerate.
185 2014-04-17 Jakub Jelinek <jakub@redhat.com>
188 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
189 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
190 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
191 over ../libiberty/pic/libiberty.a if the former exists.
192 * Makefile.in: Regenerated.
195 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
196 * Makefile.in: Regenerated.
198 2014-04-02 Richard Biener <rguenther@suse.de>
200 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
201 is set in COLLECT_GCC_OPTIONS.
203 2014-03-28 Richard Biener <rguenther@suse.de>
205 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
207 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
209 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
211 * configure: Regenerate.
212 * Makefile.am (AM_LDFLAGS): New variable.
213 (liblto_plugin_la_LDFLAGS): Add it.
214 * Makefile.in: Regenerate.
216 2013-09-20 Alan Modra <amodra@gmail.com>
218 * configure: Regenerate.
220 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
222 * configure: Regenerated.
224 2012-05-29 Joseph Myers <joseph@codesourcery.com>
226 * lto-plugin.c: Fix typo.
228 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
230 * configure: Regenerated.
232 2012-02-22 Kai Tietz <ktietz@redhat.com>
235 * lto-plugin.c (PRI_LL): New macro.
236 (dump_symtab): Use PRI_LL instead of ll in print.
237 (process_symtab): Use PRI_LL instead of ll in scan.
239 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
241 * configure: Regenerate.
243 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
245 * configure: Regenerate.
247 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
249 * configure: Regenerate.
251 2011-10-02 Jan Hubicka <jh@suse.cz>
254 * lto-plugin.c (get_symbols_v2): New variable.
255 (write_resolution): Use V2 API when available.
256 (onload): Handle LDPT_GET_SYMBOLS_V2.
258 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
259 Andi Kleen <ak@linux.intel.com>
262 * lto-plugin.c (sym_aux): Change id to unsigned long long.
263 (plugin_symtab): Likewise.
264 (dump_symtab): Likewise.
265 (resolve_conflicts): Likewise.
266 (process_symtab): Likewise.
268 2011-08-10 Richard Guenther <rguenther@suse.de>
272 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
273 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
274 * configure: Regenerate.
275 * Makefile.in: Likewise.
276 * aclocal.m4: Likewise.
278 2011-04-20 Jim Meyering <meyering@redhat.com>
280 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
282 2011-04-05 Richard Guenther <rguenther@suse.de>
285 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
287 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
289 * Makefile.in: Regenerate.
290 * aclocal.m4: Regenerate.
291 * configure: Regenerate.
293 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
295 * Makefile.am (all-local): Rename from 'all'.
296 * Makefile.in: Regenerate.
298 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
301 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
302 (liblto_plugin_la_LDFLAGS): Add -module.
303 (copy_lto_plugin): Renamed to...
304 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
306 * Makefile.in: Rebuild.
308 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
311 * Makefile.am (Wc): New helper for encoding -Wc,.
312 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
313 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
314 * Makefile.in: Regenerated.
316 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
320 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
323 * Makefile.am (Wl): New helper for encoding -Wl,.
324 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
325 * Makefile.in: Regenerated.
327 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
330 * Makefile.am (Wl): New helper for encoding -Wl,.
331 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
332 * Makefile.in: Regenerated.
334 2011-01-25 Ian Lance Taylor <iant@google.com>
336 * lto-plugin.c (gold_version): New static variable.
337 (all_symbols_read_handler): Don't check pass_through_items if
338 using gold 1.11 or later.
339 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
341 2011-01-12 Richard Guenther <rguenther@suse.de>
344 * lto-plugin.c (parse_table_entry): Use memcpy to access
347 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
349 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
350 * Makefile.in: Regenerate.
352 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
356 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
358 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
359 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
360 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
361 * Makefile.in: Regenerate.
363 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
367 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
368 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
369 * configure: Regenerate.
370 * config.h.in: Likewise.
372 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
376 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
377 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
378 override -bindir setting.
379 * aclocal.m4: Regenerate.
380 * configure: Regenerate.
381 * Makefile.in: Regenerate.
383 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
385 * config.h.in: Regenerated.
386 * configure: Regenerated.
387 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
388 * lto-plugin.c (WIFEXITED): Define default.
389 (WEXITSTATUS): Likeiwse.
391 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
393 * config.h.in: Regenerated.
394 * configure: Regenerated.
395 * Makefile.in: Regenerated.
396 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
397 * lto-plugin.c: Include sys/wait.h conditionally.
398 * aclocal.m4: Regenerated.
400 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
402 * lto-plugin.c (add_output_files): Fix memory leak.
404 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
408 * configure.ac: Add AC_TYPE_INT64_T test.
409 * config.h.in: Regenerate.
410 * configure: Likewise.
411 * lto-plugin.c (debug): Use char not bool.
413 (check_1): Rename from check, and use int not bool for gate argument.
414 (check): Macro wrapper for the above to coerce gate argument into
415 boolean-valued integer in case it has pointer type.
416 (parse_table_entry): Use 0 not false.
417 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
418 into two 32-bit parts and printing as hex ints.
420 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
423 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
425 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
428 * lto-plugin.h: Delete.
429 * lto-plugin-elf.c: Likewise.
430 * lto-plugin-coff.c: Likewise.
431 * configure.ac: Don't use libelf, don't source config.gcc.
432 (LIBELFLIBS): Delete.
434 (LTO_FORMAT): Delete.
435 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
436 (config.h): Add AC_CONFIG_HEADERS directive.
437 * Makefile.am (LIBELFLIBS): Delete.
439 (LTO_FORMAT): Delete.
441 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
442 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
443 any object-format-specific source file in the link.
444 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
445 * config.h.in: Generate.
446 * configure: Regenerate.
447 * Makefile.in: Likewise.
448 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
449 (LTO_SEGMENT_NAME): New definition.
450 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
451 (LTO_SECTION_PREFIX_LEN): New definition.
452 (struct sym_aux): Struct definition moved here from lto-plugin.h.
453 (struct plugin_symtab): Likewise.
454 (struct plugin_objfile): Likewise.
455 (struct plugin_objfile): New struct def.
456 (enum symbol_style): New enum type.
457 (add_symbols): Make static.
458 (claimed_files): Likewise.
459 (num_claimed_files): Likewise.
460 (sym_style): New global.
461 (check): Make static.
462 (parse_table_entry): Likewise. Respect sym_style when extracting
463 symbol from symtab entry.
464 (translate): Make static.
465 (resolve_conflicts): Likewise.
466 (process_symtab): New function, per-section callback version of
467 old object-format-specific handling from deleted lto-plugin-elf.c.
468 (claim_file_handler): Convert ELF-specific version from deleted
469 lto-plugin-elf.c to simple_object interface and move here.
470 (process_options): Allow new '-sym-style=' option.
471 (onload): Don't call deleted onload_format_checks hook.
473 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
475 * lto-plugin.c (dump_symtab): Correct printf argument type.
476 (finish_conflict_resolution): Initialize resolution.
478 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
481 * configure.ac: Add AC_CANONICAL_SYSTEM.
482 * configure: Regenerated.
484 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
486 * configure.ac: Source config.gcc to determine lto_binary_reader.
487 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
488 * Makefile.am (LTO_FORMAT): Import.
489 (liblto_plugin_la_SOURCES): Add object format dependent module
490 defined by LTO_FORMAT.
491 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
492 and work around libtool warning.
493 * configure: Regenerate.
494 * Makefile.in: Likewise.
495 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
496 (struct sym_aux): Likewise.
497 (struct plugin_symtab): Likewise.
498 (struct plugin_file_info): Likewise.
499 (LTO_SECTION_PREFIX): Likewise.
500 (add_symbols): Make non-static.
501 (claimed_files): Likewise.
502 (num_claimed_files): Likewise.
504 (parse_table_entry): Likewise.
505 (translate): Likewise.
506 (resolve_conflicts): Likewise.
507 (process_symtab): Move to new lto-plugin-elf.c object format dependent
509 (claim_file_handler): Likewise, and make non-static.
510 (onload): Call new onload_format_checks function.
511 * lto-plugin.h: New file.
512 (LTO_SECTION_PREFIX): Move here.
513 (struct sym_aux): Likewise.
514 (struct plugin_symtab): Likewise.
515 (struct plugin_file_info): Likewise.
516 (claim_file_handler): Add new function prototype.
517 (onload_format_checks): Likewise.
518 (check): Declare extern.
519 (translate): Likewise.
520 (parse_table_entry): Likewise.
521 (resolve_conflicts): Likewise.
522 (add_symbols): Likewise.
523 (claimed_files): Likewise.
524 (num_claimed_files): Likewise.
525 * lto-plugin-elf.c (process_symtab): Move here.
526 (claim_file_handler): Likewise, and make non-static.
527 (onload_format_checks): New function factored out from onload.
528 * lto-plugin-coff.c (claim_file_handler): New function stub.
529 (onload_format_checks): Likewise.
531 2010-08-05 Andi Kleen <ak@linux.intel.com>
533 * lto-plugin.c: Include <hashtab.h>
534 (sym_aux): Add next_conflict field to save conflict chains.
535 (plugin_file_info): Add conflicts symtab.
536 (parse_table_entry): Initialize aux->next_conflict.
537 (process_symtab): Increment found.
539 (finish_conflict_resolution): Add.
541 (write_resolution): Remove symbols loop and move into
542 dump_symtab. Call dump_symtab for main symbol and conflicts table.
543 Call free_symtab to free conflicts table.
547 (symbol_strength): Add.
548 (resolve_conflicts): Add.
549 (claim_file_handler): Add n variable. Check return value of
550 process_symtab. Call resolve_conflicts.
552 2010-07-27 Andi Kleen <ak@linux.intel.com>
554 * lto-plugin.c (translate): Remove debug fprintf.
556 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
559 * lto-plugin.c (translate): Cast to unsigned long.
561 2010-07-23 Andi Kleen <ak@linux.intel.com>
564 * lto-plugin.c (sym_aux): Add.
565 (plugin_symtab): Remove slots. Add aux and id.
566 (parse_table_entry): Change to use aux instead of slots.
567 (LTO_SECTION_PREFIX): Add.
568 (translate): Improve buffer allocation. Change to append
569 symbols to existing out buffer.
570 (get_section): Remove.
571 (process_symtab): Add.
572 (free_2): Free symtab->aux.
573 (write_resolution): Handle aux instead of slots.
574 Print sub id to resolution file.
575 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
576 calls with call to process_symtab.
578 2010-07-22 Richard Guenther <rguenther@suse.de>
580 * Makefile.am: New copy_lto_plugin rule to install the plugin
582 * Makefile.in: Regenerated.
584 2010-05-21 Richard Guenther <rguenther@suse.de>
586 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
588 2010-05-07 Richard Guenther <rguenther@suse.de>
590 * lto-plugin.c (free_2): Do not free resolution_file.
591 (write_resolution): Check that we were passed a resolution file.
592 (all_symbols_read_handler): Adjust.
593 (cleanup_handler): Do not remove the resolution file.
594 (process_option): Handle -fresolution=.
596 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
599 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
600 * Makefile.in: Regenerate.
602 2010-04-23 Richard Guenther <rguenther@suse.de>
605 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
606 (translate): Likewise.
607 (all_symbols_read_handler): Likewise.
608 (claim_file_handler): Likewise.
609 (process_option): Likewise.
610 (add_output_files): Likewise. Remove filename length limit.
612 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
614 * Makefile.in: Regenerate.
615 * aclocal.m4: Regenerate.
617 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
620 * lto-plugin.c (cleanup_handler): Delete temporary output files.
622 2010-01-11 Richard Guenther <rguenther@suse.de>
625 * Makefile.am: Disable dependencies.
626 * Makefile.in: Regenerated.
628 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
631 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
634 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
637 * configure: Regenerated.
638 * Makefile.in: Likewise.
640 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
643 * lto-plugin.c (claim_file_handler): Print offsets in hex.
645 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
647 * lto-plugin.c (write_resolution): Assume resolution_file is set.
648 Print the symbol name.
649 (all_symbols_read_handler): Create a resolution file.
651 (cleanup_handler): Remove the resolution file.
652 (process_option): Drop the -resolution option.
654 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
656 * lto-plugin.c (temp_obj_dir_name): Remove.
657 (arguments_file_name): New.
658 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
659 (exec_lto_wrapper): Create arguments file with make_temp_file.
660 (cleanup_handler): Don't remove the temporary directory. Remove the
662 (onload): Don't create the temporary directory.
664 2009-11-04 Richard Guenther <rguenther@suse.de>
665 Rafael Avila de Espindola <espindola@google.com>
667 * lto-plugin.c (plugin_file_info): Remove temp field.
668 (cleanup_handler): Don't delete temporary objects.
669 (claim_file_handler): Don't create temporary objects.
671 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
673 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
675 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
678 * lto-plugin.c (claim_file_handler): Close files that we created.
680 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
682 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
685 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
688 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
689 * configure: Regenerate.
691 2009-10-26 Richard Guenther <rguenther@suse.de>
693 * configure.ac: Use AM_MAINTAINER_MODE.
694 * acinclude.m4: Remove.
695 * configure: Re-generate.
696 * Makefile.in: Likewise.
697 * aclocal.m4: Likewise.
699 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
702 * configure: Regenerate.
703 * configure.ac: Add AC_TYPE_UINT64_T.
705 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
707 * lto-plugin.c (message): New variable.
708 (check): New function.
709 (parse_table_entry, translate, write_resolution,add_output_files,
710 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
712 (cleanup_handler): Use check instead of assert. Remove the arguments
715 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
717 * lto-plugin.c (resolution_file): New.
718 (free_1): Update comment.
719 (free_2): Free resolution_file.
720 (write_resolution): Write resolution to specified file. Use the
721 syms array from the symbol table.
722 (all_symbols_read_handler): Delay call to free_1 past call to
724 (process_option): Add a -resolution option.
726 2009-10-13 Richard Guenther <rguenther@suse.de>
728 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
730 * Makefile.in: Regenerated.
732 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
734 * lto-plugin.c (add_input_library): New.
735 (all_symbols_read_handler): Use add_input_library for items that
737 (process_option): Fit in 80 columns.
738 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
740 2009-10-02 Diego Novillo <dnovillo@google.com>
742 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
743 and -D_FILE_OFFSET_BITS=64.
744 * configure.ac: Add AC_SYS_LARGEFILE.
745 * configure: Regenerate.
746 * Makefile.in: Regenerate.
747 * lto-plugin.c: Fix copyright boilerplate.
749 2009-10-02 Diego Novillo <dnovillo@google.com>
751 * Makefile.am (ACLOCAL_AMFLAGS): Define.
752 * aclocal.m4: Regenerate with aclocal-2.64
753 * acinclude.m4: Remove.
754 * Makefile.in: Regenerate with automake-1.11
755 * configure.ac (AC_PREREQ): Update to 2.64.
756 * configure: Regenerate.
758 2009-10-02 Diego Novillo <dnovillo@google.com>
760 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
761 and -D_FILE_OFFSET_BITS=64.
762 * configure.ac: Add AC_SYS_LARGEFILE.
763 * configure: Regenerate.
764 * Makefile.in: Regenerate.
765 * lto-plugin.c: Fix copyright boilerplate.
767 2009-10-02 Diego Novillo <dnovillo@google.com>
769 * Makefile.am (ACLOCAL_AMFLAGS): Define.
770 * aclocal.m4: Regenerate with aclocal-2.64
771 * acinclude.m4: Remove.
772 * Makefile.in: Regenerate with automake-1.11
773 * configure.ac (AC_PREREQ): Update to 2.64.
774 * configure: Regenerate.
776 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
778 * Makefile.am (liblto_plugin_la_SOURCES): Remove
779 $(top_srcdir)/../gcc/lto/common.c
780 * Makefile.in: Regenerate.
782 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
784 * lto-plugin.c (pass_through_items): New.
785 (num_pass_through_items): New.
786 (all_symbols_read_handler): Update to use the -pass-through option.
787 (process_option): Replace -libgcc with -pass-through.
789 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
791 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
792 register_cleanup to be set.
794 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
796 * Makefile.am: Remove all reference to ltosymtab.
797 * Makefile.in: Regenerate.
798 * lto-symtab.c: Remove.
800 2009-05-21 Diego Novillo <dnovillo@google.com>
802 * configure.ac: Remove call to AC_CHECK_GELF.
803 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
804 * acinclude.m4: Do not include ../config/libelf.m4
805 * Makefile.am (LIBELFLIBS): Define.
807 (AM_CPPFLAGS): Add $(LIBELFINC).
808 (ltosymtab_LDADD): Add $(LIBELFLIBS).
809 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
810 * lto-plugin.c: Always include <gelf.h>
811 * lto-symtab.c: Likewise.
812 * configure: Regenerate.
813 * Makefile.in: Regenerate.
815 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
817 * lto-plugin.c (libgcc_filename): New.
818 (all_symbols_read_handler): Pass libgcc to the linker.
819 (all_symbols_read_handler): Parse -libgcc
821 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
823 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
824 * Makefile.in: Regenerate.
825 * lto-plugin.c (add_output_files): Argument is now a FILE.
826 (exec_lto_wrapper): Use writeargv and pex.
828 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
831 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
832 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
835 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
837 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
839 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
841 * lto-plugin.c: Include libiberty.h.
842 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
845 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
847 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
850 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
852 * lto-plugin.c (plugin_file_info): Remove fd and elf.
853 (parse_table_entry): strdup entry->name and entry->comdat_key.
854 (free_1): Free name and comdat_key. Don't close the file. Don't call
856 (claim_file_handler): Always call elf_end.
858 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
860 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
861 -D_FILE_OFFSET_BITS=64
862 * Makefile.in: Regenerate
864 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
866 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
867 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
868 * Makefile.in: Regenerate.
869 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
870 * configure: Regenerate.
871 * configure.ac: Add AC_SUBST(target_noncanonical).
873 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
875 * lto-plugin.c: Include stdbool.h.
876 (debug, nop): Declare as bool.
878 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
880 * lto-plugin.c (nop): New.
881 (use_original_files): New.
882 (all_symbols_read_handler): Call use_original_files if nop is true.
883 (process_option): Parse the -nop option.
885 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
887 * lto-plugin.c (debug): New.
888 (exec_lto_wrapper): Print argv if debug is true.
889 (process_option): Process the -debug command line option.
891 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
893 * lto-plugin.c (process_option): The argument is now a single option,
894 not a space separated list.
896 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
898 * lto-plugin.c: Include sys/types.h and sys/wait.h
899 (output_files, num_output_files, lto_wrapper_argv,
900 lto_wrapper_num_args): New.
901 (free_2): Free output_files.
902 (write_resolution): Disable.
903 (add_output_files): New.
904 (exec_lto_wrapper): New.
905 (all_symbols_read_handler): Run lto-wrapper.
906 (claim_file_handler): Free lto_file.name and call elf_end.
907 (process_option): New.
909 2008-11-26 Rafael Espindola <espindola@google.com>
911 * lto-plugin.c (add_input_file): New.
912 (get_section): Return NULL if get_section fails.
913 (write_resolution): New.
914 (all_symbols_read_handler): Call add_input_file.
915 (claim_file_handler): Unlink the correct file.
916 (onload): Record add_input_file.
918 2008-09-23 Rafael Espindola <espindola@google.com>
920 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
921 Update the location of common.c.
922 * Makefile.in: Regenerate.
923 * common.c: Moved to gcc/lto.
924 * common.h: Moved to gcc/lto.
925 * lto-plugin.c: Update the location of common.h.
926 * lto-symtab.c: Update the location of common.h.
928 2008-09-23 Rafael Espindola <espindola@google.com>
930 * common.c: Include common.h.
931 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
933 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
936 2008-09-23 Rafael Espindola <espindola@google.com>
938 * lto-plugin.c (plugin_file_info): Add temp.
939 (cleanup_handler): Only delete temporary files.
940 (claim_file_handler): Initialize lto_file.temp.
942 2008-09-23 Rafael Espindola <espindola@google.com>
944 * plugin-api.h: Moved to include.
946 2008-09-23 Rafael Espindola <espindola@google.com>
948 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
951 2008-09-22 Rafael Espindola <espindola@google.com>
953 * plugin-api.h: Copy from binutils' cvs.
955 2008-09-22 Rafael Espindola <espindola@google.com>
957 * lto-symtab.c (get_symbols, add_symbols): Update signature.
958 * plugin-api.h: Copy from binutils' cvs.
960 2008-09-22 Rafael Espindola <espindola@google.com>
962 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
965 2008-09-10 Rafael Espindola <espindola@google.com>
967 * lto-plugin.c (onload): add missing break statements and asserts.
968 * lto-symtab.c (claim_file_handler): Make it static.
969 (all_symbols_read_handler): Make it static.
970 (all_file_handles): Make it static.
971 (num_file_handles): Make it static.
972 (register_claim_file): Make it static.
973 (register_object): Indent properly.
975 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
977 * Makefile.am (ltosymtab_LDADD): Add -lelf.
978 * Makefiel.in: Regenerate.
979 * lto-plugin.c: Include ar.h.
980 (claim_file_handler): Handle file->offset != 0.
981 * lto-symtab.c: Include gelf.h.
982 (all_file_handles): Change type.
983 (register_object): New.
984 (register_file): Add support for archives.
985 (resolve): Update to new type of all_file_handles.
986 (print): Update to new type of all_file_handles.
987 (free_all): Update to new type of all_file_handles.
988 (main): Update to new type of all_file_handles.
990 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
992 * lto-plugin.c (get_string_table): Remove.
993 (get_section): Use elf_strptr instead of get_string_table.
995 2008-09-08 Doug Kwan <dougkwan@google.com>
997 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
998 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1000 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
1002 * Makefile.am (ltosymtab_SOURCES): add common.c.
1003 (ltosymtab_CFLAGS): New.
1004 (liblto_plugin_la_SOURCES): Add common.c.
1005 * Makefile.in: Regenerate.
1008 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1009 (plugin_symtab): New.
1010 (plugin_file_info): New.
1011 (register_all_symbols_read): New.
1013 (claimed_files): New.
1014 (num_claimed_files): New.
1015 (translate): Don't drop the slot number.
1018 (all_symbols_read_handler): New.
1019 (claim_file_handler): Record every claimed file.
1020 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1022 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1023 (current_file_handle): Remove.
1024 (ld_plugin_all_symbols_read_handler): New.
1025 (plugin_handle): New.
1027 (all_file_handles): New.
1028 (num_file_handles): New.
1030 (register_all_symbols_read): New.
1031 (add_symbols): Don't print the symbols, just record them.
1032 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1034 (load_plugin): Use plugin_handle.
1035 (register_file): Add the file handle to all_file_handles.
1038 (unload_plugin): New.
1040 (main): Call all_symbols_read_handler and free resources.
1042 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1044 * Makefile.am (AM_CFLAGS): New.
1045 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1046 (lib_LTLIBRARIES): New.
1047 (liblto_plugin_la_SOURCES): New.
1048 (liblto_plugin_la_LIBADD): New.
1049 * Makefile.in: Regenerate.
1050 * acinclude.m4: Don't include ../config/acx.m4 and
1051 ../config/no-executables.m4.
1052 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1054 * aclocal.m4: Regenerate.
1055 * configure: Regenerate.
1056 * configure.ac: Use AM_PROG_LIBTOOL.
1057 * lto-plugin.c: New.
1058 * lto-symtab.c: Rewrite to use the plugin.
1059 * plugin-api.h: New.
1061 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1063 * configure: Regenerate.
1064 * configure.ac: Use AC_CHECK_GELF.
1065 * lto-symtab.c: Include gelf.h.
1066 (get_string_table): Use size independent API.
1067 (printTable): Use lld to print 64 bit integers.
1069 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1071 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1072 entry->visibility are valid.
1074 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1075 * lto-symtab.c (table_entry): Add comdat.
1076 (parse_table_entry): Read comdat.
1078 2008-08-21 Rafael Espindola <espindola@google.com>
1082 * acinclude.m4: New.
1085 * configure.ac: New.
1086 * lto-symtab.c: New.