1 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
3 * Makefile.am: Drop 'by automake version' from top-level comment.
4 * Makefile.in: Regenerated with automake-1.11.6.
5 * aclocal.m4: Likewise.
8 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
10 * lto-plugin.c (release_input_file): Removed.
11 (claim_file_handler): Don't call release_input_file.
12 (onload): Don't set release_input_file.
14 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
16 * lto-plugin.c (claim_file_handler): Pass handle to
19 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
21 * lto-plugin.c (claim_file_handler): Call release_input_file only
24 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
26 * lto-plugin.c (claim_file_handler): Call release_input_file only
29 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
32 * lto-plugin.c (release_input_file): New.
33 (claim_file_handler): Call release_input_file.
34 (onload): Set release_input_file.
36 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
38 * lto-plugin.c (offload_files, num_offload_files): New static variables.
39 (free_1): Use arguments instead of global variables.
40 (free_2): Free offload_files.
41 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
43 (claim_file_handler): Do not add file to claimed_files if it contains
44 offload sections without LTO sections. Add it to offload_files instead.
46 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
49 * configure: Regenerated.
51 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
52 Bernd Schmidt <bernds@codesourcery.com>
53 Andrey Turetskiy <andrey.turetskiy@intel.com>
54 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
56 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
57 (struct plugin_objfile): Add new field "offload".
58 (process_offload_section): New static function.
59 (claim_file_handler): Claim file if it contains offload sections.
61 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
62 Thomas Schwinge <thomas@codesourcery.com>
63 Ilya Verbin <ilya.verbin@intel.com>
64 Andrey Turetskiy <andrey.turetskiy@intel.com>
66 * Makefile.am (libexecsubdir): Tweak for the possibility of being
67 configured for offload compiler.
68 (accel_dir_suffix, real_target_noncanonical): New variables substituted
70 * Makefile.in: Regenerate.
71 * configure: Regenerate.
72 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
75 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
78 * configure: Regenerate.
80 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
83 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
84 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
86 * Makefile.in: Regenerated.
87 * configure: Likewise.
89 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
91 * configure.ac (--with-libiberty): New configure option.
92 * configure: Regenerate.
93 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
95 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
96 (liblto_plugin_la_DEPENDENCIES): Use them.
97 * Makefile.in: Regenerate.
99 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
102 * configure.ac: Check for -static-libgcc.
103 * configure: Regenerate.
105 2014-04-17 Jakub Jelinek <jakub@redhat.com>
108 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
109 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
110 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
111 over ../libiberty/pic/libiberty.a if the former exists.
112 * Makefile.in: Regenerated.
115 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
116 * Makefile.in: Regenerated.
118 2014-04-02 Richard Biener <rguenther@suse.de>
120 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
121 is set in COLLECT_GCC_OPTIONS.
123 2014-03-28 Richard Biener <rguenther@suse.de>
125 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
127 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
129 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
131 * configure: Regenerate.
132 * Makefile.am (AM_LDFLAGS): New variable.
133 (liblto_plugin_la_LDFLAGS): Add it.
134 * Makefile.in: Regenerate.
136 2013-09-20 Alan Modra <amodra@gmail.com>
138 * configure: Regenerate.
140 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
142 * configure: Regenerated.
144 2012-05-29 Joseph Myers <joseph@codesourcery.com>
146 * lto-plugin.c: Fix typo.
148 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
150 * configure: Regenerated.
152 2012-02-22 Kai Tietz <ktietz@redhat.com>
155 * lto-plugin.c (PRI_LL): New macro.
156 (dump_symtab): Use PRI_LL instead of ll in print.
157 (process_symtab): Use PRI_LL instead of ll in scan.
159 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
161 * configure: Regenerate.
163 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
165 * configure: Regenerate.
167 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
169 * configure: Regenerate.
171 2011-10-02 Jan Hubicka <jh@suse.cz>
174 * lto-plugin.c (get_symbols_v2): New variable.
175 (write_resolution): Use V2 API when available.
176 (onload): Handle LDPT_GET_SYMBOLS_V2.
178 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
179 Andi Kleen <ak@linux.intel.com>
182 * lto-plugin.c (sym_aux): Change id to unsigned long long.
183 (plugin_symtab): Likewise.
184 (dump_symtab): Likewise.
185 (resolve_conflicts): Likewise.
186 (process_symtab): Likewise.
188 2011-08-10 Richard Guenther <rguenther@suse.de>
192 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
193 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
194 * configure: Regenerate.
195 * Makefile.in: Likewise.
196 * aclocal.m4: Likewise.
198 2011-04-20 Jim Meyering <meyering@redhat.com>
200 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
202 2011-04-05 Richard Guenther <rguenther@suse.de>
205 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
207 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
209 * Makefile.in: Regenerate.
210 * aclocal.m4: Regenerate.
211 * configure: Regenerate.
213 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
215 * Makefile.am (all-local): Rename from 'all'.
216 * Makefile.in: Regenerate.
218 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
221 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
222 (liblto_plugin_la_LDFLAGS): Add -module.
223 (copy_lto_plugin): Renamed to...
224 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
226 * Makefile.in: Rebuild.
228 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
231 * Makefile.am (Wc): New helper for encoding -Wc,.
232 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
233 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
234 * Makefile.in: Regenerated.
236 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
240 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
243 * Makefile.am (Wl): New helper for encoding -Wl,.
244 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
245 * Makefile.in: Regenerated.
247 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
250 * Makefile.am (Wl): New helper for encoding -Wl,.
251 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
252 * Makefile.in: Regenerated.
254 2011-01-25 Ian Lance Taylor <iant@google.com>
256 * lto-plugin.c (gold_version): New static variable.
257 (all_symbols_read_handler): Don't check pass_through_items if
258 using gold 1.11 or later.
259 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
261 2011-01-12 Richard Guenther <rguenther@suse.de>
264 * lto-plugin.c (parse_table_entry): Use memcpy to access
267 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
269 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
270 * Makefile.in: Regenerate.
272 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
276 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
278 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
279 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
280 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
281 * Makefile.in: Regenerate.
283 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
287 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
288 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
289 * configure: Regenerate.
290 * config.h.in: Likewise.
292 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
296 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
297 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
298 override -bindir setting.
299 * aclocal.m4: Regenerate.
300 * configure: Regenerate.
301 * Makefile.in: Regenerate.
303 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
305 * config.h.in: Regenerated.
306 * configure: Regenerated.
307 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
308 * lto-plugin.c (WIFEXITED): Define default.
309 (WEXITSTATUS): Likeiwse.
311 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
313 * config.h.in: Regenerated.
314 * configure: Regenerated.
315 * Makefile.in: Regenerated.
316 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
317 * lto-plugin.c: Include sys/wait.h conditionally.
318 * aclocal.m4: Regenerated.
320 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
322 * lto-plugin.c (add_output_files): Fix memory leak.
324 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
328 * configure.ac: Add AC_TYPE_INT64_T test.
329 * config.h.in: Regenerate.
330 * configure: Likewise.
331 * lto-plugin.c (debug): Use char not bool.
333 (check_1): Rename from check, and use int not bool for gate argument.
334 (check): Macro wrapper for the above to coerce gate argument into
335 boolean-valued integer in case it has pointer type.
336 (parse_table_entry): Use 0 not false.
337 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
338 into two 32-bit parts and printing as hex ints.
340 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
343 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
345 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
348 * lto-plugin.h: Delete.
349 * lto-plugin-elf.c: Likewise.
350 * lto-plugin-coff.c: Likewise.
351 * configure.ac: Don't use libelf, don't source config.gcc.
352 (LIBELFLIBS): Delete.
354 (LTO_FORMAT): Delete.
355 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
356 (config.h): Add AC_CONFIG_HEADERS directive.
357 * Makefile.am (LIBELFLIBS): Delete.
359 (LTO_FORMAT): Delete.
361 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
362 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
363 any object-format-specific source file in the link.
364 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
365 * config.h.in: Generate.
366 * configure: Regenerate.
367 * Makefile.in: Likewise.
368 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
369 (LTO_SEGMENT_NAME): New definition.
370 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
371 (LTO_SECTION_PREFIX_LEN): New definition.
372 (struct sym_aux): Struct definition moved here from lto-plugin.h.
373 (struct plugin_symtab): Likewise.
374 (struct plugin_objfile): Likewise.
375 (struct plugin_objfile): New struct def.
376 (enum symbol_style): New enum type.
377 (add_symbols): Make static.
378 (claimed_files): Likewise.
379 (num_claimed_files): Likewise.
380 (sym_style): New global.
381 (check): Make static.
382 (parse_table_entry): Likewise. Respect sym_style when extracting
383 symbol from symtab entry.
384 (translate): Make static.
385 (resolve_conflicts): Likewise.
386 (process_symtab): New function, per-section callback version of
387 old object-format-specific handling from deleted lto-plugin-elf.c.
388 (claim_file_handler): Convert ELF-specific version from deleted
389 lto-plugin-elf.c to simple_object interface and move here.
390 (process_options): Allow new '-sym-style=' option.
391 (onload): Don't call deleted onload_format_checks hook.
393 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
395 * lto-plugin.c (dump_symtab): Correct printf argument type.
396 (finish_conflict_resolution): Initialize resolution.
398 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
401 * configure.ac: Add AC_CANONICAL_SYSTEM.
402 * configure: Regenerated.
404 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
406 * configure.ac: Source config.gcc to determine lto_binary_reader.
407 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
408 * Makefile.am (LTO_FORMAT): Import.
409 (liblto_plugin_la_SOURCES): Add object format dependent module
410 defined by LTO_FORMAT.
411 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
412 and work around libtool warning.
413 * configure: Regenerate.
414 * Makefile.in: Likewise.
415 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
416 (struct sym_aux): Likewise.
417 (struct plugin_symtab): Likewise.
418 (struct plugin_file_info): Likewise.
419 (LTO_SECTION_PREFIX): Likewise.
420 (add_symbols): Make non-static.
421 (claimed_files): Likewise.
422 (num_claimed_files): Likewise.
424 (parse_table_entry): Likewise.
425 (translate): Likewise.
426 (resolve_conflicts): Likewise.
427 (process_symtab): Move to new lto-plugin-elf.c object format dependent
429 (claim_file_handler): Likewise, and make non-static.
430 (onload): Call new onload_format_checks function.
431 * lto-plugin.h: New file.
432 (LTO_SECTION_PREFIX): Move here.
433 (struct sym_aux): Likewise.
434 (struct plugin_symtab): Likewise.
435 (struct plugin_file_info): Likewise.
436 (claim_file_handler): Add new function prototype.
437 (onload_format_checks): Likewise.
438 (check): Declare extern.
439 (translate): Likewise.
440 (parse_table_entry): Likewise.
441 (resolve_conflicts): Likewise.
442 (add_symbols): Likewise.
443 (claimed_files): Likewise.
444 (num_claimed_files): Likewise.
445 * lto-plugin-elf.c (process_symtab): Move here.
446 (claim_file_handler): Likewise, and make non-static.
447 (onload_format_checks): New function factored out from onload.
448 * lto-plugin-coff.c (claim_file_handler): New function stub.
449 (onload_format_checks): Likewise.
451 2010-08-05 Andi Kleen <ak@linux.intel.com>
453 * lto-plugin.c: Include <hashtab.h>
454 (sym_aux): Add next_conflict field to save conflict chains.
455 (plugin_file_info): Add conflicts symtab.
456 (parse_table_entry): Initialize aux->next_conflict.
457 (process_symtab): Increment found.
459 (finish_conflict_resolution): Add.
461 (write_resolution): Remove symbols loop and move into
462 dump_symtab. Call dump_symtab for main symbol and conflicts table.
463 Call free_symtab to free conflicts table.
467 (symbol_strength): Add.
468 (resolve_conflicts): Add.
469 (claim_file_handler): Add n variable. Check return value of
470 process_symtab. Call resolve_conflicts.
472 2010-07-27 Andi Kleen <ak@linux.intel.com>
474 * lto-plugin.c (translate): Remove debug fprintf.
476 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
479 * lto-plugin.c (translate): Cast to unsigned long.
481 2010-07-23 Andi Kleen <ak@linux.intel.com>
484 * lto-plugin.c (sym_aux): Add.
485 (plugin_symtab): Remove slots. Add aux and id.
486 (parse_table_entry): Change to use aux instead of slots.
487 (LTO_SECTION_PREFIX): Add.
488 (translate): Improve buffer allocation. Change to append
489 symbols to existing out buffer.
490 (get_section): Remove.
491 (process_symtab): Add.
492 (free_2): Free symtab->aux.
493 (write_resolution): Handle aux instead of slots.
494 Print sub id to resolution file.
495 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
496 calls with call to process_symtab.
498 2010-07-22 Richard Guenther <rguenther@suse.de>
500 * Makefile.am: New copy_lto_plugin rule to install the plugin
502 * Makefile.in: Regenerated.
504 2010-05-21 Richard Guenther <rguenther@suse.de>
506 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
508 2010-05-07 Richard Guenther <rguenther@suse.de>
510 * lto-plugin.c (free_2): Do not free resolution_file.
511 (write_resolution): Check that we were passed a resolution file.
512 (all_symbols_read_handler): Adjust.
513 (cleanup_handler): Do not remove the resolution file.
514 (process_option): Handle -fresolution=.
516 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
519 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
520 * Makefile.in: Regenerate.
522 2010-04-23 Richard Guenther <rguenther@suse.de>
525 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
526 (translate): Likewise.
527 (all_symbols_read_handler): Likewise.
528 (claim_file_handler): Likewise.
529 (process_option): Likewise.
530 (add_output_files): Likewise. Remove filename length limit.
532 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
534 * Makefile.in: Regenerate.
535 * aclocal.m4: Regenerate.
537 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
540 * lto-plugin.c (cleanup_handler): Delete temporary output files.
542 2010-01-11 Richard Guenther <rguenther@suse.de>
545 * Makefile.am: Disable dependencies.
546 * Makefile.in: Regenerated.
548 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
551 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
554 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
557 * configure: Regenerated.
558 * Makefile.in: Likewise.
560 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
563 * lto-plugin.c (claim_file_handler): Print offsets in hex.
565 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
567 * lto-plugin.c (write_resolution): Assume resolution_file is set.
568 Print the symbol name.
569 (all_symbols_read_handler): Create a resolution file.
571 (cleanup_handler): Remove the resolution file.
572 (process_option): Drop the -resolution option.
574 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
576 * lto-plugin.c (temp_obj_dir_name): Remove.
577 (arguments_file_name): New.
578 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
579 (exec_lto_wrapper): Create arguments file with make_temp_file.
580 (cleanup_handler): Don't remove the temporary directory. Remove the
582 (onload): Don't create the temporary directory.
584 2009-11-04 Richard Guenther <rguenther@suse.de>
585 Rafael Avila de Espindola <espindola@google.com>
587 * lto-plugin.c (plugin_file_info): Remove temp field.
588 (cleanup_handler): Don't delete temporary objects.
589 (claim_file_handler): Don't create temporary objects.
591 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
593 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
595 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
598 * lto-plugin.c (claim_file_handler): Close files that we created.
600 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
602 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
605 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
608 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
609 * configure: Regenerate.
611 2009-10-26 Richard Guenther <rguenther@suse.de>
613 * configure.ac: Use AM_MAINTAINER_MODE.
614 * acinclude.m4: Remove.
615 * configure: Re-generate.
616 * Makefile.in: Likewise.
617 * aclocal.m4: Likewise.
619 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
622 * configure: Regenerate.
623 * configure.ac: Add AC_TYPE_UINT64_T.
625 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
627 * lto-plugin.c (message): New variable.
628 (check): New function.
629 (parse_table_entry, translate, write_resolution,add_output_files,
630 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
632 (cleanup_handler): Use check instead of assert. Remove the arguments
635 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
637 * lto-plugin.c (resolution_file): New.
638 (free_1): Update comment.
639 (free_2): Free resolution_file.
640 (write_resolution): Write resolution to specified file. Use the
641 syms array from the symbol table.
642 (all_symbols_read_handler): Delay call to free_1 past call to
644 (process_option): Add a -resolution option.
646 2009-10-13 Richard Guenther <rguenther@suse.de>
648 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
650 * Makefile.in: Regenerated.
652 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
654 * lto-plugin.c (add_input_library): New.
655 (all_symbols_read_handler): Use add_input_library for items that
657 (process_option): Fit in 80 columns.
658 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
660 2009-10-02 Diego Novillo <dnovillo@google.com>
662 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
663 and -D_FILE_OFFSET_BITS=64.
664 * configure.ac: Add AC_SYS_LARGEFILE.
665 * configure: Regenerate.
666 * Makefile.in: Regenerate.
667 * lto-plugin.c: Fix copyright boilerplate.
669 2009-10-02 Diego Novillo <dnovillo@google.com>
671 * Makefile.am (ACLOCAL_AMFLAGS): Define.
672 * aclocal.m4: Regenerate with aclocal-2.64
673 * acinclude.m4: Remove.
674 * Makefile.in: Regenerate with automake-1.11
675 * configure.ac (AC_PREREQ): Update to 2.64.
676 * configure: Regenerate.
678 2009-10-02 Diego Novillo <dnovillo@google.com>
680 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
681 and -D_FILE_OFFSET_BITS=64.
682 * configure.ac: Add AC_SYS_LARGEFILE.
683 * configure: Regenerate.
684 * Makefile.in: Regenerate.
685 * lto-plugin.c: Fix copyright boilerplate.
687 2009-10-02 Diego Novillo <dnovillo@google.com>
689 * Makefile.am (ACLOCAL_AMFLAGS): Define.
690 * aclocal.m4: Regenerate with aclocal-2.64
691 * acinclude.m4: Remove.
692 * Makefile.in: Regenerate with automake-1.11
693 * configure.ac (AC_PREREQ): Update to 2.64.
694 * configure: Regenerate.
696 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
698 * Makefile.am (liblto_plugin_la_SOURCES): Remove
699 $(top_srcdir)/../gcc/lto/common.c
700 * Makefile.in: Regenerate.
702 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
704 * lto-plugin.c (pass_through_items): New.
705 (num_pass_through_items): New.
706 (all_symbols_read_handler): Update to use the -pass-through option.
707 (process_option): Replace -libgcc with -pass-through.
709 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
711 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
712 register_cleanup to be set.
714 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
716 * Makefile.am: Remove all reference to ltosymtab.
717 * Makefile.in: Regenerate.
718 * lto-symtab.c: Remove.
720 2009-05-21 Diego Novillo <dnovillo@google.com>
722 * configure.ac: Remove call to AC_CHECK_GELF.
723 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
724 * acinclude.m4: Do not include ../config/libelf.m4
725 * Makefile.am (LIBELFLIBS): Define.
727 (AM_CPPFLAGS): Add $(LIBELFINC).
728 (ltosymtab_LDADD): Add $(LIBELFLIBS).
729 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
730 * lto-plugin.c: Always include <gelf.h>
731 * lto-symtab.c: Likewise.
732 * configure: Regenerate.
733 * Makefile.in: Regenerate.
735 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
737 * lto-plugin.c (libgcc_filename): New.
738 (all_symbols_read_handler): Pass libgcc to the linker.
739 (all_symbols_read_handler): Parse -libgcc
741 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
743 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
744 * Makefile.in: Regenerate.
745 * lto-plugin.c (add_output_files): Argument is now a FILE.
746 (exec_lto_wrapper): Use writeargv and pex.
748 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
751 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
752 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
755 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
757 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
759 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
761 * lto-plugin.c: Include libiberty.h.
762 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
765 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
767 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
770 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
772 * lto-plugin.c (plugin_file_info): Remove fd and elf.
773 (parse_table_entry): strdup entry->name and entry->comdat_key.
774 (free_1): Free name and comdat_key. Don't close the file. Don't call
776 (claim_file_handler): Always call elf_end.
778 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
780 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
781 -D_FILE_OFFSET_BITS=64
782 * Makefile.in: Regenerate
784 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
786 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
787 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
788 * Makefile.in: Regenerate.
789 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
790 * configure: Regenerate.
791 * configure.ac: Add AC_SUBST(target_noncanonical).
793 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
795 * lto-plugin.c: Include stdbool.h.
796 (debug, nop): Declare as bool.
798 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
800 * lto-plugin.c (nop): New.
801 (use_original_files): New.
802 (all_symbols_read_handler): Call use_original_files if nop is true.
803 (process_option): Parse the -nop option.
805 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
807 * lto-plugin.c (debug): New.
808 (exec_lto_wrapper): Print argv if debug is true.
809 (process_option): Process the -debug command line option.
811 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
813 * lto-plugin.c (process_option): The argument is now a single option,
814 not a space separated list.
816 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
818 * lto-plugin.c: Include sys/types.h and sys/wait.h
819 (output_files, num_output_files, lto_wrapper_argv,
820 lto_wrapper_num_args): New.
821 (free_2): Free output_files.
822 (write_resolution): Disable.
823 (add_output_files): New.
824 (exec_lto_wrapper): New.
825 (all_symbols_read_handler): Run lto-wrapper.
826 (claim_file_handler): Free lto_file.name and call elf_end.
827 (process_option): New.
829 2008-11-26 Rafael Espindola <espindola@google.com>
831 * lto-plugin.c (add_input_file): New.
832 (get_section): Return NULL if get_section fails.
833 (write_resolution): New.
834 (all_symbols_read_handler): Call add_input_file.
835 (claim_file_handler): Unlink the correct file.
836 (onload): Record add_input_file.
838 2008-09-23 Rafael Espindola <espindola@google.com>
840 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
841 Update the location of common.c.
842 * Makefile.in: Regenerate.
843 * common.c: Moved to gcc/lto.
844 * common.h: Moved to gcc/lto.
845 * lto-plugin.c: Update the location of common.h.
846 * lto-symtab.c: Update the location of common.h.
848 2008-09-23 Rafael Espindola <espindola@google.com>
850 * common.c: Include common.h.
851 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
853 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
856 2008-09-23 Rafael Espindola <espindola@google.com>
858 * lto-plugin.c (plugin_file_info): Add temp.
859 (cleanup_handler): Only delete temporary files.
860 (claim_file_handler): Initialize lto_file.temp.
862 2008-09-23 Rafael Espindola <espindola@google.com>
864 * plugin-api.h: Moved to include.
866 2008-09-23 Rafael Espindola <espindola@google.com>
868 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
871 2008-09-22 Rafael Espindola <espindola@google.com>
873 * plugin-api.h: Copy from binutils' cvs.
875 2008-09-22 Rafael Espindola <espindola@google.com>
877 * lto-symtab.c (get_symbols, add_symbols): Update signature.
878 * plugin-api.h: Copy from binutils' cvs.
880 2008-09-22 Rafael Espindola <espindola@google.com>
882 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
885 2008-09-10 Rafael Espindola <espindola@google.com>
887 * lto-plugin.c (onload): add missing break statements and asserts.
888 * lto-symtab.c (claim_file_handler): Make it static.
889 (all_symbols_read_handler): Make it static.
890 (all_file_handles): Make it static.
891 (num_file_handles): Make it static.
892 (register_claim_file): Make it static.
893 (register_object): Indent properly.
895 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
897 * Makefile.am (ltosymtab_LDADD): Add -lelf.
898 * Makefiel.in: Regenerate.
899 * lto-plugin.c: Include ar.h.
900 (claim_file_handler): Handle file->offset != 0.
901 * lto-symtab.c: Include gelf.h.
902 (all_file_handles): Change type.
903 (register_object): New.
904 (register_file): Add support for archives.
905 (resolve): Update to new type of all_file_handles.
906 (print): Update to new type of all_file_handles.
907 (free_all): Update to new type of all_file_handles.
908 (main): Update to new type of all_file_handles.
910 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
912 * lto-plugin.c (get_string_table): Remove.
913 (get_section): Use elf_strptr instead of get_string_table.
915 2008-09-08 Doug Kwan <dougkwan@google.com>
917 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
918 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
920 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
922 * Makefile.am (ltosymtab_SOURCES): add common.c.
923 (ltosymtab_CFLAGS): New.
924 (liblto_plugin_la_SOURCES): Add common.c.
925 * Makefile.in: Regenerate.
928 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
929 (plugin_symtab): New.
930 (plugin_file_info): New.
931 (register_all_symbols_read): New.
933 (claimed_files): New.
934 (num_claimed_files): New.
935 (translate): Don't drop the slot number.
938 (all_symbols_read_handler): New.
939 (claim_file_handler): Record every claimed file.
940 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
942 * lto-symtab.c: Include stdlib.h, string.h and common.h.
943 (current_file_handle): Remove.
944 (ld_plugin_all_symbols_read_handler): New.
945 (plugin_handle): New.
947 (all_file_handles): New.
948 (num_file_handles): New.
950 (register_all_symbols_read): New.
951 (add_symbols): Don't print the symbols, just record them.
952 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
954 (load_plugin): Use plugin_handle.
955 (register_file): Add the file handle to all_file_handles.
958 (unload_plugin): New.
960 (main): Call all_symbols_read_handler and free resources.
962 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
964 * Makefile.am (AM_CFLAGS): New.
965 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
966 (lib_LTLIBRARIES): New.
967 (liblto_plugin_la_SOURCES): New.
968 (liblto_plugin_la_LIBADD): New.
969 * Makefile.in: Regenerate.
970 * acinclude.m4: Don't include ../config/acx.m4 and
971 ../config/no-executables.m4.
972 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
974 * aclocal.m4: Regenerate.
975 * configure: Regenerate.
976 * configure.ac: Use AM_PROG_LIBTOOL.
978 * lto-symtab.c: Rewrite to use the plugin.
981 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
983 * configure: Regenerate.
984 * configure.ac: Use AC_CHECK_GELF.
985 * lto-symtab.c: Include gelf.h.
986 (get_string_table): Use size independent API.
987 (printTable): Use lld to print 64 bit integers.
989 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
991 * lto-symtab.c (parse_table_entry): Assert entry->kind and
992 entry->visibility are valid.
994 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
995 * lto-symtab.c (table_entry): Add comdat.
996 (parse_table_entry): Read comdat.
998 2008-08-21 Rafael Espindola <espindola@google.com>
1002 * acinclude.m4: New.
1005 * configure.ac: New.
1006 * lto-symtab.c: New.