1 2018-04-18 David Malcolm <dmalcolm@redhat.com>
4 * configure: Regenerate.
6 2018-01-03 Jakub Jelinek <jakub@redhat.com>
8 Update copyright years.
10 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
13 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
15 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
17 2017-01-17 Jakub Jelinek <jakub@redhat.com>
20 * configure.ac: Add GCC_BASE_VER.
21 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
22 get version from BASE-VER file.
23 * configure: Regenerated.
24 * Makefile.in: Regenerated.
26 2017-01-04 Jakub Jelinek <jakub@redhat.com>
28 Update copyright years.
30 2016-11-15 Matthias Klose <doko@ubuntu.com>
32 * configure: Regenerate.
34 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
37 * lto-plugin.c (struct plugin_offload_file): New.
38 (offload_files): Change type.
39 (offload_files_last, offload_files_last_obj): New.
40 (offload_files_last_lto): New.
41 (free_2): Adjust accordingly.
42 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
43 Don't call free_1 for offload_files. Write names of object files with
44 offloading to the temporary file. Add new option to lto_arg_ptr.
45 (claim_file_handler): Don't claim file if it contains offload sections
46 without LTO sections. If it contains offload sections, add to the list.
48 2016-01-15 Martin Liska <mliska@suse.cz>
50 * lto-plugin.c (all_symbols_read_handler): Assign default
51 value to a string variable.
53 2015-11-25 Jan Hubicka <jh@suse.cz>
56 * lto-plugin.c (linker_output, linker_output_set): New statics.
57 (all_symbols_read_handler): Add -flinker-output option.
58 (onload): Record linker_output info.
60 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
62 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
63 * configure: Regenerate.
66 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
68 * Makefile.am: Drop 'by automake version' from top-level comment.
69 * Makefile.in: Regenerated with automake-1.11.6.
70 * aclocal.m4: Likewise.
71 * configure: Likewise.
73 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
75 * lto-plugin.c (release_input_file): Removed.
76 (claim_file_handler): Don't call release_input_file.
77 (onload): Don't set release_input_file.
79 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
81 * lto-plugin.c (claim_file_handler): Pass handle to
84 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
86 * lto-plugin.c (claim_file_handler): Call release_input_file only
89 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
91 * lto-plugin.c (claim_file_handler): Call release_input_file only
94 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
97 * lto-plugin.c (release_input_file): New.
98 (claim_file_handler): Call release_input_file.
99 (onload): Set release_input_file.
101 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
103 * lto-plugin.c (offload_files, num_offload_files): New static variables.
104 (free_1): Use arguments instead of global variables.
105 (free_2): Free offload_files.
106 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
108 (claim_file_handler): Do not add file to claimed_files if it contains
109 offload sections without LTO sections. Add it to offload_files instead.
111 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
114 * configure: Regenerated.
116 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
117 Bernd Schmidt <bernds@codesourcery.com>
118 Andrey Turetskiy <andrey.turetskiy@intel.com>
119 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
121 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
122 (struct plugin_objfile): Add new field "offload".
123 (process_offload_section): New static function.
124 (claim_file_handler): Claim file if it contains offload sections.
126 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
127 Thomas Schwinge <thomas@codesourcery.com>
128 Ilya Verbin <ilya.verbin@intel.com>
129 Andrey Turetskiy <andrey.turetskiy@intel.com>
131 * Makefile.am (libexecsubdir): Tweak for the possibility of being
132 configured for offload compiler.
133 (accel_dir_suffix, real_target_noncanonical): New variables substituted
135 * Makefile.in: Regenerate.
136 * configure: Regenerate.
137 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
140 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
143 * configure: Regenerate.
145 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
148 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
149 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
151 * Makefile.in: Regenerated.
152 * configure: Likewise.
154 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
156 * configure.ac (--with-libiberty): New configure option.
157 * configure: Regenerate.
158 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
160 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
161 (liblto_plugin_la_DEPENDENCIES): Use them.
162 * Makefile.in: Regenerate.
164 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
167 * configure.ac: Check for -static-libgcc.
168 * configure: Regenerate.
170 2014-04-17 Jakub Jelinek <jakub@redhat.com>
173 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
174 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
175 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
176 over ../libiberty/pic/libiberty.a if the former exists.
177 * Makefile.in: Regenerated.
180 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
181 * Makefile.in: Regenerated.
183 2014-04-02 Richard Biener <rguenther@suse.de>
185 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
186 is set in COLLECT_GCC_OPTIONS.
188 2014-03-28 Richard Biener <rguenther@suse.de>
190 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
192 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
194 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
196 * configure: Regenerate.
197 * Makefile.am (AM_LDFLAGS): New variable.
198 (liblto_plugin_la_LDFLAGS): Add it.
199 * Makefile.in: Regenerate.
201 2013-09-20 Alan Modra <amodra@gmail.com>
203 * configure: Regenerate.
205 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
207 * configure: Regenerated.
209 2012-05-29 Joseph Myers <joseph@codesourcery.com>
211 * lto-plugin.c: Fix typo.
213 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
215 * configure: Regenerated.
217 2012-02-22 Kai Tietz <ktietz@redhat.com>
220 * lto-plugin.c (PRI_LL): New macro.
221 (dump_symtab): Use PRI_LL instead of ll in print.
222 (process_symtab): Use PRI_LL instead of ll in scan.
224 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
226 * configure: Regenerate.
228 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
230 * configure: Regenerate.
232 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
234 * configure: Regenerate.
236 2011-10-02 Jan Hubicka <jh@suse.cz>
239 * lto-plugin.c (get_symbols_v2): New variable.
240 (write_resolution): Use V2 API when available.
241 (onload): Handle LDPT_GET_SYMBOLS_V2.
243 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
244 Andi Kleen <ak@linux.intel.com>
247 * lto-plugin.c (sym_aux): Change id to unsigned long long.
248 (plugin_symtab): Likewise.
249 (dump_symtab): Likewise.
250 (resolve_conflicts): Likewise.
251 (process_symtab): Likewise.
253 2011-08-10 Richard Guenther <rguenther@suse.de>
257 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
258 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
259 * configure: Regenerate.
260 * Makefile.in: Likewise.
261 * aclocal.m4: Likewise.
263 2011-04-20 Jim Meyering <meyering@redhat.com>
265 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
267 2011-04-05 Richard Guenther <rguenther@suse.de>
270 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
272 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
274 * Makefile.in: Regenerate.
275 * aclocal.m4: Regenerate.
276 * configure: Regenerate.
278 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
280 * Makefile.am (all-local): Rename from 'all'.
281 * Makefile.in: Regenerate.
283 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
286 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
287 (liblto_plugin_la_LDFLAGS): Add -module.
288 (copy_lto_plugin): Renamed to...
289 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
291 * Makefile.in: Rebuild.
293 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
296 * Makefile.am (Wc): New helper for encoding -Wc,.
297 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
298 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
299 * Makefile.in: Regenerated.
301 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
305 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
308 * Makefile.am (Wl): New helper for encoding -Wl,.
309 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
310 * Makefile.in: Regenerated.
312 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
315 * Makefile.am (Wl): New helper for encoding -Wl,.
316 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
317 * Makefile.in: Regenerated.
319 2011-01-25 Ian Lance Taylor <iant@google.com>
321 * lto-plugin.c (gold_version): New static variable.
322 (all_symbols_read_handler): Don't check pass_through_items if
323 using gold 1.11 or later.
324 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
326 2011-01-12 Richard Guenther <rguenther@suse.de>
329 * lto-plugin.c (parse_table_entry): Use memcpy to access
332 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
334 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
335 * Makefile.in: Regenerate.
337 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
341 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
343 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
344 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
345 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
346 * Makefile.in: Regenerate.
348 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
352 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
353 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
354 * configure: Regenerate.
355 * config.h.in: Likewise.
357 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
361 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
362 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
363 override -bindir setting.
364 * aclocal.m4: Regenerate.
365 * configure: Regenerate.
366 * Makefile.in: Regenerate.
368 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
370 * config.h.in: Regenerated.
371 * configure: Regenerated.
372 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
373 * lto-plugin.c (WIFEXITED): Define default.
374 (WEXITSTATUS): Likeiwse.
376 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
378 * config.h.in: Regenerated.
379 * configure: Regenerated.
380 * Makefile.in: Regenerated.
381 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
382 * lto-plugin.c: Include sys/wait.h conditionally.
383 * aclocal.m4: Regenerated.
385 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
387 * lto-plugin.c (add_output_files): Fix memory leak.
389 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
393 * configure.ac: Add AC_TYPE_INT64_T test.
394 * config.h.in: Regenerate.
395 * configure: Likewise.
396 * lto-plugin.c (debug): Use char not bool.
398 (check_1): Rename from check, and use int not bool for gate argument.
399 (check): Macro wrapper for the above to coerce gate argument into
400 boolean-valued integer in case it has pointer type.
401 (parse_table_entry): Use 0 not false.
402 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
403 into two 32-bit parts and printing as hex ints.
405 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
408 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
410 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
413 * lto-plugin.h: Delete.
414 * lto-plugin-elf.c: Likewise.
415 * lto-plugin-coff.c: Likewise.
416 * configure.ac: Don't use libelf, don't source config.gcc.
417 (LIBELFLIBS): Delete.
419 (LTO_FORMAT): Delete.
420 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
421 (config.h): Add AC_CONFIG_HEADERS directive.
422 * Makefile.am (LIBELFLIBS): Delete.
424 (LTO_FORMAT): Delete.
426 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
427 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
428 any object-format-specific source file in the link.
429 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
430 * config.h.in: Generate.
431 * configure: Regenerate.
432 * Makefile.in: Likewise.
433 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
434 (LTO_SEGMENT_NAME): New definition.
435 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
436 (LTO_SECTION_PREFIX_LEN): New definition.
437 (struct sym_aux): Struct definition moved here from lto-plugin.h.
438 (struct plugin_symtab): Likewise.
439 (struct plugin_objfile): Likewise.
440 (struct plugin_objfile): New struct def.
441 (enum symbol_style): New enum type.
442 (add_symbols): Make static.
443 (claimed_files): Likewise.
444 (num_claimed_files): Likewise.
445 (sym_style): New global.
446 (check): Make static.
447 (parse_table_entry): Likewise. Respect sym_style when extracting
448 symbol from symtab entry.
449 (translate): Make static.
450 (resolve_conflicts): Likewise.
451 (process_symtab): New function, per-section callback version of
452 old object-format-specific handling from deleted lto-plugin-elf.c.
453 (claim_file_handler): Convert ELF-specific version from deleted
454 lto-plugin-elf.c to simple_object interface and move here.
455 (process_options): Allow new '-sym-style=' option.
456 (onload): Don't call deleted onload_format_checks hook.
458 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
460 * lto-plugin.c (dump_symtab): Correct printf argument type.
461 (finish_conflict_resolution): Initialize resolution.
463 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
466 * configure.ac: Add AC_CANONICAL_SYSTEM.
467 * configure: Regenerated.
469 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
471 * configure.ac: Source config.gcc to determine lto_binary_reader.
472 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
473 * Makefile.am (LTO_FORMAT): Import.
474 (liblto_plugin_la_SOURCES): Add object format dependent module
475 defined by LTO_FORMAT.
476 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
477 and work around libtool warning.
478 * configure: Regenerate.
479 * Makefile.in: Likewise.
480 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
481 (struct sym_aux): Likewise.
482 (struct plugin_symtab): Likewise.
483 (struct plugin_file_info): Likewise.
484 (LTO_SECTION_PREFIX): Likewise.
485 (add_symbols): Make non-static.
486 (claimed_files): Likewise.
487 (num_claimed_files): Likewise.
489 (parse_table_entry): Likewise.
490 (translate): Likewise.
491 (resolve_conflicts): Likewise.
492 (process_symtab): Move to new lto-plugin-elf.c object format dependent
494 (claim_file_handler): Likewise, and make non-static.
495 (onload): Call new onload_format_checks function.
496 * lto-plugin.h: New file.
497 (LTO_SECTION_PREFIX): Move here.
498 (struct sym_aux): Likewise.
499 (struct plugin_symtab): Likewise.
500 (struct plugin_file_info): Likewise.
501 (claim_file_handler): Add new function prototype.
502 (onload_format_checks): Likewise.
503 (check): Declare extern.
504 (translate): Likewise.
505 (parse_table_entry): Likewise.
506 (resolve_conflicts): Likewise.
507 (add_symbols): Likewise.
508 (claimed_files): Likewise.
509 (num_claimed_files): Likewise.
510 * lto-plugin-elf.c (process_symtab): Move here.
511 (claim_file_handler): Likewise, and make non-static.
512 (onload_format_checks): New function factored out from onload.
513 * lto-plugin-coff.c (claim_file_handler): New function stub.
514 (onload_format_checks): Likewise.
516 2010-08-05 Andi Kleen <ak@linux.intel.com>
518 * lto-plugin.c: Include <hashtab.h>
519 (sym_aux): Add next_conflict field to save conflict chains.
520 (plugin_file_info): Add conflicts symtab.
521 (parse_table_entry): Initialize aux->next_conflict.
522 (process_symtab): Increment found.
524 (finish_conflict_resolution): Add.
526 (write_resolution): Remove symbols loop and move into
527 dump_symtab. Call dump_symtab for main symbol and conflicts table.
528 Call free_symtab to free conflicts table.
532 (symbol_strength): Add.
533 (resolve_conflicts): Add.
534 (claim_file_handler): Add n variable. Check return value of
535 process_symtab. Call resolve_conflicts.
537 2010-07-27 Andi Kleen <ak@linux.intel.com>
539 * lto-plugin.c (translate): Remove debug fprintf.
541 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
544 * lto-plugin.c (translate): Cast to unsigned long.
546 2010-07-23 Andi Kleen <ak@linux.intel.com>
549 * lto-plugin.c (sym_aux): Add.
550 (plugin_symtab): Remove slots. Add aux and id.
551 (parse_table_entry): Change to use aux instead of slots.
552 (LTO_SECTION_PREFIX): Add.
553 (translate): Improve buffer allocation. Change to append
554 symbols to existing out buffer.
555 (get_section): Remove.
556 (process_symtab): Add.
557 (free_2): Free symtab->aux.
558 (write_resolution): Handle aux instead of slots.
559 Print sub id to resolution file.
560 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
561 calls with call to process_symtab.
563 2010-07-22 Richard Guenther <rguenther@suse.de>
565 * Makefile.am: New copy_lto_plugin rule to install the plugin
567 * Makefile.in: Regenerated.
569 2010-05-21 Richard Guenther <rguenther@suse.de>
571 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
573 2010-05-07 Richard Guenther <rguenther@suse.de>
575 * lto-plugin.c (free_2): Do not free resolution_file.
576 (write_resolution): Check that we were passed a resolution file.
577 (all_symbols_read_handler): Adjust.
578 (cleanup_handler): Do not remove the resolution file.
579 (process_option): Handle -fresolution=.
581 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
584 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
585 * Makefile.in: Regenerate.
587 2010-04-23 Richard Guenther <rguenther@suse.de>
590 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
591 (translate): Likewise.
592 (all_symbols_read_handler): Likewise.
593 (claim_file_handler): Likewise.
594 (process_option): Likewise.
595 (add_output_files): Likewise. Remove filename length limit.
597 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
599 * Makefile.in: Regenerate.
600 * aclocal.m4: Regenerate.
602 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
605 * lto-plugin.c (cleanup_handler): Delete temporary output files.
607 2010-01-11 Richard Guenther <rguenther@suse.de>
610 * Makefile.am: Disable dependencies.
611 * Makefile.in: Regenerated.
613 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
616 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
619 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
622 * configure: Regenerated.
623 * Makefile.in: Likewise.
625 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
628 * lto-plugin.c (claim_file_handler): Print offsets in hex.
630 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
632 * lto-plugin.c (write_resolution): Assume resolution_file is set.
633 Print the symbol name.
634 (all_symbols_read_handler): Create a resolution file.
636 (cleanup_handler): Remove the resolution file.
637 (process_option): Drop the -resolution option.
639 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
641 * lto-plugin.c (temp_obj_dir_name): Remove.
642 (arguments_file_name): New.
643 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
644 (exec_lto_wrapper): Create arguments file with make_temp_file.
645 (cleanup_handler): Don't remove the temporary directory. Remove the
647 (onload): Don't create the temporary directory.
649 2009-11-04 Richard Guenther <rguenther@suse.de>
650 Rafael Avila de Espindola <espindola@google.com>
652 * lto-plugin.c (plugin_file_info): Remove temp field.
653 (cleanup_handler): Don't delete temporary objects.
654 (claim_file_handler): Don't create temporary objects.
656 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
658 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
660 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
663 * lto-plugin.c (claim_file_handler): Close files that we created.
665 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
667 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
670 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
673 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
674 * configure: Regenerate.
676 2009-10-26 Richard Guenther <rguenther@suse.de>
678 * configure.ac: Use AM_MAINTAINER_MODE.
679 * acinclude.m4: Remove.
680 * configure: Re-generate.
681 * Makefile.in: Likewise.
682 * aclocal.m4: Likewise.
684 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
687 * configure: Regenerate.
688 * configure.ac: Add AC_TYPE_UINT64_T.
690 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
692 * lto-plugin.c (message): New variable.
693 (check): New function.
694 (parse_table_entry, translate, write_resolution,add_output_files,
695 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
697 (cleanup_handler): Use check instead of assert. Remove the arguments
700 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
702 * lto-plugin.c (resolution_file): New.
703 (free_1): Update comment.
704 (free_2): Free resolution_file.
705 (write_resolution): Write resolution to specified file. Use the
706 syms array from the symbol table.
707 (all_symbols_read_handler): Delay call to free_1 past call to
709 (process_option): Add a -resolution option.
711 2009-10-13 Richard Guenther <rguenther@suse.de>
713 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
715 * Makefile.in: Regenerated.
717 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
719 * lto-plugin.c (add_input_library): New.
720 (all_symbols_read_handler): Use add_input_library for items that
722 (process_option): Fit in 80 columns.
723 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
725 2009-10-02 Diego Novillo <dnovillo@google.com>
727 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
728 and -D_FILE_OFFSET_BITS=64.
729 * configure.ac: Add AC_SYS_LARGEFILE.
730 * configure: Regenerate.
731 * Makefile.in: Regenerate.
732 * lto-plugin.c: Fix copyright boilerplate.
734 2009-10-02 Diego Novillo <dnovillo@google.com>
736 * Makefile.am (ACLOCAL_AMFLAGS): Define.
737 * aclocal.m4: Regenerate with aclocal-2.64
738 * acinclude.m4: Remove.
739 * Makefile.in: Regenerate with automake-1.11
740 * configure.ac (AC_PREREQ): Update to 2.64.
741 * configure: Regenerate.
743 2009-10-02 Diego Novillo <dnovillo@google.com>
745 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
746 and -D_FILE_OFFSET_BITS=64.
747 * configure.ac: Add AC_SYS_LARGEFILE.
748 * configure: Regenerate.
749 * Makefile.in: Regenerate.
750 * lto-plugin.c: Fix copyright boilerplate.
752 2009-10-02 Diego Novillo <dnovillo@google.com>
754 * Makefile.am (ACLOCAL_AMFLAGS): Define.
755 * aclocal.m4: Regenerate with aclocal-2.64
756 * acinclude.m4: Remove.
757 * Makefile.in: Regenerate with automake-1.11
758 * configure.ac (AC_PREREQ): Update to 2.64.
759 * configure: Regenerate.
761 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
763 * Makefile.am (liblto_plugin_la_SOURCES): Remove
764 $(top_srcdir)/../gcc/lto/common.c
765 * Makefile.in: Regenerate.
767 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
769 * lto-plugin.c (pass_through_items): New.
770 (num_pass_through_items): New.
771 (all_symbols_read_handler): Update to use the -pass-through option.
772 (process_option): Replace -libgcc with -pass-through.
774 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
776 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
777 register_cleanup to be set.
779 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
781 * Makefile.am: Remove all reference to ltosymtab.
782 * Makefile.in: Regenerate.
783 * lto-symtab.c: Remove.
785 2009-05-21 Diego Novillo <dnovillo@google.com>
787 * configure.ac: Remove call to AC_CHECK_GELF.
788 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
789 * acinclude.m4: Do not include ../config/libelf.m4
790 * Makefile.am (LIBELFLIBS): Define.
792 (AM_CPPFLAGS): Add $(LIBELFINC).
793 (ltosymtab_LDADD): Add $(LIBELFLIBS).
794 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
795 * lto-plugin.c: Always include <gelf.h>
796 * lto-symtab.c: Likewise.
797 * configure: Regenerate.
798 * Makefile.in: Regenerate.
800 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
802 * lto-plugin.c (libgcc_filename): New.
803 (all_symbols_read_handler): Pass libgcc to the linker.
804 (all_symbols_read_handler): Parse -libgcc
806 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
808 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
809 * Makefile.in: Regenerate.
810 * lto-plugin.c (add_output_files): Argument is now a FILE.
811 (exec_lto_wrapper): Use writeargv and pex.
813 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
816 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
817 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
820 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
822 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
824 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
826 * lto-plugin.c: Include libiberty.h.
827 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
830 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
832 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
835 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
837 * lto-plugin.c (plugin_file_info): Remove fd and elf.
838 (parse_table_entry): strdup entry->name and entry->comdat_key.
839 (free_1): Free name and comdat_key. Don't close the file. Don't call
841 (claim_file_handler): Always call elf_end.
843 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
845 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
846 -D_FILE_OFFSET_BITS=64
847 * Makefile.in: Regenerate
849 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
851 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
852 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
853 * Makefile.in: Regenerate.
854 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
855 * configure: Regenerate.
856 * configure.ac: Add AC_SUBST(target_noncanonical).
858 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
860 * lto-plugin.c: Include stdbool.h.
861 (debug, nop): Declare as bool.
863 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
865 * lto-plugin.c (nop): New.
866 (use_original_files): New.
867 (all_symbols_read_handler): Call use_original_files if nop is true.
868 (process_option): Parse the -nop option.
870 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
872 * lto-plugin.c (debug): New.
873 (exec_lto_wrapper): Print argv if debug is true.
874 (process_option): Process the -debug command line option.
876 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
878 * lto-plugin.c (process_option): The argument is now a single option,
879 not a space separated list.
881 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
883 * lto-plugin.c: Include sys/types.h and sys/wait.h
884 (output_files, num_output_files, lto_wrapper_argv,
885 lto_wrapper_num_args): New.
886 (free_2): Free output_files.
887 (write_resolution): Disable.
888 (add_output_files): New.
889 (exec_lto_wrapper): New.
890 (all_symbols_read_handler): Run lto-wrapper.
891 (claim_file_handler): Free lto_file.name and call elf_end.
892 (process_option): New.
894 2008-11-26 Rafael Espindola <espindola@google.com>
896 * lto-plugin.c (add_input_file): New.
897 (get_section): Return NULL if get_section fails.
898 (write_resolution): New.
899 (all_symbols_read_handler): Call add_input_file.
900 (claim_file_handler): Unlink the correct file.
901 (onload): Record add_input_file.
903 2008-09-23 Rafael Espindola <espindola@google.com>
905 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
906 Update the location of common.c.
907 * Makefile.in: Regenerate.
908 * common.c: Moved to gcc/lto.
909 * common.h: Moved to gcc/lto.
910 * lto-plugin.c: Update the location of common.h.
911 * lto-symtab.c: Update the location of common.h.
913 2008-09-23 Rafael Espindola <espindola@google.com>
915 * common.c: Include common.h.
916 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
918 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
921 2008-09-23 Rafael Espindola <espindola@google.com>
923 * lto-plugin.c (plugin_file_info): Add temp.
924 (cleanup_handler): Only delete temporary files.
925 (claim_file_handler): Initialize lto_file.temp.
927 2008-09-23 Rafael Espindola <espindola@google.com>
929 * plugin-api.h: Moved to include.
931 2008-09-23 Rafael Espindola <espindola@google.com>
933 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
936 2008-09-22 Rafael Espindola <espindola@google.com>
938 * plugin-api.h: Copy from binutils' cvs.
940 2008-09-22 Rafael Espindola <espindola@google.com>
942 * lto-symtab.c (get_symbols, add_symbols): Update signature.
943 * plugin-api.h: Copy from binutils' cvs.
945 2008-09-22 Rafael Espindola <espindola@google.com>
947 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
950 2008-09-10 Rafael Espindola <espindola@google.com>
952 * lto-plugin.c (onload): add missing break statements and asserts.
953 * lto-symtab.c (claim_file_handler): Make it static.
954 (all_symbols_read_handler): Make it static.
955 (all_file_handles): Make it static.
956 (num_file_handles): Make it static.
957 (register_claim_file): Make it static.
958 (register_object): Indent properly.
960 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
962 * Makefile.am (ltosymtab_LDADD): Add -lelf.
963 * Makefiel.in: Regenerate.
964 * lto-plugin.c: Include ar.h.
965 (claim_file_handler): Handle file->offset != 0.
966 * lto-symtab.c: Include gelf.h.
967 (all_file_handles): Change type.
968 (register_object): New.
969 (register_file): Add support for archives.
970 (resolve): Update to new type of all_file_handles.
971 (print): Update to new type of all_file_handles.
972 (free_all): Update to new type of all_file_handles.
973 (main): Update to new type of all_file_handles.
975 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
977 * lto-plugin.c (get_string_table): Remove.
978 (get_section): Use elf_strptr instead of get_string_table.
980 2008-09-08 Doug Kwan <dougkwan@google.com>
982 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
983 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
985 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
987 * Makefile.am (ltosymtab_SOURCES): add common.c.
988 (ltosymtab_CFLAGS): New.
989 (liblto_plugin_la_SOURCES): Add common.c.
990 * Makefile.in: Regenerate.
993 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
994 (plugin_symtab): New.
995 (plugin_file_info): New.
996 (register_all_symbols_read): New.
998 (claimed_files): New.
999 (num_claimed_files): New.
1000 (translate): Don't drop the slot number.
1003 (all_symbols_read_handler): New.
1004 (claim_file_handler): Record every claimed file.
1005 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1007 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1008 (current_file_handle): Remove.
1009 (ld_plugin_all_symbols_read_handler): New.
1010 (plugin_handle): New.
1012 (all_file_handles): New.
1013 (num_file_handles): New.
1015 (register_all_symbols_read): New.
1016 (add_symbols): Don't print the symbols, just record them.
1017 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1019 (load_plugin): Use plugin_handle.
1020 (register_file): Add the file handle to all_file_handles.
1023 (unload_plugin): New.
1025 (main): Call all_symbols_read_handler and free resources.
1027 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1029 * Makefile.am (AM_CFLAGS): New.
1030 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1031 (lib_LTLIBRARIES): New.
1032 (liblto_plugin_la_SOURCES): New.
1033 (liblto_plugin_la_LIBADD): New.
1034 * Makefile.in: Regenerate.
1035 * acinclude.m4: Don't include ../config/acx.m4 and
1036 ../config/no-executables.m4.
1037 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1039 * aclocal.m4: Regenerate.
1040 * configure: Regenerate.
1041 * configure.ac: Use AM_PROG_LIBTOOL.
1042 * lto-plugin.c: New.
1043 * lto-symtab.c: Rewrite to use the plugin.
1044 * plugin-api.h: New.
1046 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1048 * configure: Regenerate.
1049 * configure.ac: Use AC_CHECK_GELF.
1050 * lto-symtab.c: Include gelf.h.
1051 (get_string_table): Use size independent API.
1052 (printTable): Use lld to print 64 bit integers.
1054 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1056 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1057 entry->visibility are valid.
1059 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1060 * lto-symtab.c (table_entry): Add comdat.
1061 (parse_table_entry): Read comdat.
1063 2008-08-21 Rafael Espindola <espindola@google.com>
1067 * acinclude.m4: New.
1070 * configure.ac: New.
1071 * lto-symtab.c: New.