1 2018-07-26 Release Manager
5 2018-05-02 Release Manager
9 2018-04-18 David Malcolm <dmalcolm@redhat.com>
12 * configure: Regenerate.
14 2018-01-03 Jakub Jelinek <jakub@redhat.com>
16 Update copyright years.
18 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
21 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
23 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
25 2017-01-17 Jakub Jelinek <jakub@redhat.com>
28 * configure.ac: Add GCC_BASE_VER.
29 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
30 get version from BASE-VER file.
31 * configure: Regenerated.
32 * Makefile.in: Regenerated.
34 2017-01-04 Jakub Jelinek <jakub@redhat.com>
36 Update copyright years.
38 2016-11-15 Matthias Klose <doko@ubuntu.com>
40 * configure: Regenerate.
42 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
45 * lto-plugin.c (struct plugin_offload_file): New.
46 (offload_files): Change type.
47 (offload_files_last, offload_files_last_obj): New.
48 (offload_files_last_lto): New.
49 (free_2): Adjust accordingly.
50 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
51 Don't call free_1 for offload_files. Write names of object files with
52 offloading to the temporary file. Add new option to lto_arg_ptr.
53 (claim_file_handler): Don't claim file if it contains offload sections
54 without LTO sections. If it contains offload sections, add to the list.
56 2016-01-15 Martin Liska <mliska@suse.cz>
58 * lto-plugin.c (all_symbols_read_handler): Assign default
59 value to a string variable.
61 2015-11-25 Jan Hubicka <jh@suse.cz>
64 * lto-plugin.c (linker_output, linker_output_set): New statics.
65 (all_symbols_read_handler): Add -flinker-output option.
66 (onload): Record linker_output info.
68 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
70 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
71 * configure: Regenerate.
74 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
76 * Makefile.am: Drop 'by automake version' from top-level comment.
77 * Makefile.in: Regenerated with automake-1.11.6.
78 * aclocal.m4: Likewise.
79 * configure: Likewise.
81 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
83 * lto-plugin.c (release_input_file): Removed.
84 (claim_file_handler): Don't call release_input_file.
85 (onload): Don't set release_input_file.
87 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
89 * lto-plugin.c (claim_file_handler): Pass handle to
92 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
94 * lto-plugin.c (claim_file_handler): Call release_input_file only
97 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
99 * lto-plugin.c (claim_file_handler): Call release_input_file only
102 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
105 * lto-plugin.c (release_input_file): New.
106 (claim_file_handler): Call release_input_file.
107 (onload): Set release_input_file.
109 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
111 * lto-plugin.c (offload_files, num_offload_files): New static variables.
112 (free_1): Use arguments instead of global variables.
113 (free_2): Free offload_files.
114 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
116 (claim_file_handler): Do not add file to claimed_files if it contains
117 offload sections without LTO sections. Add it to offload_files instead.
119 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
122 * configure: Regenerated.
124 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
125 Bernd Schmidt <bernds@codesourcery.com>
126 Andrey Turetskiy <andrey.turetskiy@intel.com>
127 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
129 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
130 (struct plugin_objfile): Add new field "offload".
131 (process_offload_section): New static function.
132 (claim_file_handler): Claim file if it contains offload sections.
134 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
135 Thomas Schwinge <thomas@codesourcery.com>
136 Ilya Verbin <ilya.verbin@intel.com>
137 Andrey Turetskiy <andrey.turetskiy@intel.com>
139 * Makefile.am (libexecsubdir): Tweak for the possibility of being
140 configured for offload compiler.
141 (accel_dir_suffix, real_target_noncanonical): New variables substituted
143 * Makefile.in: Regenerate.
144 * configure: Regenerate.
145 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
148 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
151 * configure: Regenerate.
153 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
156 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
157 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
159 * Makefile.in: Regenerated.
160 * configure: Likewise.
162 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
164 * configure.ac (--with-libiberty): New configure option.
165 * configure: Regenerate.
166 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
168 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
169 (liblto_plugin_la_DEPENDENCIES): Use them.
170 * Makefile.in: Regenerate.
172 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
175 * configure.ac: Check for -static-libgcc.
176 * configure: Regenerate.
178 2014-04-17 Jakub Jelinek <jakub@redhat.com>
181 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
182 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
183 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
184 over ../libiberty/pic/libiberty.a if the former exists.
185 * Makefile.in: Regenerated.
188 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
189 * Makefile.in: Regenerated.
191 2014-04-02 Richard Biener <rguenther@suse.de>
193 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
194 is set in COLLECT_GCC_OPTIONS.
196 2014-03-28 Richard Biener <rguenther@suse.de>
198 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
200 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
202 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
204 * configure: Regenerate.
205 * Makefile.am (AM_LDFLAGS): New variable.
206 (liblto_plugin_la_LDFLAGS): Add it.
207 * Makefile.in: Regenerate.
209 2013-09-20 Alan Modra <amodra@gmail.com>
211 * configure: Regenerate.
213 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
215 * configure: Regenerated.
217 2012-05-29 Joseph Myers <joseph@codesourcery.com>
219 * lto-plugin.c: Fix typo.
221 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
223 * configure: Regenerated.
225 2012-02-22 Kai Tietz <ktietz@redhat.com>
228 * lto-plugin.c (PRI_LL): New macro.
229 (dump_symtab): Use PRI_LL instead of ll in print.
230 (process_symtab): Use PRI_LL instead of ll in scan.
232 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
234 * configure: Regenerate.
236 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
238 * configure: Regenerate.
240 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
242 * configure: Regenerate.
244 2011-10-02 Jan Hubicka <jh@suse.cz>
247 * lto-plugin.c (get_symbols_v2): New variable.
248 (write_resolution): Use V2 API when available.
249 (onload): Handle LDPT_GET_SYMBOLS_V2.
251 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
252 Andi Kleen <ak@linux.intel.com>
255 * lto-plugin.c (sym_aux): Change id to unsigned long long.
256 (plugin_symtab): Likewise.
257 (dump_symtab): Likewise.
258 (resolve_conflicts): Likewise.
259 (process_symtab): Likewise.
261 2011-08-10 Richard Guenther <rguenther@suse.de>
265 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
266 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
267 * configure: Regenerate.
268 * Makefile.in: Likewise.
269 * aclocal.m4: Likewise.
271 2011-04-20 Jim Meyering <meyering@redhat.com>
273 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
275 2011-04-05 Richard Guenther <rguenther@suse.de>
278 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
280 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
282 * Makefile.in: Regenerate.
283 * aclocal.m4: Regenerate.
284 * configure: Regenerate.
286 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
288 * Makefile.am (all-local): Rename from 'all'.
289 * Makefile.in: Regenerate.
291 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
294 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
295 (liblto_plugin_la_LDFLAGS): Add -module.
296 (copy_lto_plugin): Renamed to...
297 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
299 * Makefile.in: Rebuild.
301 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
304 * Makefile.am (Wc): New helper for encoding -Wc,.
305 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
306 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
307 * Makefile.in: Regenerated.
309 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
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-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-01-25 Ian Lance Taylor <iant@google.com>
329 * lto-plugin.c (gold_version): New static variable.
330 (all_symbols_read_handler): Don't check pass_through_items if
331 using gold 1.11 or later.
332 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
334 2011-01-12 Richard Guenther <rguenther@suse.de>
337 * lto-plugin.c (parse_table_entry): Use memcpy to access
340 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
342 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
343 * Makefile.in: Regenerate.
345 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
349 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
351 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
352 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
353 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
354 * Makefile.in: Regenerate.
356 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
360 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
361 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
362 * configure: Regenerate.
363 * config.h.in: Likewise.
365 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
369 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
370 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
371 override -bindir setting.
372 * aclocal.m4: Regenerate.
373 * configure: Regenerate.
374 * Makefile.in: Regenerate.
376 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
378 * config.h.in: Regenerated.
379 * configure: Regenerated.
380 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
381 * lto-plugin.c (WIFEXITED): Define default.
382 (WEXITSTATUS): Likeiwse.
384 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
386 * config.h.in: Regenerated.
387 * configure: Regenerated.
388 * Makefile.in: Regenerated.
389 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
390 * lto-plugin.c: Include sys/wait.h conditionally.
391 * aclocal.m4: Regenerated.
393 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
395 * lto-plugin.c (add_output_files): Fix memory leak.
397 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
401 * configure.ac: Add AC_TYPE_INT64_T test.
402 * config.h.in: Regenerate.
403 * configure: Likewise.
404 * lto-plugin.c (debug): Use char not bool.
406 (check_1): Rename from check, and use int not bool for gate argument.
407 (check): Macro wrapper for the above to coerce gate argument into
408 boolean-valued integer in case it has pointer type.
409 (parse_table_entry): Use 0 not false.
410 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
411 into two 32-bit parts and printing as hex ints.
413 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
416 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
418 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
421 * lto-plugin.h: Delete.
422 * lto-plugin-elf.c: Likewise.
423 * lto-plugin-coff.c: Likewise.
424 * configure.ac: Don't use libelf, don't source config.gcc.
425 (LIBELFLIBS): Delete.
427 (LTO_FORMAT): Delete.
428 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
429 (config.h): Add AC_CONFIG_HEADERS directive.
430 * Makefile.am (LIBELFLIBS): Delete.
432 (LTO_FORMAT): Delete.
434 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
435 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
436 any object-format-specific source file in the link.
437 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
438 * config.h.in: Generate.
439 * configure: Regenerate.
440 * Makefile.in: Likewise.
441 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
442 (LTO_SEGMENT_NAME): New definition.
443 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
444 (LTO_SECTION_PREFIX_LEN): New definition.
445 (struct sym_aux): Struct definition moved here from lto-plugin.h.
446 (struct plugin_symtab): Likewise.
447 (struct plugin_objfile): Likewise.
448 (struct plugin_objfile): New struct def.
449 (enum symbol_style): New enum type.
450 (add_symbols): Make static.
451 (claimed_files): Likewise.
452 (num_claimed_files): Likewise.
453 (sym_style): New global.
454 (check): Make static.
455 (parse_table_entry): Likewise. Respect sym_style when extracting
456 symbol from symtab entry.
457 (translate): Make static.
458 (resolve_conflicts): Likewise.
459 (process_symtab): New function, per-section callback version of
460 old object-format-specific handling from deleted lto-plugin-elf.c.
461 (claim_file_handler): Convert ELF-specific version from deleted
462 lto-plugin-elf.c to simple_object interface and move here.
463 (process_options): Allow new '-sym-style=' option.
464 (onload): Don't call deleted onload_format_checks hook.
466 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
468 * lto-plugin.c (dump_symtab): Correct printf argument type.
469 (finish_conflict_resolution): Initialize resolution.
471 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
474 * configure.ac: Add AC_CANONICAL_SYSTEM.
475 * configure: Regenerated.
477 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
479 * configure.ac: Source config.gcc to determine lto_binary_reader.
480 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
481 * Makefile.am (LTO_FORMAT): Import.
482 (liblto_plugin_la_SOURCES): Add object format dependent module
483 defined by LTO_FORMAT.
484 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
485 and work around libtool warning.
486 * configure: Regenerate.
487 * Makefile.in: Likewise.
488 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
489 (struct sym_aux): Likewise.
490 (struct plugin_symtab): Likewise.
491 (struct plugin_file_info): Likewise.
492 (LTO_SECTION_PREFIX): Likewise.
493 (add_symbols): Make non-static.
494 (claimed_files): Likewise.
495 (num_claimed_files): Likewise.
497 (parse_table_entry): Likewise.
498 (translate): Likewise.
499 (resolve_conflicts): Likewise.
500 (process_symtab): Move to new lto-plugin-elf.c object format dependent
502 (claim_file_handler): Likewise, and make non-static.
503 (onload): Call new onload_format_checks function.
504 * lto-plugin.h: New file.
505 (LTO_SECTION_PREFIX): Move here.
506 (struct sym_aux): Likewise.
507 (struct plugin_symtab): Likewise.
508 (struct plugin_file_info): Likewise.
509 (claim_file_handler): Add new function prototype.
510 (onload_format_checks): Likewise.
511 (check): Declare extern.
512 (translate): Likewise.
513 (parse_table_entry): Likewise.
514 (resolve_conflicts): Likewise.
515 (add_symbols): Likewise.
516 (claimed_files): Likewise.
517 (num_claimed_files): Likewise.
518 * lto-plugin-elf.c (process_symtab): Move here.
519 (claim_file_handler): Likewise, and make non-static.
520 (onload_format_checks): New function factored out from onload.
521 * lto-plugin-coff.c (claim_file_handler): New function stub.
522 (onload_format_checks): Likewise.
524 2010-08-05 Andi Kleen <ak@linux.intel.com>
526 * lto-plugin.c: Include <hashtab.h>
527 (sym_aux): Add next_conflict field to save conflict chains.
528 (plugin_file_info): Add conflicts symtab.
529 (parse_table_entry): Initialize aux->next_conflict.
530 (process_symtab): Increment found.
532 (finish_conflict_resolution): Add.
534 (write_resolution): Remove symbols loop and move into
535 dump_symtab. Call dump_symtab for main symbol and conflicts table.
536 Call free_symtab to free conflicts table.
540 (symbol_strength): Add.
541 (resolve_conflicts): Add.
542 (claim_file_handler): Add n variable. Check return value of
543 process_symtab. Call resolve_conflicts.
545 2010-07-27 Andi Kleen <ak@linux.intel.com>
547 * lto-plugin.c (translate): Remove debug fprintf.
549 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
552 * lto-plugin.c (translate): Cast to unsigned long.
554 2010-07-23 Andi Kleen <ak@linux.intel.com>
557 * lto-plugin.c (sym_aux): Add.
558 (plugin_symtab): Remove slots. Add aux and id.
559 (parse_table_entry): Change to use aux instead of slots.
560 (LTO_SECTION_PREFIX): Add.
561 (translate): Improve buffer allocation. Change to append
562 symbols to existing out buffer.
563 (get_section): Remove.
564 (process_symtab): Add.
565 (free_2): Free symtab->aux.
566 (write_resolution): Handle aux instead of slots.
567 Print sub id to resolution file.
568 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
569 calls with call to process_symtab.
571 2010-07-22 Richard Guenther <rguenther@suse.de>
573 * Makefile.am: New copy_lto_plugin rule to install the plugin
575 * Makefile.in: Regenerated.
577 2010-05-21 Richard Guenther <rguenther@suse.de>
579 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
581 2010-05-07 Richard Guenther <rguenther@suse.de>
583 * lto-plugin.c (free_2): Do not free resolution_file.
584 (write_resolution): Check that we were passed a resolution file.
585 (all_symbols_read_handler): Adjust.
586 (cleanup_handler): Do not remove the resolution file.
587 (process_option): Handle -fresolution=.
589 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
592 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
593 * Makefile.in: Regenerate.
595 2010-04-23 Richard Guenther <rguenther@suse.de>
598 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
599 (translate): Likewise.
600 (all_symbols_read_handler): Likewise.
601 (claim_file_handler): Likewise.
602 (process_option): Likewise.
603 (add_output_files): Likewise. Remove filename length limit.
605 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
607 * Makefile.in: Regenerate.
608 * aclocal.m4: Regenerate.
610 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
613 * lto-plugin.c (cleanup_handler): Delete temporary output files.
615 2010-01-11 Richard Guenther <rguenther@suse.de>
618 * Makefile.am: Disable dependencies.
619 * Makefile.in: Regenerated.
621 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
624 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
627 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
630 * configure: Regenerated.
631 * Makefile.in: Likewise.
633 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
636 * lto-plugin.c (claim_file_handler): Print offsets in hex.
638 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
640 * lto-plugin.c (write_resolution): Assume resolution_file is set.
641 Print the symbol name.
642 (all_symbols_read_handler): Create a resolution file.
644 (cleanup_handler): Remove the resolution file.
645 (process_option): Drop the -resolution option.
647 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
649 * lto-plugin.c (temp_obj_dir_name): Remove.
650 (arguments_file_name): New.
651 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
652 (exec_lto_wrapper): Create arguments file with make_temp_file.
653 (cleanup_handler): Don't remove the temporary directory. Remove the
655 (onload): Don't create the temporary directory.
657 2009-11-04 Richard Guenther <rguenther@suse.de>
658 Rafael Avila de Espindola <espindola@google.com>
660 * lto-plugin.c (plugin_file_info): Remove temp field.
661 (cleanup_handler): Don't delete temporary objects.
662 (claim_file_handler): Don't create temporary objects.
664 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
666 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
668 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
671 * lto-plugin.c (claim_file_handler): Close files that we created.
673 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
675 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
678 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
681 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
682 * configure: Regenerate.
684 2009-10-26 Richard Guenther <rguenther@suse.de>
686 * configure.ac: Use AM_MAINTAINER_MODE.
687 * acinclude.m4: Remove.
688 * configure: Re-generate.
689 * Makefile.in: Likewise.
690 * aclocal.m4: Likewise.
692 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
695 * configure: Regenerate.
696 * configure.ac: Add AC_TYPE_UINT64_T.
698 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
700 * lto-plugin.c (message): New variable.
701 (check): New function.
702 (parse_table_entry, translate, write_resolution,add_output_files,
703 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
705 (cleanup_handler): Use check instead of assert. Remove the arguments
708 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
710 * lto-plugin.c (resolution_file): New.
711 (free_1): Update comment.
712 (free_2): Free resolution_file.
713 (write_resolution): Write resolution to specified file. Use the
714 syms array from the symbol table.
715 (all_symbols_read_handler): Delay call to free_1 past call to
717 (process_option): Add a -resolution option.
719 2009-10-13 Richard Guenther <rguenther@suse.de>
721 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
723 * Makefile.in: Regenerated.
725 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
727 * lto-plugin.c (add_input_library): New.
728 (all_symbols_read_handler): Use add_input_library for items that
730 (process_option): Fit in 80 columns.
731 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
733 2009-10-02 Diego Novillo <dnovillo@google.com>
735 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
736 and -D_FILE_OFFSET_BITS=64.
737 * configure.ac: Add AC_SYS_LARGEFILE.
738 * configure: Regenerate.
739 * Makefile.in: Regenerate.
740 * lto-plugin.c: Fix copyright boilerplate.
742 2009-10-02 Diego Novillo <dnovillo@google.com>
744 * Makefile.am (ACLOCAL_AMFLAGS): Define.
745 * aclocal.m4: Regenerate with aclocal-2.64
746 * acinclude.m4: Remove.
747 * Makefile.in: Regenerate with automake-1.11
748 * configure.ac (AC_PREREQ): Update to 2.64.
749 * configure: Regenerate.
751 2009-10-02 Diego Novillo <dnovillo@google.com>
753 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
754 and -D_FILE_OFFSET_BITS=64.
755 * configure.ac: Add AC_SYS_LARGEFILE.
756 * configure: Regenerate.
757 * Makefile.in: Regenerate.
758 * lto-plugin.c: Fix copyright boilerplate.
760 2009-10-02 Diego Novillo <dnovillo@google.com>
762 * Makefile.am (ACLOCAL_AMFLAGS): Define.
763 * aclocal.m4: Regenerate with aclocal-2.64
764 * acinclude.m4: Remove.
765 * Makefile.in: Regenerate with automake-1.11
766 * configure.ac (AC_PREREQ): Update to 2.64.
767 * configure: Regenerate.
769 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
771 * Makefile.am (liblto_plugin_la_SOURCES): Remove
772 $(top_srcdir)/../gcc/lto/common.c
773 * Makefile.in: Regenerate.
775 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
777 * lto-plugin.c (pass_through_items): New.
778 (num_pass_through_items): New.
779 (all_symbols_read_handler): Update to use the -pass-through option.
780 (process_option): Replace -libgcc with -pass-through.
782 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
784 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
785 register_cleanup to be set.
787 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
789 * Makefile.am: Remove all reference to ltosymtab.
790 * Makefile.in: Regenerate.
791 * lto-symtab.c: Remove.
793 2009-05-21 Diego Novillo <dnovillo@google.com>
795 * configure.ac: Remove call to AC_CHECK_GELF.
796 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
797 * acinclude.m4: Do not include ../config/libelf.m4
798 * Makefile.am (LIBELFLIBS): Define.
800 (AM_CPPFLAGS): Add $(LIBELFINC).
801 (ltosymtab_LDADD): Add $(LIBELFLIBS).
802 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
803 * lto-plugin.c: Always include <gelf.h>
804 * lto-symtab.c: Likewise.
805 * configure: Regenerate.
806 * Makefile.in: Regenerate.
808 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
810 * lto-plugin.c (libgcc_filename): New.
811 (all_symbols_read_handler): Pass libgcc to the linker.
812 (all_symbols_read_handler): Parse -libgcc
814 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
816 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
817 * Makefile.in: Regenerate.
818 * lto-plugin.c (add_output_files): Argument is now a FILE.
819 (exec_lto_wrapper): Use writeargv and pex.
821 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
824 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
825 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
828 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
830 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
832 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
834 * lto-plugin.c: Include libiberty.h.
835 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
838 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
840 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
843 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
845 * lto-plugin.c (plugin_file_info): Remove fd and elf.
846 (parse_table_entry): strdup entry->name and entry->comdat_key.
847 (free_1): Free name and comdat_key. Don't close the file. Don't call
849 (claim_file_handler): Always call elf_end.
851 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
853 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
854 -D_FILE_OFFSET_BITS=64
855 * Makefile.in: Regenerate
857 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
859 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
860 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
861 * Makefile.in: Regenerate.
862 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
863 * configure: Regenerate.
864 * configure.ac: Add AC_SUBST(target_noncanonical).
866 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
868 * lto-plugin.c: Include stdbool.h.
869 (debug, nop): Declare as bool.
871 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
873 * lto-plugin.c (nop): New.
874 (use_original_files): New.
875 (all_symbols_read_handler): Call use_original_files if nop is true.
876 (process_option): Parse the -nop option.
878 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
880 * lto-plugin.c (debug): New.
881 (exec_lto_wrapper): Print argv if debug is true.
882 (process_option): Process the -debug command line option.
884 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
886 * lto-plugin.c (process_option): The argument is now a single option,
887 not a space separated list.
889 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
891 * lto-plugin.c: Include sys/types.h and sys/wait.h
892 (output_files, num_output_files, lto_wrapper_argv,
893 lto_wrapper_num_args): New.
894 (free_2): Free output_files.
895 (write_resolution): Disable.
896 (add_output_files): New.
897 (exec_lto_wrapper): New.
898 (all_symbols_read_handler): Run lto-wrapper.
899 (claim_file_handler): Free lto_file.name and call elf_end.
900 (process_option): New.
902 2008-11-26 Rafael Espindola <espindola@google.com>
904 * lto-plugin.c (add_input_file): New.
905 (get_section): Return NULL if get_section fails.
906 (write_resolution): New.
907 (all_symbols_read_handler): Call add_input_file.
908 (claim_file_handler): Unlink the correct file.
909 (onload): Record add_input_file.
911 2008-09-23 Rafael Espindola <espindola@google.com>
913 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
914 Update the location of common.c.
915 * Makefile.in: Regenerate.
916 * common.c: Moved to gcc/lto.
917 * common.h: Moved to gcc/lto.
918 * lto-plugin.c: Update the location of common.h.
919 * lto-symtab.c: Update the location of common.h.
921 2008-09-23 Rafael Espindola <espindola@google.com>
923 * common.c: Include common.h.
924 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
926 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
929 2008-09-23 Rafael Espindola <espindola@google.com>
931 * lto-plugin.c (plugin_file_info): Add temp.
932 (cleanup_handler): Only delete temporary files.
933 (claim_file_handler): Initialize lto_file.temp.
935 2008-09-23 Rafael Espindola <espindola@google.com>
937 * plugin-api.h: Moved to include.
939 2008-09-23 Rafael Espindola <espindola@google.com>
941 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
944 2008-09-22 Rafael Espindola <espindola@google.com>
946 * plugin-api.h: Copy from binutils' cvs.
948 2008-09-22 Rafael Espindola <espindola@google.com>
950 * lto-symtab.c (get_symbols, add_symbols): Update signature.
951 * plugin-api.h: Copy from binutils' cvs.
953 2008-09-22 Rafael Espindola <espindola@google.com>
955 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
958 2008-09-10 Rafael Espindola <espindola@google.com>
960 * lto-plugin.c (onload): add missing break statements and asserts.
961 * lto-symtab.c (claim_file_handler): Make it static.
962 (all_symbols_read_handler): Make it static.
963 (all_file_handles): Make it static.
964 (num_file_handles): Make it static.
965 (register_claim_file): Make it static.
966 (register_object): Indent properly.
968 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
970 * Makefile.am (ltosymtab_LDADD): Add -lelf.
971 * Makefiel.in: Regenerate.
972 * lto-plugin.c: Include ar.h.
973 (claim_file_handler): Handle file->offset != 0.
974 * lto-symtab.c: Include gelf.h.
975 (all_file_handles): Change type.
976 (register_object): New.
977 (register_file): Add support for archives.
978 (resolve): Update to new type of all_file_handles.
979 (print): Update to new type of all_file_handles.
980 (free_all): Update to new type of all_file_handles.
981 (main): Update to new type of all_file_handles.
983 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
985 * lto-plugin.c (get_string_table): Remove.
986 (get_section): Use elf_strptr instead of get_string_table.
988 2008-09-08 Doug Kwan <dougkwan@google.com>
990 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
991 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
993 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
995 * Makefile.am (ltosymtab_SOURCES): add common.c.
996 (ltosymtab_CFLAGS): New.
997 (liblto_plugin_la_SOURCES): Add common.c.
998 * Makefile.in: Regenerate.
1001 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1002 (plugin_symtab): New.
1003 (plugin_file_info): New.
1004 (register_all_symbols_read): New.
1006 (claimed_files): New.
1007 (num_claimed_files): New.
1008 (translate): Don't drop the slot number.
1011 (all_symbols_read_handler): New.
1012 (claim_file_handler): Record every claimed file.
1013 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1015 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1016 (current_file_handle): Remove.
1017 (ld_plugin_all_symbols_read_handler): New.
1018 (plugin_handle): New.
1020 (all_file_handles): New.
1021 (num_file_handles): New.
1023 (register_all_symbols_read): New.
1024 (add_symbols): Don't print the symbols, just record them.
1025 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1027 (load_plugin): Use plugin_handle.
1028 (register_file): Add the file handle to all_file_handles.
1031 (unload_plugin): New.
1033 (main): Call all_symbols_read_handler and free resources.
1035 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1037 * Makefile.am (AM_CFLAGS): New.
1038 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1039 (lib_LTLIBRARIES): New.
1040 (liblto_plugin_la_SOURCES): New.
1041 (liblto_plugin_la_LIBADD): New.
1042 * Makefile.in: Regenerate.
1043 * acinclude.m4: Don't include ../config/acx.m4 and
1044 ../config/no-executables.m4.
1045 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1047 * aclocal.m4: Regenerate.
1048 * configure: Regenerate.
1049 * configure.ac: Use AM_PROG_LIBTOOL.
1050 * lto-plugin.c: New.
1051 * lto-symtab.c: Rewrite to use the plugin.
1052 * plugin-api.h: New.
1054 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1056 * configure: Regenerate.
1057 * configure.ac: Use AC_CHECK_GELF.
1058 * lto-symtab.c: Include gelf.h.
1059 (get_string_table): Use size independent API.
1060 (printTable): Use lld to print 64 bit integers.
1062 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1064 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1065 entry->visibility are valid.
1067 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1068 * lto-symtab.c (table_entry): Add comdat.
1069 (parse_table_entry): Read comdat.
1071 2008-08-21 Rafael Espindola <espindola@google.com>
1075 * acinclude.m4: New.
1078 * configure.ac: New.
1079 * lto-symtab.c: New.