1 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4 * configure.ac: Add GCC_BASE_VER.
5 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
6 get version from BASE-VER file.
7 * configure: Regenerated.
8 * Makefile.in: Regenerated.
10 2017-01-04 Jakub Jelinek <jakub@redhat.com>
12 Update copyright years.
14 2016-11-15 Matthias Klose <doko@ubuntu.com>
16 * configure: Regenerate.
18 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
21 * lto-plugin.c (struct plugin_offload_file): New.
22 (offload_files): Change type.
23 (offload_files_last, offload_files_last_obj): New.
24 (offload_files_last_lto): New.
25 (free_2): Adjust accordingly.
26 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
27 Don't call free_1 for offload_files. Write names of object files with
28 offloading to the temporary file. Add new option to lto_arg_ptr.
29 (claim_file_handler): Don't claim file if it contains offload sections
30 without LTO sections. If it contains offload sections, add to the list.
32 2016-01-15 Martin Liska <mliska@suse.cz>
34 * lto-plugin.c (all_symbols_read_handler): Assign default
35 value to a string variable.
37 2015-11-25 Jan Hubicka <jh@suse.cz>
40 * lto-plugin.c (linker_output, linker_output_set): New statics.
41 (all_symbols_read_handler): Add -flinker-output option.
42 (onload): Record linker_output info.
44 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
46 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
47 * configure: Regenerate.
50 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
52 * Makefile.am: Drop 'by automake version' from top-level comment.
53 * Makefile.in: Regenerated with automake-1.11.6.
54 * aclocal.m4: Likewise.
55 * configure: Likewise.
57 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
59 * lto-plugin.c (release_input_file): Removed.
60 (claim_file_handler): Don't call release_input_file.
61 (onload): Don't set release_input_file.
63 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
65 * lto-plugin.c (claim_file_handler): Pass handle to
68 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
70 * lto-plugin.c (claim_file_handler): Call release_input_file only
73 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
75 * lto-plugin.c (claim_file_handler): Call release_input_file only
78 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
81 * lto-plugin.c (release_input_file): New.
82 (claim_file_handler): Call release_input_file.
83 (onload): Set release_input_file.
85 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
87 * lto-plugin.c (offload_files, num_offload_files): New static variables.
88 (free_1): Use arguments instead of global variables.
89 (free_2): Free offload_files.
90 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
92 (claim_file_handler): Do not add file to claimed_files if it contains
93 offload sections without LTO sections. Add it to offload_files instead.
95 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
98 * configure: Regenerated.
100 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
101 Bernd Schmidt <bernds@codesourcery.com>
102 Andrey Turetskiy <andrey.turetskiy@intel.com>
103 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
105 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
106 (struct plugin_objfile): Add new field "offload".
107 (process_offload_section): New static function.
108 (claim_file_handler): Claim file if it contains offload sections.
110 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
111 Thomas Schwinge <thomas@codesourcery.com>
112 Ilya Verbin <ilya.verbin@intel.com>
113 Andrey Turetskiy <andrey.turetskiy@intel.com>
115 * Makefile.am (libexecsubdir): Tweak for the possibility of being
116 configured for offload compiler.
117 (accel_dir_suffix, real_target_noncanonical): New variables substituted
119 * Makefile.in: Regenerate.
120 * configure: Regenerate.
121 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
124 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
127 * configure: Regenerate.
129 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
132 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
133 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
135 * Makefile.in: Regenerated.
136 * configure: Likewise.
138 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
140 * configure.ac (--with-libiberty): New configure option.
141 * configure: Regenerate.
142 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
144 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
145 (liblto_plugin_la_DEPENDENCIES): Use them.
146 * Makefile.in: Regenerate.
148 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
151 * configure.ac: Check for -static-libgcc.
152 * configure: Regenerate.
154 2014-04-17 Jakub Jelinek <jakub@redhat.com>
157 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
158 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
159 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
160 over ../libiberty/pic/libiberty.a if the former exists.
161 * Makefile.in: Regenerated.
164 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
165 * Makefile.in: Regenerated.
167 2014-04-02 Richard Biener <rguenther@suse.de>
169 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
170 is set in COLLECT_GCC_OPTIONS.
172 2014-03-28 Richard Biener <rguenther@suse.de>
174 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
176 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
178 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
180 * configure: Regenerate.
181 * Makefile.am (AM_LDFLAGS): New variable.
182 (liblto_plugin_la_LDFLAGS): Add it.
183 * Makefile.in: Regenerate.
185 2013-09-20 Alan Modra <amodra@gmail.com>
187 * configure: Regenerate.
189 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
191 * configure: Regenerated.
193 2012-05-29 Joseph Myers <joseph@codesourcery.com>
195 * lto-plugin.c: Fix typo.
197 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
199 * configure: Regenerated.
201 2012-02-22 Kai Tietz <ktietz@redhat.com>
204 * lto-plugin.c (PRI_LL): New macro.
205 (dump_symtab): Use PRI_LL instead of ll in print.
206 (process_symtab): Use PRI_LL instead of ll in scan.
208 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
210 * configure: Regenerate.
212 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
214 * configure: Regenerate.
216 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
218 * configure: Regenerate.
220 2011-10-02 Jan Hubicka <jh@suse.cz>
223 * lto-plugin.c (get_symbols_v2): New variable.
224 (write_resolution): Use V2 API when available.
225 (onload): Handle LDPT_GET_SYMBOLS_V2.
227 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
228 Andi Kleen <ak@linux.intel.com>
231 * lto-plugin.c (sym_aux): Change id to unsigned long long.
232 (plugin_symtab): Likewise.
233 (dump_symtab): Likewise.
234 (resolve_conflicts): Likewise.
235 (process_symtab): Likewise.
237 2011-08-10 Richard Guenther <rguenther@suse.de>
241 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
242 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
243 * configure: Regenerate.
244 * Makefile.in: Likewise.
245 * aclocal.m4: Likewise.
247 2011-04-20 Jim Meyering <meyering@redhat.com>
249 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
251 2011-04-05 Richard Guenther <rguenther@suse.de>
254 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
256 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
258 * Makefile.in: Regenerate.
259 * aclocal.m4: Regenerate.
260 * configure: Regenerate.
262 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
264 * Makefile.am (all-local): Rename from 'all'.
265 * Makefile.in: Regenerate.
267 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
270 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
271 (liblto_plugin_la_LDFLAGS): Add -module.
272 (copy_lto_plugin): Renamed to...
273 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
275 * Makefile.in: Rebuild.
277 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
280 * Makefile.am (Wc): New helper for encoding -Wc,.
281 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
282 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
283 * Makefile.in: Regenerated.
285 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
289 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
292 * Makefile.am (Wl): New helper for encoding -Wl,.
293 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
294 * Makefile.in: Regenerated.
296 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
299 * Makefile.am (Wl): New helper for encoding -Wl,.
300 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
301 * Makefile.in: Regenerated.
303 2011-01-25 Ian Lance Taylor <iant@google.com>
305 * lto-plugin.c (gold_version): New static variable.
306 (all_symbols_read_handler): Don't check pass_through_items if
307 using gold 1.11 or later.
308 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
310 2011-01-12 Richard Guenther <rguenther@suse.de>
313 * lto-plugin.c (parse_table_entry): Use memcpy to access
316 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
318 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
319 * Makefile.in: Regenerate.
321 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
325 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
327 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
328 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
329 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
330 * Makefile.in: Regenerate.
332 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
336 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
337 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
338 * configure: Regenerate.
339 * config.h.in: Likewise.
341 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
345 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
346 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
347 override -bindir setting.
348 * aclocal.m4: Regenerate.
349 * configure: Regenerate.
350 * Makefile.in: Regenerate.
352 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
354 * config.h.in: Regenerated.
355 * configure: Regenerated.
356 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
357 * lto-plugin.c (WIFEXITED): Define default.
358 (WEXITSTATUS): Likeiwse.
360 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
362 * config.h.in: Regenerated.
363 * configure: Regenerated.
364 * Makefile.in: Regenerated.
365 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
366 * lto-plugin.c: Include sys/wait.h conditionally.
367 * aclocal.m4: Regenerated.
369 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
371 * lto-plugin.c (add_output_files): Fix memory leak.
373 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
377 * configure.ac: Add AC_TYPE_INT64_T test.
378 * config.h.in: Regenerate.
379 * configure: Likewise.
380 * lto-plugin.c (debug): Use char not bool.
382 (check_1): Rename from check, and use int not bool for gate argument.
383 (check): Macro wrapper for the above to coerce gate argument into
384 boolean-valued integer in case it has pointer type.
385 (parse_table_entry): Use 0 not false.
386 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
387 into two 32-bit parts and printing as hex ints.
389 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
392 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
394 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
397 * lto-plugin.h: Delete.
398 * lto-plugin-elf.c: Likewise.
399 * lto-plugin-coff.c: Likewise.
400 * configure.ac: Don't use libelf, don't source config.gcc.
401 (LIBELFLIBS): Delete.
403 (LTO_FORMAT): Delete.
404 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
405 (config.h): Add AC_CONFIG_HEADERS directive.
406 * Makefile.am (LIBELFLIBS): Delete.
408 (LTO_FORMAT): Delete.
410 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
411 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
412 any object-format-specific source file in the link.
413 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
414 * config.h.in: Generate.
415 * configure: Regenerate.
416 * Makefile.in: Likewise.
417 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
418 (LTO_SEGMENT_NAME): New definition.
419 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
420 (LTO_SECTION_PREFIX_LEN): New definition.
421 (struct sym_aux): Struct definition moved here from lto-plugin.h.
422 (struct plugin_symtab): Likewise.
423 (struct plugin_objfile): Likewise.
424 (struct plugin_objfile): New struct def.
425 (enum symbol_style): New enum type.
426 (add_symbols): Make static.
427 (claimed_files): Likewise.
428 (num_claimed_files): Likewise.
429 (sym_style): New global.
430 (check): Make static.
431 (parse_table_entry): Likewise. Respect sym_style when extracting
432 symbol from symtab entry.
433 (translate): Make static.
434 (resolve_conflicts): Likewise.
435 (process_symtab): New function, per-section callback version of
436 old object-format-specific handling from deleted lto-plugin-elf.c.
437 (claim_file_handler): Convert ELF-specific version from deleted
438 lto-plugin-elf.c to simple_object interface and move here.
439 (process_options): Allow new '-sym-style=' option.
440 (onload): Don't call deleted onload_format_checks hook.
442 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
444 * lto-plugin.c (dump_symtab): Correct printf argument type.
445 (finish_conflict_resolution): Initialize resolution.
447 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
450 * configure.ac: Add AC_CANONICAL_SYSTEM.
451 * configure: Regenerated.
453 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
455 * configure.ac: Source config.gcc to determine lto_binary_reader.
456 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
457 * Makefile.am (LTO_FORMAT): Import.
458 (liblto_plugin_la_SOURCES): Add object format dependent module
459 defined by LTO_FORMAT.
460 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
461 and work around libtool warning.
462 * configure: Regenerate.
463 * Makefile.in: Likewise.
464 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
465 (struct sym_aux): Likewise.
466 (struct plugin_symtab): Likewise.
467 (struct plugin_file_info): Likewise.
468 (LTO_SECTION_PREFIX): Likewise.
469 (add_symbols): Make non-static.
470 (claimed_files): Likewise.
471 (num_claimed_files): Likewise.
473 (parse_table_entry): Likewise.
474 (translate): Likewise.
475 (resolve_conflicts): Likewise.
476 (process_symtab): Move to new lto-plugin-elf.c object format dependent
478 (claim_file_handler): Likewise, and make non-static.
479 (onload): Call new onload_format_checks function.
480 * lto-plugin.h: New file.
481 (LTO_SECTION_PREFIX): Move here.
482 (struct sym_aux): Likewise.
483 (struct plugin_symtab): Likewise.
484 (struct plugin_file_info): Likewise.
485 (claim_file_handler): Add new function prototype.
486 (onload_format_checks): Likewise.
487 (check): Declare extern.
488 (translate): Likewise.
489 (parse_table_entry): Likewise.
490 (resolve_conflicts): Likewise.
491 (add_symbols): Likewise.
492 (claimed_files): Likewise.
493 (num_claimed_files): Likewise.
494 * lto-plugin-elf.c (process_symtab): Move here.
495 (claim_file_handler): Likewise, and make non-static.
496 (onload_format_checks): New function factored out from onload.
497 * lto-plugin-coff.c (claim_file_handler): New function stub.
498 (onload_format_checks): Likewise.
500 2010-08-05 Andi Kleen <ak@linux.intel.com>
502 * lto-plugin.c: Include <hashtab.h>
503 (sym_aux): Add next_conflict field to save conflict chains.
504 (plugin_file_info): Add conflicts symtab.
505 (parse_table_entry): Initialize aux->next_conflict.
506 (process_symtab): Increment found.
508 (finish_conflict_resolution): Add.
510 (write_resolution): Remove symbols loop and move into
511 dump_symtab. Call dump_symtab for main symbol and conflicts table.
512 Call free_symtab to free conflicts table.
516 (symbol_strength): Add.
517 (resolve_conflicts): Add.
518 (claim_file_handler): Add n variable. Check return value of
519 process_symtab. Call resolve_conflicts.
521 2010-07-27 Andi Kleen <ak@linux.intel.com>
523 * lto-plugin.c (translate): Remove debug fprintf.
525 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
528 * lto-plugin.c (translate): Cast to unsigned long.
530 2010-07-23 Andi Kleen <ak@linux.intel.com>
533 * lto-plugin.c (sym_aux): Add.
534 (plugin_symtab): Remove slots. Add aux and id.
535 (parse_table_entry): Change to use aux instead of slots.
536 (LTO_SECTION_PREFIX): Add.
537 (translate): Improve buffer allocation. Change to append
538 symbols to existing out buffer.
539 (get_section): Remove.
540 (process_symtab): Add.
541 (free_2): Free symtab->aux.
542 (write_resolution): Handle aux instead of slots.
543 Print sub id to resolution file.
544 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
545 calls with call to process_symtab.
547 2010-07-22 Richard Guenther <rguenther@suse.de>
549 * Makefile.am: New copy_lto_plugin rule to install the plugin
551 * Makefile.in: Regenerated.
553 2010-05-21 Richard Guenther <rguenther@suse.de>
555 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
557 2010-05-07 Richard Guenther <rguenther@suse.de>
559 * lto-plugin.c (free_2): Do not free resolution_file.
560 (write_resolution): Check that we were passed a resolution file.
561 (all_symbols_read_handler): Adjust.
562 (cleanup_handler): Do not remove the resolution file.
563 (process_option): Handle -fresolution=.
565 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
568 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
569 * Makefile.in: Regenerate.
571 2010-04-23 Richard Guenther <rguenther@suse.de>
574 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
575 (translate): Likewise.
576 (all_symbols_read_handler): Likewise.
577 (claim_file_handler): Likewise.
578 (process_option): Likewise.
579 (add_output_files): Likewise. Remove filename length limit.
581 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
583 * Makefile.in: Regenerate.
584 * aclocal.m4: Regenerate.
586 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
589 * lto-plugin.c (cleanup_handler): Delete temporary output files.
591 2010-01-11 Richard Guenther <rguenther@suse.de>
594 * Makefile.am: Disable dependencies.
595 * Makefile.in: Regenerated.
597 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
600 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
603 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
606 * configure: Regenerated.
607 * Makefile.in: Likewise.
609 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
612 * lto-plugin.c (claim_file_handler): Print offsets in hex.
614 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
616 * lto-plugin.c (write_resolution): Assume resolution_file is set.
617 Print the symbol name.
618 (all_symbols_read_handler): Create a resolution file.
620 (cleanup_handler): Remove the resolution file.
621 (process_option): Drop the -resolution option.
623 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
625 * lto-plugin.c (temp_obj_dir_name): Remove.
626 (arguments_file_name): New.
627 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
628 (exec_lto_wrapper): Create arguments file with make_temp_file.
629 (cleanup_handler): Don't remove the temporary directory. Remove the
631 (onload): Don't create the temporary directory.
633 2009-11-04 Richard Guenther <rguenther@suse.de>
634 Rafael Avila de Espindola <espindola@google.com>
636 * lto-plugin.c (plugin_file_info): Remove temp field.
637 (cleanup_handler): Don't delete temporary objects.
638 (claim_file_handler): Don't create temporary objects.
640 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
642 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
644 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
647 * lto-plugin.c (claim_file_handler): Close files that we created.
649 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
651 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
654 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
657 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
658 * configure: Regenerate.
660 2009-10-26 Richard Guenther <rguenther@suse.de>
662 * configure.ac: Use AM_MAINTAINER_MODE.
663 * acinclude.m4: Remove.
664 * configure: Re-generate.
665 * Makefile.in: Likewise.
666 * aclocal.m4: Likewise.
668 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
671 * configure: Regenerate.
672 * configure.ac: Add AC_TYPE_UINT64_T.
674 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
676 * lto-plugin.c (message): New variable.
677 (check): New function.
678 (parse_table_entry, translate, write_resolution,add_output_files,
679 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
681 (cleanup_handler): Use check instead of assert. Remove the arguments
684 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
686 * lto-plugin.c (resolution_file): New.
687 (free_1): Update comment.
688 (free_2): Free resolution_file.
689 (write_resolution): Write resolution to specified file. Use the
690 syms array from the symbol table.
691 (all_symbols_read_handler): Delay call to free_1 past call to
693 (process_option): Add a -resolution option.
695 2009-10-13 Richard Guenther <rguenther@suse.de>
697 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
699 * Makefile.in: Regenerated.
701 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
703 * lto-plugin.c (add_input_library): New.
704 (all_symbols_read_handler): Use add_input_library for items that
706 (process_option): Fit in 80 columns.
707 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
709 2009-10-02 Diego Novillo <dnovillo@google.com>
711 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
712 and -D_FILE_OFFSET_BITS=64.
713 * configure.ac: Add AC_SYS_LARGEFILE.
714 * configure: Regenerate.
715 * Makefile.in: Regenerate.
716 * lto-plugin.c: Fix copyright boilerplate.
718 2009-10-02 Diego Novillo <dnovillo@google.com>
720 * Makefile.am (ACLOCAL_AMFLAGS): Define.
721 * aclocal.m4: Regenerate with aclocal-2.64
722 * acinclude.m4: Remove.
723 * Makefile.in: Regenerate with automake-1.11
724 * configure.ac (AC_PREREQ): Update to 2.64.
725 * configure: Regenerate.
727 2009-10-02 Diego Novillo <dnovillo@google.com>
729 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
730 and -D_FILE_OFFSET_BITS=64.
731 * configure.ac: Add AC_SYS_LARGEFILE.
732 * configure: Regenerate.
733 * Makefile.in: Regenerate.
734 * lto-plugin.c: Fix copyright boilerplate.
736 2009-10-02 Diego Novillo <dnovillo@google.com>
738 * Makefile.am (ACLOCAL_AMFLAGS): Define.
739 * aclocal.m4: Regenerate with aclocal-2.64
740 * acinclude.m4: Remove.
741 * Makefile.in: Regenerate with automake-1.11
742 * configure.ac (AC_PREREQ): Update to 2.64.
743 * configure: Regenerate.
745 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
747 * Makefile.am (liblto_plugin_la_SOURCES): Remove
748 $(top_srcdir)/../gcc/lto/common.c
749 * Makefile.in: Regenerate.
751 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
753 * lto-plugin.c (pass_through_items): New.
754 (num_pass_through_items): New.
755 (all_symbols_read_handler): Update to use the -pass-through option.
756 (process_option): Replace -libgcc with -pass-through.
758 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
760 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
761 register_cleanup to be set.
763 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
765 * Makefile.am: Remove all reference to ltosymtab.
766 * Makefile.in: Regenerate.
767 * lto-symtab.c: Remove.
769 2009-05-21 Diego Novillo <dnovillo@google.com>
771 * configure.ac: Remove call to AC_CHECK_GELF.
772 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
773 * acinclude.m4: Do not include ../config/libelf.m4
774 * Makefile.am (LIBELFLIBS): Define.
776 (AM_CPPFLAGS): Add $(LIBELFINC).
777 (ltosymtab_LDADD): Add $(LIBELFLIBS).
778 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
779 * lto-plugin.c: Always include <gelf.h>
780 * lto-symtab.c: Likewise.
781 * configure: Regenerate.
782 * Makefile.in: Regenerate.
784 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
786 * lto-plugin.c (libgcc_filename): New.
787 (all_symbols_read_handler): Pass libgcc to the linker.
788 (all_symbols_read_handler): Parse -libgcc
790 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
792 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
793 * Makefile.in: Regenerate.
794 * lto-plugin.c (add_output_files): Argument is now a FILE.
795 (exec_lto_wrapper): Use writeargv and pex.
797 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
800 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
801 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
804 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
806 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
808 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
810 * lto-plugin.c: Include libiberty.h.
811 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
814 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
816 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
819 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
821 * lto-plugin.c (plugin_file_info): Remove fd and elf.
822 (parse_table_entry): strdup entry->name and entry->comdat_key.
823 (free_1): Free name and comdat_key. Don't close the file. Don't call
825 (claim_file_handler): Always call elf_end.
827 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
829 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
830 -D_FILE_OFFSET_BITS=64
831 * Makefile.in: Regenerate
833 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
835 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
836 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
837 * Makefile.in: Regenerate.
838 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
839 * configure: Regenerate.
840 * configure.ac: Add AC_SUBST(target_noncanonical).
842 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
844 * lto-plugin.c: Include stdbool.h.
845 (debug, nop): Declare as bool.
847 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
849 * lto-plugin.c (nop): New.
850 (use_original_files): New.
851 (all_symbols_read_handler): Call use_original_files if nop is true.
852 (process_option): Parse the -nop option.
854 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
856 * lto-plugin.c (debug): New.
857 (exec_lto_wrapper): Print argv if debug is true.
858 (process_option): Process the -debug command line option.
860 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
862 * lto-plugin.c (process_option): The argument is now a single option,
863 not a space separated list.
865 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
867 * lto-plugin.c: Include sys/types.h and sys/wait.h
868 (output_files, num_output_files, lto_wrapper_argv,
869 lto_wrapper_num_args): New.
870 (free_2): Free output_files.
871 (write_resolution): Disable.
872 (add_output_files): New.
873 (exec_lto_wrapper): New.
874 (all_symbols_read_handler): Run lto-wrapper.
875 (claim_file_handler): Free lto_file.name and call elf_end.
876 (process_option): New.
878 2008-11-26 Rafael Espindola <espindola@google.com>
880 * lto-plugin.c (add_input_file): New.
881 (get_section): Return NULL if get_section fails.
882 (write_resolution): New.
883 (all_symbols_read_handler): Call add_input_file.
884 (claim_file_handler): Unlink the correct file.
885 (onload): Record add_input_file.
887 2008-09-23 Rafael Espindola <espindola@google.com>
889 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
890 Update the location of common.c.
891 * Makefile.in: Regenerate.
892 * common.c: Moved to gcc/lto.
893 * common.h: Moved to gcc/lto.
894 * lto-plugin.c: Update the location of common.h.
895 * lto-symtab.c: Update the location of common.h.
897 2008-09-23 Rafael Espindola <espindola@google.com>
899 * common.c: Include common.h.
900 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
902 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
905 2008-09-23 Rafael Espindola <espindola@google.com>
907 * lto-plugin.c (plugin_file_info): Add temp.
908 (cleanup_handler): Only delete temporary files.
909 (claim_file_handler): Initialize lto_file.temp.
911 2008-09-23 Rafael Espindola <espindola@google.com>
913 * plugin-api.h: Moved to include.
915 2008-09-23 Rafael Espindola <espindola@google.com>
917 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
920 2008-09-22 Rafael Espindola <espindola@google.com>
922 * plugin-api.h: Copy from binutils' cvs.
924 2008-09-22 Rafael Espindola <espindola@google.com>
926 * lto-symtab.c (get_symbols, add_symbols): Update signature.
927 * plugin-api.h: Copy from binutils' cvs.
929 2008-09-22 Rafael Espindola <espindola@google.com>
931 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
934 2008-09-10 Rafael Espindola <espindola@google.com>
936 * lto-plugin.c (onload): add missing break statements and asserts.
937 * lto-symtab.c (claim_file_handler): Make it static.
938 (all_symbols_read_handler): Make it static.
939 (all_file_handles): Make it static.
940 (num_file_handles): Make it static.
941 (register_claim_file): Make it static.
942 (register_object): Indent properly.
944 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
946 * Makefile.am (ltosymtab_LDADD): Add -lelf.
947 * Makefiel.in: Regenerate.
948 * lto-plugin.c: Include ar.h.
949 (claim_file_handler): Handle file->offset != 0.
950 * lto-symtab.c: Include gelf.h.
951 (all_file_handles): Change type.
952 (register_object): New.
953 (register_file): Add support for archives.
954 (resolve): Update to new type of all_file_handles.
955 (print): Update to new type of all_file_handles.
956 (free_all): Update to new type of all_file_handles.
957 (main): Update to new type of all_file_handles.
959 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
961 * lto-plugin.c (get_string_table): Remove.
962 (get_section): Use elf_strptr instead of get_string_table.
964 2008-09-08 Doug Kwan <dougkwan@google.com>
966 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
967 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
969 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
971 * Makefile.am (ltosymtab_SOURCES): add common.c.
972 (ltosymtab_CFLAGS): New.
973 (liblto_plugin_la_SOURCES): Add common.c.
974 * Makefile.in: Regenerate.
977 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
978 (plugin_symtab): New.
979 (plugin_file_info): New.
980 (register_all_symbols_read): New.
982 (claimed_files): New.
983 (num_claimed_files): New.
984 (translate): Don't drop the slot number.
987 (all_symbols_read_handler): New.
988 (claim_file_handler): Record every claimed file.
989 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
991 * lto-symtab.c: Include stdlib.h, string.h and common.h.
992 (current_file_handle): Remove.
993 (ld_plugin_all_symbols_read_handler): New.
994 (plugin_handle): New.
996 (all_file_handles): New.
997 (num_file_handles): New.
999 (register_all_symbols_read): New.
1000 (add_symbols): Don't print the symbols, just record them.
1001 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1003 (load_plugin): Use plugin_handle.
1004 (register_file): Add the file handle to all_file_handles.
1007 (unload_plugin): New.
1009 (main): Call all_symbols_read_handler and free resources.
1011 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1013 * Makefile.am (AM_CFLAGS): New.
1014 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1015 (lib_LTLIBRARIES): New.
1016 (liblto_plugin_la_SOURCES): New.
1017 (liblto_plugin_la_LIBADD): New.
1018 * Makefile.in: Regenerate.
1019 * acinclude.m4: Don't include ../config/acx.m4 and
1020 ../config/no-executables.m4.
1021 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1023 * aclocal.m4: Regenerate.
1024 * configure: Regenerate.
1025 * configure.ac: Use AM_PROG_LIBTOOL.
1026 * lto-plugin.c: New.
1027 * lto-symtab.c: Rewrite to use the plugin.
1028 * plugin-api.h: New.
1030 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1032 * configure: Regenerate.
1033 * configure.ac: Use AC_CHECK_GELF.
1034 * lto-symtab.c: Include gelf.h.
1035 (get_string_table): Use size independent API.
1036 (printTable): Use lld to print 64 bit integers.
1038 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1040 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1041 entry->visibility are valid.
1043 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1044 * lto-symtab.c (table_entry): Add comdat.
1045 (parse_table_entry): Read comdat.
1047 2008-08-21 Rafael Espindola <espindola@google.com>
1051 * acinclude.m4: New.
1054 * configure.ac: New.
1055 * lto-symtab.c: New.