1 2017-08-14 Release Manager
5 2017-07-26 Georg-Johann Lay <avr@gjlay.de>
7 Backport from 2017-07-21 trunk r250428.
10 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
12 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
14 2017-05-02 Release Manager
18 2017-01-17 Jakub Jelinek <jakub@redhat.com>
21 * configure.ac: Add GCC_BASE_VER.
22 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
23 get version from BASE-VER file.
24 * configure: Regenerated.
25 * Makefile.in: Regenerated.
27 2017-01-04 Jakub Jelinek <jakub@redhat.com>
29 Update copyright years.
31 2016-11-15 Matthias Klose <doko@ubuntu.com>
33 * configure: Regenerate.
35 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
38 * lto-plugin.c (struct plugin_offload_file): New.
39 (offload_files): Change type.
40 (offload_files_last, offload_files_last_obj): New.
41 (offload_files_last_lto): New.
42 (free_2): Adjust accordingly.
43 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
44 Don't call free_1 for offload_files. Write names of object files with
45 offloading to the temporary file. Add new option to lto_arg_ptr.
46 (claim_file_handler): Don't claim file if it contains offload sections
47 without LTO sections. If it contains offload sections, add to the list.
49 2016-01-15 Martin Liska <mliska@suse.cz>
51 * lto-plugin.c (all_symbols_read_handler): Assign default
52 value to a string variable.
54 2015-11-25 Jan Hubicka <jh@suse.cz>
57 * lto-plugin.c (linker_output, linker_output_set): New statics.
58 (all_symbols_read_handler): Add -flinker-output option.
59 (onload): Record linker_output info.
61 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
63 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
64 * configure: Regenerate.
67 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
69 * Makefile.am: Drop 'by automake version' from top-level comment.
70 * Makefile.in: Regenerated with automake-1.11.6.
71 * aclocal.m4: Likewise.
72 * configure: Likewise.
74 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
76 * lto-plugin.c (release_input_file): Removed.
77 (claim_file_handler): Don't call release_input_file.
78 (onload): Don't set release_input_file.
80 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
82 * lto-plugin.c (claim_file_handler): Pass handle to
85 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
87 * lto-plugin.c (claim_file_handler): Call release_input_file only
90 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
92 * lto-plugin.c (claim_file_handler): Call release_input_file only
95 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
98 * lto-plugin.c (release_input_file): New.
99 (claim_file_handler): Call release_input_file.
100 (onload): Set release_input_file.
102 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
104 * lto-plugin.c (offload_files, num_offload_files): New static variables.
105 (free_1): Use arguments instead of global variables.
106 (free_2): Free offload_files.
107 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
109 (claim_file_handler): Do not add file to claimed_files if it contains
110 offload sections without LTO sections. Add it to offload_files instead.
112 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
115 * configure: Regenerated.
117 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
118 Bernd Schmidt <bernds@codesourcery.com>
119 Andrey Turetskiy <andrey.turetskiy@intel.com>
120 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
122 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
123 (struct plugin_objfile): Add new field "offload".
124 (process_offload_section): New static function.
125 (claim_file_handler): Claim file if it contains offload sections.
127 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
128 Thomas Schwinge <thomas@codesourcery.com>
129 Ilya Verbin <ilya.verbin@intel.com>
130 Andrey Turetskiy <andrey.turetskiy@intel.com>
132 * Makefile.am (libexecsubdir): Tweak for the possibility of being
133 configured for offload compiler.
134 (accel_dir_suffix, real_target_noncanonical): New variables substituted
136 * Makefile.in: Regenerate.
137 * configure: Regenerate.
138 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
141 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
144 * configure: Regenerate.
146 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
149 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
150 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
152 * Makefile.in: Regenerated.
153 * configure: Likewise.
155 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
157 * configure.ac (--with-libiberty): New configure option.
158 * configure: Regenerate.
159 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
161 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
162 (liblto_plugin_la_DEPENDENCIES): Use them.
163 * Makefile.in: Regenerate.
165 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
168 * configure.ac: Check for -static-libgcc.
169 * configure: Regenerate.
171 2014-04-17 Jakub Jelinek <jakub@redhat.com>
174 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
175 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
176 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
177 over ../libiberty/pic/libiberty.a if the former exists.
178 * Makefile.in: Regenerated.
181 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
182 * Makefile.in: Regenerated.
184 2014-04-02 Richard Biener <rguenther@suse.de>
186 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
187 is set in COLLECT_GCC_OPTIONS.
189 2014-03-28 Richard Biener <rguenther@suse.de>
191 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
193 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
195 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
197 * configure: Regenerate.
198 * Makefile.am (AM_LDFLAGS): New variable.
199 (liblto_plugin_la_LDFLAGS): Add it.
200 * Makefile.in: Regenerate.
202 2013-09-20 Alan Modra <amodra@gmail.com>
204 * configure: Regenerate.
206 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
208 * configure: Regenerated.
210 2012-05-29 Joseph Myers <joseph@codesourcery.com>
212 * lto-plugin.c: Fix typo.
214 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
216 * configure: Regenerated.
218 2012-02-22 Kai Tietz <ktietz@redhat.com>
221 * lto-plugin.c (PRI_LL): New macro.
222 (dump_symtab): Use PRI_LL instead of ll in print.
223 (process_symtab): Use PRI_LL instead of ll in scan.
225 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
227 * configure: Regenerate.
229 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
231 * configure: Regenerate.
233 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
235 * configure: Regenerate.
237 2011-10-02 Jan Hubicka <jh@suse.cz>
240 * lto-plugin.c (get_symbols_v2): New variable.
241 (write_resolution): Use V2 API when available.
242 (onload): Handle LDPT_GET_SYMBOLS_V2.
244 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
245 Andi Kleen <ak@linux.intel.com>
248 * lto-plugin.c (sym_aux): Change id to unsigned long long.
249 (plugin_symtab): Likewise.
250 (dump_symtab): Likewise.
251 (resolve_conflicts): Likewise.
252 (process_symtab): Likewise.
254 2011-08-10 Richard Guenther <rguenther@suse.de>
258 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
259 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
260 * configure: Regenerate.
261 * Makefile.in: Likewise.
262 * aclocal.m4: Likewise.
264 2011-04-20 Jim Meyering <meyering@redhat.com>
266 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
268 2011-04-05 Richard Guenther <rguenther@suse.de>
271 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
273 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
275 * Makefile.in: Regenerate.
276 * aclocal.m4: Regenerate.
277 * configure: Regenerate.
279 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
281 * Makefile.am (all-local): Rename from 'all'.
282 * Makefile.in: Regenerate.
284 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
287 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
288 (liblto_plugin_la_LDFLAGS): Add -module.
289 (copy_lto_plugin): Renamed to...
290 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
292 * Makefile.in: Rebuild.
294 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
297 * Makefile.am (Wc): New helper for encoding -Wc,.
298 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
299 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
300 * Makefile.in: Regenerated.
302 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
306 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
309 * Makefile.am (Wl): New helper for encoding -Wl,.
310 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
311 * Makefile.in: Regenerated.
313 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
316 * Makefile.am (Wl): New helper for encoding -Wl,.
317 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
318 * Makefile.in: Regenerated.
320 2011-01-25 Ian Lance Taylor <iant@google.com>
322 * lto-plugin.c (gold_version): New static variable.
323 (all_symbols_read_handler): Don't check pass_through_items if
324 using gold 1.11 or later.
325 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
327 2011-01-12 Richard Guenther <rguenther@suse.de>
330 * lto-plugin.c (parse_table_entry): Use memcpy to access
333 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
335 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
336 * Makefile.in: Regenerate.
338 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
342 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
344 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
345 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
346 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
347 * Makefile.in: Regenerate.
349 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
353 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
354 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
355 * configure: Regenerate.
356 * config.h.in: Likewise.
358 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
362 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
363 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
364 override -bindir setting.
365 * aclocal.m4: Regenerate.
366 * configure: Regenerate.
367 * Makefile.in: Regenerate.
369 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
371 * config.h.in: Regenerated.
372 * configure: Regenerated.
373 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
374 * lto-plugin.c (WIFEXITED): Define default.
375 (WEXITSTATUS): Likeiwse.
377 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
379 * config.h.in: Regenerated.
380 * configure: Regenerated.
381 * Makefile.in: Regenerated.
382 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
383 * lto-plugin.c: Include sys/wait.h conditionally.
384 * aclocal.m4: Regenerated.
386 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
388 * lto-plugin.c (add_output_files): Fix memory leak.
390 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
394 * configure.ac: Add AC_TYPE_INT64_T test.
395 * config.h.in: Regenerate.
396 * configure: Likewise.
397 * lto-plugin.c (debug): Use char not bool.
399 (check_1): Rename from check, and use int not bool for gate argument.
400 (check): Macro wrapper for the above to coerce gate argument into
401 boolean-valued integer in case it has pointer type.
402 (parse_table_entry): Use 0 not false.
403 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
404 into two 32-bit parts and printing as hex ints.
406 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
409 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
411 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
414 * lto-plugin.h: Delete.
415 * lto-plugin-elf.c: Likewise.
416 * lto-plugin-coff.c: Likewise.
417 * configure.ac: Don't use libelf, don't source config.gcc.
418 (LIBELFLIBS): Delete.
420 (LTO_FORMAT): Delete.
421 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
422 (config.h): Add AC_CONFIG_HEADERS directive.
423 * Makefile.am (LIBELFLIBS): Delete.
425 (LTO_FORMAT): Delete.
427 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
428 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
429 any object-format-specific source file in the link.
430 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
431 * config.h.in: Generate.
432 * configure: Regenerate.
433 * Makefile.in: Likewise.
434 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
435 (LTO_SEGMENT_NAME): New definition.
436 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
437 (LTO_SECTION_PREFIX_LEN): New definition.
438 (struct sym_aux): Struct definition moved here from lto-plugin.h.
439 (struct plugin_symtab): Likewise.
440 (struct plugin_objfile): Likewise.
441 (struct plugin_objfile): New struct def.
442 (enum symbol_style): New enum type.
443 (add_symbols): Make static.
444 (claimed_files): Likewise.
445 (num_claimed_files): Likewise.
446 (sym_style): New global.
447 (check): Make static.
448 (parse_table_entry): Likewise. Respect sym_style when extracting
449 symbol from symtab entry.
450 (translate): Make static.
451 (resolve_conflicts): Likewise.
452 (process_symtab): New function, per-section callback version of
453 old object-format-specific handling from deleted lto-plugin-elf.c.
454 (claim_file_handler): Convert ELF-specific version from deleted
455 lto-plugin-elf.c to simple_object interface and move here.
456 (process_options): Allow new '-sym-style=' option.
457 (onload): Don't call deleted onload_format_checks hook.
459 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
461 * lto-plugin.c (dump_symtab): Correct printf argument type.
462 (finish_conflict_resolution): Initialize resolution.
464 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
467 * configure.ac: Add AC_CANONICAL_SYSTEM.
468 * configure: Regenerated.
470 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
472 * configure.ac: Source config.gcc to determine lto_binary_reader.
473 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
474 * Makefile.am (LTO_FORMAT): Import.
475 (liblto_plugin_la_SOURCES): Add object format dependent module
476 defined by LTO_FORMAT.
477 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
478 and work around libtool warning.
479 * configure: Regenerate.
480 * Makefile.in: Likewise.
481 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
482 (struct sym_aux): Likewise.
483 (struct plugin_symtab): Likewise.
484 (struct plugin_file_info): Likewise.
485 (LTO_SECTION_PREFIX): Likewise.
486 (add_symbols): Make non-static.
487 (claimed_files): Likewise.
488 (num_claimed_files): Likewise.
490 (parse_table_entry): Likewise.
491 (translate): Likewise.
492 (resolve_conflicts): Likewise.
493 (process_symtab): Move to new lto-plugin-elf.c object format dependent
495 (claim_file_handler): Likewise, and make non-static.
496 (onload): Call new onload_format_checks function.
497 * lto-plugin.h: New file.
498 (LTO_SECTION_PREFIX): Move here.
499 (struct sym_aux): Likewise.
500 (struct plugin_symtab): Likewise.
501 (struct plugin_file_info): Likewise.
502 (claim_file_handler): Add new function prototype.
503 (onload_format_checks): Likewise.
504 (check): Declare extern.
505 (translate): Likewise.
506 (parse_table_entry): Likewise.
507 (resolve_conflicts): Likewise.
508 (add_symbols): Likewise.
509 (claimed_files): Likewise.
510 (num_claimed_files): Likewise.
511 * lto-plugin-elf.c (process_symtab): Move here.
512 (claim_file_handler): Likewise, and make non-static.
513 (onload_format_checks): New function factored out from onload.
514 * lto-plugin-coff.c (claim_file_handler): New function stub.
515 (onload_format_checks): Likewise.
517 2010-08-05 Andi Kleen <ak@linux.intel.com>
519 * lto-plugin.c: Include <hashtab.h>
520 (sym_aux): Add next_conflict field to save conflict chains.
521 (plugin_file_info): Add conflicts symtab.
522 (parse_table_entry): Initialize aux->next_conflict.
523 (process_symtab): Increment found.
525 (finish_conflict_resolution): Add.
527 (write_resolution): Remove symbols loop and move into
528 dump_symtab. Call dump_symtab for main symbol and conflicts table.
529 Call free_symtab to free conflicts table.
533 (symbol_strength): Add.
534 (resolve_conflicts): Add.
535 (claim_file_handler): Add n variable. Check return value of
536 process_symtab. Call resolve_conflicts.
538 2010-07-27 Andi Kleen <ak@linux.intel.com>
540 * lto-plugin.c (translate): Remove debug fprintf.
542 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
545 * lto-plugin.c (translate): Cast to unsigned long.
547 2010-07-23 Andi Kleen <ak@linux.intel.com>
550 * lto-plugin.c (sym_aux): Add.
551 (plugin_symtab): Remove slots. Add aux and id.
552 (parse_table_entry): Change to use aux instead of slots.
553 (LTO_SECTION_PREFIX): Add.
554 (translate): Improve buffer allocation. Change to append
555 symbols to existing out buffer.
556 (get_section): Remove.
557 (process_symtab): Add.
558 (free_2): Free symtab->aux.
559 (write_resolution): Handle aux instead of slots.
560 Print sub id to resolution file.
561 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
562 calls with call to process_symtab.
564 2010-07-22 Richard Guenther <rguenther@suse.de>
566 * Makefile.am: New copy_lto_plugin rule to install the plugin
568 * Makefile.in: Regenerated.
570 2010-05-21 Richard Guenther <rguenther@suse.de>
572 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
574 2010-05-07 Richard Guenther <rguenther@suse.de>
576 * lto-plugin.c (free_2): Do not free resolution_file.
577 (write_resolution): Check that we were passed a resolution file.
578 (all_symbols_read_handler): Adjust.
579 (cleanup_handler): Do not remove the resolution file.
580 (process_option): Handle -fresolution=.
582 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
585 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
586 * Makefile.in: Regenerate.
588 2010-04-23 Richard Guenther <rguenther@suse.de>
591 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
592 (translate): Likewise.
593 (all_symbols_read_handler): Likewise.
594 (claim_file_handler): Likewise.
595 (process_option): Likewise.
596 (add_output_files): Likewise. Remove filename length limit.
598 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
600 * Makefile.in: Regenerate.
601 * aclocal.m4: Regenerate.
603 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
606 * lto-plugin.c (cleanup_handler): Delete temporary output files.
608 2010-01-11 Richard Guenther <rguenther@suse.de>
611 * Makefile.am: Disable dependencies.
612 * Makefile.in: Regenerated.
614 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
617 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
620 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
623 * configure: Regenerated.
624 * Makefile.in: Likewise.
626 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
629 * lto-plugin.c (claim_file_handler): Print offsets in hex.
631 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
633 * lto-plugin.c (write_resolution): Assume resolution_file is set.
634 Print the symbol name.
635 (all_symbols_read_handler): Create a resolution file.
637 (cleanup_handler): Remove the resolution file.
638 (process_option): Drop the -resolution option.
640 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
642 * lto-plugin.c (temp_obj_dir_name): Remove.
643 (arguments_file_name): New.
644 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
645 (exec_lto_wrapper): Create arguments file with make_temp_file.
646 (cleanup_handler): Don't remove the temporary directory. Remove the
648 (onload): Don't create the temporary directory.
650 2009-11-04 Richard Guenther <rguenther@suse.de>
651 Rafael Avila de Espindola <espindola@google.com>
653 * lto-plugin.c (plugin_file_info): Remove temp field.
654 (cleanup_handler): Don't delete temporary objects.
655 (claim_file_handler): Don't create temporary objects.
657 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
659 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
661 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
664 * lto-plugin.c (claim_file_handler): Close files that we created.
666 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
668 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
671 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
674 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
675 * configure: Regenerate.
677 2009-10-26 Richard Guenther <rguenther@suse.de>
679 * configure.ac: Use AM_MAINTAINER_MODE.
680 * acinclude.m4: Remove.
681 * configure: Re-generate.
682 * Makefile.in: Likewise.
683 * aclocal.m4: Likewise.
685 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
688 * configure: Regenerate.
689 * configure.ac: Add AC_TYPE_UINT64_T.
691 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
693 * lto-plugin.c (message): New variable.
694 (check): New function.
695 (parse_table_entry, translate, write_resolution,add_output_files,
696 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
698 (cleanup_handler): Use check instead of assert. Remove the arguments
701 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
703 * lto-plugin.c (resolution_file): New.
704 (free_1): Update comment.
705 (free_2): Free resolution_file.
706 (write_resolution): Write resolution to specified file. Use the
707 syms array from the symbol table.
708 (all_symbols_read_handler): Delay call to free_1 past call to
710 (process_option): Add a -resolution option.
712 2009-10-13 Richard Guenther <rguenther@suse.de>
714 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
716 * Makefile.in: Regenerated.
718 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
720 * lto-plugin.c (add_input_library): New.
721 (all_symbols_read_handler): Use add_input_library for items that
723 (process_option): Fit in 80 columns.
724 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
726 2009-10-02 Diego Novillo <dnovillo@google.com>
728 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
729 and -D_FILE_OFFSET_BITS=64.
730 * configure.ac: Add AC_SYS_LARGEFILE.
731 * configure: Regenerate.
732 * Makefile.in: Regenerate.
733 * lto-plugin.c: Fix copyright boilerplate.
735 2009-10-02 Diego Novillo <dnovillo@google.com>
737 * Makefile.am (ACLOCAL_AMFLAGS): Define.
738 * aclocal.m4: Regenerate with aclocal-2.64
739 * acinclude.m4: Remove.
740 * Makefile.in: Regenerate with automake-1.11
741 * configure.ac (AC_PREREQ): Update to 2.64.
742 * configure: Regenerate.
744 2009-10-02 Diego Novillo <dnovillo@google.com>
746 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
747 and -D_FILE_OFFSET_BITS=64.
748 * configure.ac: Add AC_SYS_LARGEFILE.
749 * configure: Regenerate.
750 * Makefile.in: Regenerate.
751 * lto-plugin.c: Fix copyright boilerplate.
753 2009-10-02 Diego Novillo <dnovillo@google.com>
755 * Makefile.am (ACLOCAL_AMFLAGS): Define.
756 * aclocal.m4: Regenerate with aclocal-2.64
757 * acinclude.m4: Remove.
758 * Makefile.in: Regenerate with automake-1.11
759 * configure.ac (AC_PREREQ): Update to 2.64.
760 * configure: Regenerate.
762 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
764 * Makefile.am (liblto_plugin_la_SOURCES): Remove
765 $(top_srcdir)/../gcc/lto/common.c
766 * Makefile.in: Regenerate.
768 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
770 * lto-plugin.c (pass_through_items): New.
771 (num_pass_through_items): New.
772 (all_symbols_read_handler): Update to use the -pass-through option.
773 (process_option): Replace -libgcc with -pass-through.
775 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
777 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
778 register_cleanup to be set.
780 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
782 * Makefile.am: Remove all reference to ltosymtab.
783 * Makefile.in: Regenerate.
784 * lto-symtab.c: Remove.
786 2009-05-21 Diego Novillo <dnovillo@google.com>
788 * configure.ac: Remove call to AC_CHECK_GELF.
789 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
790 * acinclude.m4: Do not include ../config/libelf.m4
791 * Makefile.am (LIBELFLIBS): Define.
793 (AM_CPPFLAGS): Add $(LIBELFINC).
794 (ltosymtab_LDADD): Add $(LIBELFLIBS).
795 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
796 * lto-plugin.c: Always include <gelf.h>
797 * lto-symtab.c: Likewise.
798 * configure: Regenerate.
799 * Makefile.in: Regenerate.
801 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
803 * lto-plugin.c (libgcc_filename): New.
804 (all_symbols_read_handler): Pass libgcc to the linker.
805 (all_symbols_read_handler): Parse -libgcc
807 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
809 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
810 * Makefile.in: Regenerate.
811 * lto-plugin.c (add_output_files): Argument is now a FILE.
812 (exec_lto_wrapper): Use writeargv and pex.
814 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
817 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
818 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
821 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
823 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
825 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
827 * lto-plugin.c: Include libiberty.h.
828 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
831 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
833 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
836 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
838 * lto-plugin.c (plugin_file_info): Remove fd and elf.
839 (parse_table_entry): strdup entry->name and entry->comdat_key.
840 (free_1): Free name and comdat_key. Don't close the file. Don't call
842 (claim_file_handler): Always call elf_end.
844 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
846 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
847 -D_FILE_OFFSET_BITS=64
848 * Makefile.in: Regenerate
850 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
852 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
853 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
854 * Makefile.in: Regenerate.
855 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
856 * configure: Regenerate.
857 * configure.ac: Add AC_SUBST(target_noncanonical).
859 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
861 * lto-plugin.c: Include stdbool.h.
862 (debug, nop): Declare as bool.
864 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
866 * lto-plugin.c (nop): New.
867 (use_original_files): New.
868 (all_symbols_read_handler): Call use_original_files if nop is true.
869 (process_option): Parse the -nop option.
871 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
873 * lto-plugin.c (debug): New.
874 (exec_lto_wrapper): Print argv if debug is true.
875 (process_option): Process the -debug command line option.
877 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
879 * lto-plugin.c (process_option): The argument is now a single option,
880 not a space separated list.
882 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
884 * lto-plugin.c: Include sys/types.h and sys/wait.h
885 (output_files, num_output_files, lto_wrapper_argv,
886 lto_wrapper_num_args): New.
887 (free_2): Free output_files.
888 (write_resolution): Disable.
889 (add_output_files): New.
890 (exec_lto_wrapper): New.
891 (all_symbols_read_handler): Run lto-wrapper.
892 (claim_file_handler): Free lto_file.name and call elf_end.
893 (process_option): New.
895 2008-11-26 Rafael Espindola <espindola@google.com>
897 * lto-plugin.c (add_input_file): New.
898 (get_section): Return NULL if get_section fails.
899 (write_resolution): New.
900 (all_symbols_read_handler): Call add_input_file.
901 (claim_file_handler): Unlink the correct file.
902 (onload): Record add_input_file.
904 2008-09-23 Rafael Espindola <espindola@google.com>
906 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
907 Update the location of common.c.
908 * Makefile.in: Regenerate.
909 * common.c: Moved to gcc/lto.
910 * common.h: Moved to gcc/lto.
911 * lto-plugin.c: Update the location of common.h.
912 * lto-symtab.c: Update the location of common.h.
914 2008-09-23 Rafael Espindola <espindola@google.com>
916 * common.c: Include common.h.
917 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
919 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
922 2008-09-23 Rafael Espindola <espindola@google.com>
924 * lto-plugin.c (plugin_file_info): Add temp.
925 (cleanup_handler): Only delete temporary files.
926 (claim_file_handler): Initialize lto_file.temp.
928 2008-09-23 Rafael Espindola <espindola@google.com>
930 * plugin-api.h: Moved to include.
932 2008-09-23 Rafael Espindola <espindola@google.com>
934 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
937 2008-09-22 Rafael Espindola <espindola@google.com>
939 * plugin-api.h: Copy from binutils' cvs.
941 2008-09-22 Rafael Espindola <espindola@google.com>
943 * lto-symtab.c (get_symbols, add_symbols): Update signature.
944 * plugin-api.h: Copy from binutils' cvs.
946 2008-09-22 Rafael Espindola <espindola@google.com>
948 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
951 2008-09-10 Rafael Espindola <espindola@google.com>
953 * lto-plugin.c (onload): add missing break statements and asserts.
954 * lto-symtab.c (claim_file_handler): Make it static.
955 (all_symbols_read_handler): Make it static.
956 (all_file_handles): Make it static.
957 (num_file_handles): Make it static.
958 (register_claim_file): Make it static.
959 (register_object): Indent properly.
961 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
963 * Makefile.am (ltosymtab_LDADD): Add -lelf.
964 * Makefiel.in: Regenerate.
965 * lto-plugin.c: Include ar.h.
966 (claim_file_handler): Handle file->offset != 0.
967 * lto-symtab.c: Include gelf.h.
968 (all_file_handles): Change type.
969 (register_object): New.
970 (register_file): Add support for archives.
971 (resolve): Update to new type of all_file_handles.
972 (print): Update to new type of all_file_handles.
973 (free_all): Update to new type of all_file_handles.
974 (main): Update to new type of all_file_handles.
976 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
978 * lto-plugin.c (get_string_table): Remove.
979 (get_section): Use elf_strptr instead of get_string_table.
981 2008-09-08 Doug Kwan <dougkwan@google.com>
983 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
984 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
986 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
988 * Makefile.am (ltosymtab_SOURCES): add common.c.
989 (ltosymtab_CFLAGS): New.
990 (liblto_plugin_la_SOURCES): Add common.c.
991 * Makefile.in: Regenerate.
994 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
995 (plugin_symtab): New.
996 (plugin_file_info): New.
997 (register_all_symbols_read): New.
999 (claimed_files): New.
1000 (num_claimed_files): New.
1001 (translate): Don't drop the slot number.
1004 (all_symbols_read_handler): New.
1005 (claim_file_handler): Record every claimed file.
1006 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1008 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1009 (current_file_handle): Remove.
1010 (ld_plugin_all_symbols_read_handler): New.
1011 (plugin_handle): New.
1013 (all_file_handles): New.
1014 (num_file_handles): New.
1016 (register_all_symbols_read): New.
1017 (add_symbols): Don't print the symbols, just record them.
1018 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1020 (load_plugin): Use plugin_handle.
1021 (register_file): Add the file handle to all_file_handles.
1024 (unload_plugin): New.
1026 (main): Call all_symbols_read_handler and free resources.
1028 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1030 * Makefile.am (AM_CFLAGS): New.
1031 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1032 (lib_LTLIBRARIES): New.
1033 (liblto_plugin_la_SOURCES): New.
1034 (liblto_plugin_la_LIBADD): New.
1035 * Makefile.in: Regenerate.
1036 * acinclude.m4: Don't include ../config/acx.m4 and
1037 ../config/no-executables.m4.
1038 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1040 * aclocal.m4: Regenerate.
1041 * configure: Regenerate.
1042 * configure.ac: Use AM_PROG_LIBTOOL.
1043 * lto-plugin.c: New.
1044 * lto-symtab.c: Rewrite to use the plugin.
1045 * plugin-api.h: New.
1047 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1049 * configure: Regenerate.
1050 * configure.ac: Use AC_CHECK_GELF.
1051 * lto-symtab.c: Include gelf.h.
1052 (get_string_table): Use size independent API.
1053 (printTable): Use lld to print 64 bit integers.
1055 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1057 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1058 entry->visibility are valid.
1060 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1061 * lto-symtab.c (table_entry): Add comdat.
1062 (parse_table_entry): Read comdat.
1064 2008-08-21 Rafael Espindola <espindola@google.com>
1068 * acinclude.m4: New.
1071 * configure.ac: New.
1072 * lto-symtab.c: New.