1 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
3 * configure.ac (--with-libiberty): New configure option.
4 * configure: Regenerate.
5 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
7 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
8 (liblto_plugin_la_DEPENDENCIES): Use them.
9 * Makefile.in: Regenerate.
11 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14 * configure.ac: Check for -static-libgcc.
15 * configure: Regenerate.
17 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
21 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
22 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
23 over ../libiberty/pic/libiberty.a if the former exists.
24 * Makefile.in: Regenerated.
27 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
28 * Makefile.in: Regenerated.
30 2014-04-02 Richard Biener <rguenther@suse.de>
32 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
33 is set in COLLECT_GCC_OPTIONS.
35 2014-03-28 Richard Biener <rguenther@suse.de>
37 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
39 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
43 * configure: Regenerate.
44 * Makefile.am (AM_LDFLAGS): New variable.
45 (liblto_plugin_la_LDFLAGS): Add it.
46 * Makefile.in: Regenerate.
48 2013-09-20 Alan Modra <amodra@gmail.com>
50 * configure: Regenerate.
52 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
54 * configure: Regenerated.
56 2012-05-29 Joseph Myers <joseph@codesourcery.com>
58 * lto-plugin.c: Fix typo.
60 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
62 * configure: Regenerated.
64 2012-02-22 Kai Tietz <ktietz@redhat.com>
67 * lto-plugin.c (PRI_LL): New macro.
68 (dump_symtab): Use PRI_LL instead of ll in print.
69 (process_symtab): Use PRI_LL instead of ll in scan.
71 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
73 * configure: Regenerate.
75 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
77 * configure: Regenerate.
79 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
81 * configure: Regenerate.
83 2011-10-02 Jan Hubicka <jh@suse.cz>
86 * lto-plugin.c (get_symbols_v2): New variable.
87 (write_resolution): Use V2 API when available.
88 (onload): Handle LDPT_GET_SYMBOLS_V2.
90 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
91 Andi Kleen <ak@linux.intel.com>
94 * lto-plugin.c (sym_aux): Change id to unsigned long long.
95 (plugin_symtab): Likewise.
96 (dump_symtab): Likewise.
97 (resolve_conflicts): Likewise.
98 (process_symtab): Likewise.
100 2011-08-10 Richard Guenther <rguenther@suse.de>
104 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
105 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
106 * configure: Regenerate.
107 * Makefile.in: Likewise.
108 * aclocal.m4: Likewise.
110 2011-04-20 Jim Meyering <meyering@redhat.com>
112 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
114 2011-04-05 Richard Guenther <rguenther@suse.de>
117 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
119 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
121 * Makefile.in: Regenerate.
122 * aclocal.m4: Regenerate.
123 * configure: Regenerate.
125 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
127 * Makefile.am (all-local): Rename from 'all'.
128 * Makefile.in: Regenerate.
130 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
133 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
134 (liblto_plugin_la_LDFLAGS): Add -module.
135 (copy_lto_plugin): Renamed to...
136 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
138 * Makefile.in: Rebuild.
140 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
143 * Makefile.am (Wc): New helper for encoding -Wc,.
144 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
145 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
146 * Makefile.in: Regenerated.
148 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
152 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
155 * Makefile.am (Wl): New helper for encoding -Wl,.
156 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
157 * Makefile.in: Regenerated.
159 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
162 * Makefile.am (Wl): New helper for encoding -Wl,.
163 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
164 * Makefile.in: Regenerated.
166 2011-01-25 Ian Lance Taylor <iant@google.com>
168 * lto-plugin.c (gold_version): New static variable.
169 (all_symbols_read_handler): Don't check pass_through_items if
170 using gold 1.11 or later.
171 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
173 2011-01-12 Richard Guenther <rguenther@suse.de>
176 * lto-plugin.c (parse_table_entry): Use memcpy to access
179 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
181 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
182 * Makefile.in: Regenerate.
184 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
188 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
190 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
191 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
192 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
193 * Makefile.in: Regenerate.
195 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
199 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
200 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
201 * configure: Regenerate.
202 * config.h.in: Likewise.
204 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
208 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
209 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
210 override -bindir setting.
211 * aclocal.m4: Regenerate.
212 * configure: Regenerate.
213 * Makefile.in: Regenerate.
215 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
217 * config.h.in: Regenerated.
218 * configure: Regenerated.
219 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
220 * lto-plugin.c (WIFEXITED): Define default.
221 (WEXITSTATUS): Likeiwse.
223 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
225 * config.h.in: Regenerated.
226 * configure: Regenerated.
227 * Makefile.in: Regenerated.
228 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
229 * lto-plugin.c: Include sys/wait.h conditionally.
230 * aclocal.m4: Regenerated.
232 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
234 * lto-plugin.c (add_output_files): Fix memory leak.
236 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
240 * configure.ac: Add AC_TYPE_INT64_T test.
241 * config.h.in: Regenerate.
242 * configure: Likewise.
243 * lto-plugin.c (debug): Use char not bool.
245 (check_1): Rename from check, and use int not bool for gate argument.
246 (check): Macro wrapper for the above to coerce gate argument into
247 boolean-valued integer in case it has pointer type.
248 (parse_table_entry): Use 0 not false.
249 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
250 into two 32-bit parts and printing as hex ints.
252 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
255 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
257 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
260 * lto-plugin.h: Delete.
261 * lto-plugin-elf.c: Likewise.
262 * lto-plugin-coff.c: Likewise.
263 * configure.ac: Don't use libelf, don't source config.gcc.
264 (LIBELFLIBS): Delete.
266 (LTO_FORMAT): Delete.
267 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
268 (config.h): Add AC_CONFIG_HEADERS directive.
269 * Makefile.am (LIBELFLIBS): Delete.
271 (LTO_FORMAT): Delete.
273 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
274 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
275 any object-format-specific source file in the link.
276 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
277 * config.h.in: Generate.
278 * configure: Regenerate.
279 * Makefile.in: Likewise.
280 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
281 (LTO_SEGMENT_NAME): New definition.
282 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
283 (LTO_SECTION_PREFIX_LEN): New definition.
284 (struct sym_aux): Struct definition moved here from lto-plugin.h.
285 (struct plugin_symtab): Likewise.
286 (struct plugin_objfile): Likewise.
287 (struct plugin_objfile): New struct def.
288 (enum symbol_style): New enum type.
289 (add_symbols): Make static.
290 (claimed_files): Likewise.
291 (num_claimed_files): Likewise.
292 (sym_style): New global.
293 (check): Make static.
294 (parse_table_entry): Likewise. Respect sym_style when extracting
295 symbol from symtab entry.
296 (translate): Make static.
297 (resolve_conflicts): Likewise.
298 (process_symtab): New function, per-section callback version of
299 old object-format-specific handling from deleted lto-plugin-elf.c.
300 (claim_file_handler): Convert ELF-specific version from deleted
301 lto-plugin-elf.c to simple_object interface and move here.
302 (process_options): Allow new '-sym-style=' option.
303 (onload): Don't call deleted onload_format_checks hook.
305 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
307 * lto-plugin.c (dump_symtab): Correct printf argument type.
308 (finish_conflict_resolution): Initialize resolution.
310 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
313 * configure.ac: Add AC_CANONICAL_SYSTEM.
314 * configure: Regenerated.
316 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
318 * configure.ac: Source config.gcc to determine lto_binary_reader.
319 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
320 * Makefile.am (LTO_FORMAT): Import.
321 (liblto_plugin_la_SOURCES): Add object format dependent module
322 defined by LTO_FORMAT.
323 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
324 and work around libtool warning.
325 * configure: Regenerate.
326 * Makefile.in: Likewise.
327 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
328 (struct sym_aux): Likewise.
329 (struct plugin_symtab): Likewise.
330 (struct plugin_file_info): Likewise.
331 (LTO_SECTION_PREFIX): Likewise.
332 (add_symbols): Make non-static.
333 (claimed_files): Likewise.
334 (num_claimed_files): Likewise.
336 (parse_table_entry): Likewise.
337 (translate): Likewise.
338 (resolve_conflicts): Likewise.
339 (process_symtab): Move to new lto-plugin-elf.c object format dependent
341 (claim_file_handler): Likewise, and make non-static.
342 (onload): Call new onload_format_checks function.
343 * lto-plugin.h: New file.
344 (LTO_SECTION_PREFIX): Move here.
345 (struct sym_aux): Likewise.
346 (struct plugin_symtab): Likewise.
347 (struct plugin_file_info): Likewise.
348 (claim_file_handler): Add new function prototype.
349 (onload_format_checks): Likewise.
350 (check): Declare extern.
351 (translate): Likewise.
352 (parse_table_entry): Likewise.
353 (resolve_conflicts): Likewise.
354 (add_symbols): Likewise.
355 (claimed_files): Likewise.
356 (num_claimed_files): Likewise.
357 * lto-plugin-elf.c (process_symtab): Move here.
358 (claim_file_handler): Likewise, and make non-static.
359 (onload_format_checks): New function factored out from onload.
360 * lto-plugin-coff.c (claim_file_handler): New function stub.
361 (onload_format_checks): Likewise.
363 2010-08-05 Andi Kleen <ak@linux.intel.com>
365 * lto-plugin.c: Include <hashtab.h>
366 (sym_aux): Add next_conflict field to save conflict chains.
367 (plugin_file_info): Add conflicts symtab.
368 (parse_table_entry): Initialize aux->next_conflict.
369 (process_symtab): Increment found.
371 (finish_conflict_resolution): Add.
373 (write_resolution): Remove symbols loop and move into
374 dump_symtab. Call dump_symtab for main symbol and conflicts table.
375 Call free_symtab to free conflicts table.
379 (symbol_strength): Add.
380 (resolve_conflicts): Add.
381 (claim_file_handler): Add n variable. Check return value of
382 process_symtab. Call resolve_conflicts.
384 2010-07-27 Andi Kleen <ak@linux.intel.com>
386 * lto-plugin.c (translate): Remove debug fprintf.
388 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
391 * lto-plugin.c (translate): Cast to unsigned long.
393 2010-07-23 Andi Kleen <ak@linux.intel.com>
396 * lto-plugin.c (sym_aux): Add.
397 (plugin_symtab): Remove slots. Add aux and id.
398 (parse_table_entry): Change to use aux instead of slots.
399 (LTO_SECTION_PREFIX): Add.
400 (translate): Improve buffer allocation. Change to append
401 symbols to existing out buffer.
402 (get_section): Remove.
403 (process_symtab): Add.
404 (free_2): Free symtab->aux.
405 (write_resolution): Handle aux instead of slots.
406 Print sub id to resolution file.
407 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
408 calls with call to process_symtab.
410 2010-07-22 Richard Guenther <rguenther@suse.de>
412 * Makefile.am: New copy_lto_plugin rule to install the plugin
414 * Makefile.in: Regenerated.
416 2010-05-21 Richard Guenther <rguenther@suse.de>
418 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
420 2010-05-07 Richard Guenther <rguenther@suse.de>
422 * lto-plugin.c (free_2): Do not free resolution_file.
423 (write_resolution): Check that we were passed a resolution file.
424 (all_symbols_read_handler): Adjust.
425 (cleanup_handler): Do not remove the resolution file.
426 (process_option): Handle -fresolution=.
428 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
431 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
432 * Makefile.in: Regenerate.
434 2010-04-23 Richard Guenther <rguenther@suse.de>
437 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
438 (translate): Likewise.
439 (all_symbols_read_handler): Likewise.
440 (claim_file_handler): Likewise.
441 (process_option): Likewise.
442 (add_output_files): Likewise. Remove filename length limit.
444 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
446 * Makefile.in: Regenerate.
447 * aclocal.m4: Regenerate.
449 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
452 * lto-plugin.c (cleanup_handler): Delete temporary output files.
454 2010-01-11 Richard Guenther <rguenther@suse.de>
457 * Makefile.am: Disable dependencies.
458 * Makefile.in: Regenerated.
460 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
463 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
466 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
469 * configure: Regenerated.
470 * Makefile.in: Likewise.
472 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
475 * lto-plugin.c (claim_file_handler): Print offsets in hex.
477 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
479 * lto-plugin.c (write_resolution): Assume resolution_file is set.
480 Print the symbol name.
481 (all_symbols_read_handler): Create a resolution file.
483 (cleanup_handler): Remove the resolution file.
484 (process_option): Drop the -resolution option.
486 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
488 * lto-plugin.c (temp_obj_dir_name): Remove.
489 (arguments_file_name): New.
490 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
491 (exec_lto_wrapper): Create arguments file with make_temp_file.
492 (cleanup_handler): Don't remove the temporary directory. Remove the
494 (onload): Don't create the temporary directory.
496 2009-11-04 Richard Guenther <rguenther@suse.de>
497 Rafael Avila de Espindola <espindola@google.com>
499 * lto-plugin.c (plugin_file_info): Remove temp field.
500 (cleanup_handler): Don't delete temporary objects.
501 (claim_file_handler): Don't create temporary objects.
503 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
505 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
507 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
510 * lto-plugin.c (claim_file_handler): Close files that we created.
512 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
514 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
517 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
520 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
521 * configure: Regenerate.
523 2009-10-26 Richard Guenther <rguenther@suse.de>
525 * configure.ac: Use AM_MAINTAINER_MODE.
526 * acinclude.m4: Remove.
527 * configure: Re-generate.
528 * Makefile.in: Likewise.
529 * aclocal.m4: Likewise.
531 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
534 * configure: Regenerate.
535 * configure.ac: Add AC_TYPE_UINT64_T.
537 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
539 * lto-plugin.c (message): New variable.
540 (check): New function.
541 (parse_table_entry, translate, write_resolution,add_output_files,
542 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
544 (cleanup_handler): Use check instead of assert. Remove the arguments
547 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
549 * lto-plugin.c (resolution_file): New.
550 (free_1): Update comment.
551 (free_2): Free resolution_file.
552 (write_resolution): Write resolution to specified file. Use the
553 syms array from the symbol table.
554 (all_symbols_read_handler): Delay call to free_1 past call to
556 (process_option): Add a -resolution option.
558 2009-10-13 Richard Guenther <rguenther@suse.de>
560 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
562 * Makefile.in: Regenerated.
564 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
566 * lto-plugin.c (add_input_library): New.
567 (all_symbols_read_handler): Use add_input_library for items that
569 (process_option): Fit in 80 columns.
570 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
572 2009-10-02 Diego Novillo <dnovillo@google.com>
574 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
575 and -D_FILE_OFFSET_BITS=64.
576 * configure.ac: Add AC_SYS_LARGEFILE.
577 * configure: Regenerate.
578 * Makefile.in: Regenerate.
579 * lto-plugin.c: Fix copyright boilerplate.
581 2009-10-02 Diego Novillo <dnovillo@google.com>
583 * Makefile.am (ACLOCAL_AMFLAGS): Define.
584 * aclocal.m4: Regenerate with aclocal-2.64
585 * acinclude.m4: Remove.
586 * Makefile.in: Regenerate with automake-1.11
587 * configure.ac (AC_PREREQ): Update to 2.64.
588 * configure: Regenerate.
590 2009-10-02 Diego Novillo <dnovillo@google.com>
592 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
593 and -D_FILE_OFFSET_BITS=64.
594 * configure.ac: Add AC_SYS_LARGEFILE.
595 * configure: Regenerate.
596 * Makefile.in: Regenerate.
597 * lto-plugin.c: Fix copyright boilerplate.
599 2009-10-02 Diego Novillo <dnovillo@google.com>
601 * Makefile.am (ACLOCAL_AMFLAGS): Define.
602 * aclocal.m4: Regenerate with aclocal-2.64
603 * acinclude.m4: Remove.
604 * Makefile.in: Regenerate with automake-1.11
605 * configure.ac (AC_PREREQ): Update to 2.64.
606 * configure: Regenerate.
608 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
610 * Makefile.am (liblto_plugin_la_SOURCES): Remove
611 $(top_srcdir)/../gcc/lto/common.c
612 * Makefile.in: Regenerate.
614 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
616 * lto-plugin.c (pass_through_items): New.
617 (num_pass_through_items): New.
618 (all_symbols_read_handler): Update to use the -pass-through option.
619 (process_option): Replace -libgcc with -pass-through.
621 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
623 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
624 register_cleanup to be set.
626 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
628 * Makefile.am: Remove all reference to ltosymtab.
629 * Makefile.in: Regenerate.
630 * lto-symtab.c: Remove.
632 2009-05-21 Diego Novillo <dnovillo@google.com>
634 * configure.ac: Remove call to AC_CHECK_GELF.
635 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
636 * acinclude.m4: Do not include ../config/libelf.m4
637 * Makefile.am (LIBELFLIBS): Define.
639 (AM_CPPFLAGS): Add $(LIBELFINC).
640 (ltosymtab_LDADD): Add $(LIBELFLIBS).
641 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
642 * lto-plugin.c: Always include <gelf.h>
643 * lto-symtab.c: Likewise.
644 * configure: Regenerate.
645 * Makefile.in: Regenerate.
647 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
649 * lto-plugin.c (libgcc_filename): New.
650 (all_symbols_read_handler): Pass libgcc to the linker.
651 (all_symbols_read_handler): Parse -libgcc
653 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
655 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
656 * Makefile.in: Regenerate.
657 * lto-plugin.c (add_output_files): Argument is now a FILE.
658 (exec_lto_wrapper): Use writeargv and pex.
660 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
663 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
664 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
667 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
669 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
671 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
673 * lto-plugin.c: Include libiberty.h.
674 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
677 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
679 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
682 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
684 * lto-plugin.c (plugin_file_info): Remove fd and elf.
685 (parse_table_entry): strdup entry->name and entry->comdat_key.
686 (free_1): Free name and comdat_key. Don't close the file. Don't call
688 (claim_file_handler): Always call elf_end.
690 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
692 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
693 -D_FILE_OFFSET_BITS=64
694 * Makefile.in: Regenerate
696 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
698 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
699 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
700 * Makefile.in: Regenerate.
701 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
702 * configure: Regenerate.
703 * configure.ac: Add AC_SUBST(target_noncanonical).
705 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
707 * lto-plugin.c: Include stdbool.h.
708 (debug, nop): Declare as bool.
710 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
712 * lto-plugin.c (nop): New.
713 (use_original_files): New.
714 (all_symbols_read_handler): Call use_original_files if nop is true.
715 (process_option): Parse the -nop option.
717 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
719 * lto-plugin.c (debug): New.
720 (exec_lto_wrapper): Print argv if debug is true.
721 (process_option): Process the -debug command line option.
723 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
725 * lto-plugin.c (process_option): The argument is now a single option,
726 not a space separated list.
728 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
730 * lto-plugin.c: Include sys/types.h and sys/wait.h
731 (output_files, num_output_files, lto_wrapper_argv,
732 lto_wrapper_num_args): New.
733 (free_2): Free output_files.
734 (write_resolution): Disable.
735 (add_output_files): New.
736 (exec_lto_wrapper): New.
737 (all_symbols_read_handler): Run lto-wrapper.
738 (claim_file_handler): Free lto_file.name and call elf_end.
739 (process_option): New.
741 2008-11-26 Rafael Espindola <espindola@google.com>
743 * lto-plugin.c (add_input_file): New.
744 (get_section): Return NULL if get_section fails.
745 (write_resolution): New.
746 (all_symbols_read_handler): Call add_input_file.
747 (claim_file_handler): Unlink the correct file.
748 (onload): Record add_input_file.
750 2008-09-23 Rafael Espindola <espindola@google.com>
752 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
753 Update the location of common.c.
754 * Makefile.in: Regenerate.
755 * common.c: Moved to gcc/lto.
756 * common.h: Moved to gcc/lto.
757 * lto-plugin.c: Update the location of common.h.
758 * lto-symtab.c: Update the location of common.h.
760 2008-09-23 Rafael Espindola <espindola@google.com>
762 * common.c: Include common.h.
763 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
765 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
768 2008-09-23 Rafael Espindola <espindola@google.com>
770 * lto-plugin.c (plugin_file_info): Add temp.
771 (cleanup_handler): Only delete temporary files.
772 (claim_file_handler): Initialize lto_file.temp.
774 2008-09-23 Rafael Espindola <espindola@google.com>
776 * plugin-api.h: Moved to include.
778 2008-09-23 Rafael Espindola <espindola@google.com>
780 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
783 2008-09-22 Rafael Espindola <espindola@google.com>
785 * plugin-api.h: Copy from binutils' cvs.
787 2008-09-22 Rafael Espindola <espindola@google.com>
789 * lto-symtab.c (get_symbols, add_symbols): Update signature.
790 * plugin-api.h: Copy from binutils' cvs.
792 2008-09-22 Rafael Espindola <espindola@google.com>
794 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
797 2008-09-10 Rafael Espindola <espindola@google.com>
799 * lto-plugin.c (onload): add missing break statements and asserts.
800 * lto-symtab.c (claim_file_handler): Make it static.
801 (all_symbols_read_handler): Make it static.
802 (all_file_handles): Make it static.
803 (num_file_handles): Make it static.
804 (register_claim_file): Make it static.
805 (register_object): Indent properly.
807 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
809 * Makefile.am (ltosymtab_LDADD): Add -lelf.
810 * Makefiel.in: Regenerate.
811 * lto-plugin.c: Include ar.h.
812 (claim_file_handler): Handle file->offset != 0.
813 * lto-symtab.c: Include gelf.h.
814 (all_file_handles): Change type.
815 (register_object): New.
816 (register_file): Add support for archives.
817 (resolve): Update to new type of all_file_handles.
818 (print): Update to new type of all_file_handles.
819 (free_all): Update to new type of all_file_handles.
820 (main): Update to new type of all_file_handles.
822 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
824 * lto-plugin.c (get_string_table): Remove.
825 (get_section): Use elf_strptr instead of get_string_table.
827 2008-09-08 Doug Kwan <dougkwan@google.com>
829 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
830 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
832 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
834 * Makefile.am (ltosymtab_SOURCES): add common.c.
835 (ltosymtab_CFLAGS): New.
836 (liblto_plugin_la_SOURCES): Add common.c.
837 * Makefile.in: Regenerate.
840 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
841 (plugin_symtab): New.
842 (plugin_file_info): New.
843 (register_all_symbols_read): New.
845 (claimed_files): New.
846 (num_claimed_files): New.
847 (translate): Don't drop the slot number.
850 (all_symbols_read_handler): New.
851 (claim_file_handler): Record every claimed file.
852 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
854 * lto-symtab.c: Include stdlib.h, string.h and common.h.
855 (current_file_handle): Remove.
856 (ld_plugin_all_symbols_read_handler): New.
857 (plugin_handle): New.
859 (all_file_handles): New.
860 (num_file_handles): New.
862 (register_all_symbols_read): New.
863 (add_symbols): Don't print the symbols, just record them.
864 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
866 (load_plugin): Use plugin_handle.
867 (register_file): Add the file handle to all_file_handles.
870 (unload_plugin): New.
872 (main): Call all_symbols_read_handler and free resources.
874 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
876 * Makefile.am (AM_CFLAGS): New.
877 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
878 (lib_LTLIBRARIES): New.
879 (liblto_plugin_la_SOURCES): New.
880 (liblto_plugin_la_LIBADD): New.
881 * Makefile.in: Regenerate.
882 * acinclude.m4: Don't include ../config/acx.m4 and
883 ../config/no-executables.m4.
884 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
886 * aclocal.m4: Regenerate.
887 * configure: Regenerate.
888 * configure.ac: Use AM_PROG_LIBTOOL.
890 * lto-symtab.c: Rewrite to use the plugin.
893 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
895 * configure: Regenerate.
896 * configure.ac: Use AC_CHECK_GELF.
897 * lto-symtab.c: Include gelf.h.
898 (get_string_table): Use size independent API.
899 (printTable): Use lld to print 64 bit integers.
901 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
903 * lto-symtab.c (parse_table_entry): Assert entry->kind and
904 entry->visibility are valid.
906 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
907 * lto-symtab.c (table_entry): Add comdat.
908 (parse_table_entry): Read comdat.
910 2008-08-21 Rafael Espindola <espindola@google.com>