1 2013-09-20 Alan Modra <amodra@gmail.com>
3 * configure: Regenerate.
5 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
7 * configure: Regenerated.
9 2012-05-29 Joseph Myers <joseph@codesourcery.com>
11 * lto-plugin.c: Fix typo.
13 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
15 * configure: Regenerated.
17 2012-02-22 Kai Tietz <ktietz@redhat.com>
20 * lto-plugin.c (PRI_LL): New macro.
21 (dump_symtab): Use PRI_LL instead of ll in print.
22 (process_symtab): Use PRI_LL instead of ll in scan.
24 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
26 * configure: Regenerate.
28 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
30 * configure: Regenerate.
32 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
34 * configure: Regenerate.
36 2011-10-02 Jan Hubicka <jh@suse.cz>
39 * lto-plugin.c (get_symbols_v2): New variable.
40 (write_resolution): Use V2 API when available.
41 (onload): Handle LDPT_GET_SYMBOLS_V2.
43 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
44 Andi Kleen <ak@linux.intel.com>
47 * lto-plugin.c (sym_aux): Change id to unsigned long long.
48 (plugin_symtab): Likewise.
49 (dump_symtab): Likewise.
50 (resolve_conflicts): Likewise.
51 (process_symtab): Likewise.
53 2011-08-10 Richard Guenther <rguenther@suse.de>
57 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
58 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
59 * configure: Regenerate.
60 * Makefile.in: Likewise.
61 * aclocal.m4: Likewise.
63 2011-04-20 Jim Meyering <meyering@redhat.com>
65 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
67 2011-04-05 Richard Guenther <rguenther@suse.de>
70 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
72 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74 * Makefile.in: Regenerate.
75 * aclocal.m4: Regenerate.
76 * configure: Regenerate.
78 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80 * Makefile.am (all-local): Rename from 'all'.
81 * Makefile.in: Regenerate.
83 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
86 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
87 (liblto_plugin_la_LDFLAGS): Add -module.
88 (copy_lto_plugin): Renamed to...
89 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
91 * Makefile.in: Rebuild.
93 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
96 * Makefile.am (Wc): New helper for encoding -Wc,.
97 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
98 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
99 * Makefile.in: Regenerated.
101 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
105 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
108 * Makefile.am (Wl): New helper for encoding -Wl,.
109 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
110 * Makefile.in: Regenerated.
112 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
115 * Makefile.am (Wl): New helper for encoding -Wl,.
116 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
117 * Makefile.in: Regenerated.
119 2011-01-25 Ian Lance Taylor <iant@google.com>
121 * lto-plugin.c (gold_version): New static variable.
122 (all_symbols_read_handler): Don't check pass_through_items if
123 using gold 1.11 or later.
124 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
126 2011-01-12 Richard Guenther <rguenther@suse.de>
129 * lto-plugin.c (parse_table_entry): Use memcpy to access
132 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
134 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
135 * Makefile.in: Regenerate.
137 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
141 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
143 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
144 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
145 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
146 * Makefile.in: Regenerate.
148 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
152 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
153 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
154 * configure: Regenerate.
155 * config.h.in: Likewise.
157 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
161 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
162 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
163 override -bindir setting.
164 * aclocal.m4: Regenerate.
165 * configure: Regenerate.
166 * Makefile.in: Regenerate.
168 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
170 * config.h.in: Regenerated.
171 * configure: Regenerated.
172 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
173 * lto-plugin.c (WIFEXITED): Define default.
174 (WEXITSTATUS): Likeiwse.
176 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
178 * config.h.in: Regenerated.
179 * configure: Regenerated.
180 * Makefile.in: Regenerated.
181 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
182 * lto-plugin.c: Include sys/wait.h conditionally.
183 * aclocal.m4: Regenerated.
185 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
187 * lto-plugin.c (add_output_files): Fix memory leak.
189 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
193 * configure.ac: Add AC_TYPE_INT64_T test.
194 * config.h.in: Regenerate.
195 * configure: Likewise.
196 * lto-plugin.c (debug): Use char not bool.
198 (check_1): Rename from check, and use int not bool for gate argument.
199 (check): Macro wrapper for the above to coerce gate argument into
200 boolean-valued integer in case it has pointer type.
201 (parse_table_entry): Use 0 not false.
202 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
203 into two 32-bit parts and printing as hex ints.
205 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
208 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
210 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
213 * lto-plugin.h: Delete.
214 * lto-plugin-elf.c: Likewise.
215 * lto-plugin-coff.c: Likewise.
216 * configure.ac: Don't use libelf, don't source config.gcc.
217 (LIBELFLIBS): Delete.
219 (LTO_FORMAT): Delete.
220 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
221 (config.h): Add AC_CONFIG_HEADERS directive.
222 * Makefile.am (LIBELFLIBS): Delete.
224 (LTO_FORMAT): Delete.
226 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
227 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
228 any object-format-specific source file in the link.
229 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
230 * config.h.in: Generate.
231 * configure: Regenerate.
232 * Makefile.in: Likewise.
233 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
234 (LTO_SEGMENT_NAME): New definition.
235 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
236 (LTO_SECTION_PREFIX_LEN): New definition.
237 (struct sym_aux): Struct definition moved here from lto-plugin.h.
238 (struct plugin_symtab): Likewise.
239 (struct plugin_objfile): Likewise.
240 (struct plugin_objfile): New struct def.
241 (enum symbol_style): New enum type.
242 (add_symbols): Make static.
243 (claimed_files): Likewise.
244 (num_claimed_files): Likewise.
245 (sym_style): New global.
246 (check): Make static.
247 (parse_table_entry): Likewise. Respect sym_style when extracting
248 symbol from symtab entry.
249 (translate): Make static.
250 (resolve_conflicts): Likewise.
251 (process_symtab): New function, per-section callback version of
252 old object-format-specific handling from deleted lto-plugin-elf.c.
253 (claim_file_handler): Convert ELF-specific version from deleted
254 lto-plugin-elf.c to simple_object interface and move here.
255 (process_options): Allow new '-sym-style=' option.
256 (onload): Don't call deleted onload_format_checks hook.
258 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
260 * lto-plugin.c (dump_symtab): Correct printf argument type.
261 (finish_conflict_resolution): Initialize resolution.
263 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
266 * configure.ac: Add AC_CANONICAL_SYSTEM.
267 * configure: Regenerated.
269 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
271 * configure.ac: Source config.gcc to determine lto_binary_reader.
272 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
273 * Makefile.am (LTO_FORMAT): Import.
274 (liblto_plugin_la_SOURCES): Add object format dependent module
275 defined by LTO_FORMAT.
276 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
277 and work around libtool warning.
278 * configure: Regenerate.
279 * Makefile.in: Likewise.
280 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
281 (struct sym_aux): Likewise.
282 (struct plugin_symtab): Likewise.
283 (struct plugin_file_info): Likewise.
284 (LTO_SECTION_PREFIX): Likewise.
285 (add_symbols): Make non-static.
286 (claimed_files): Likewise.
287 (num_claimed_files): Likewise.
289 (parse_table_entry): Likewise.
290 (translate): Likewise.
291 (resolve_conflicts): Likewise.
292 (process_symtab): Move to new lto-plugin-elf.c object format dependent
294 (claim_file_handler): Likewise, and make non-static.
295 (onload): Call new onload_format_checks function.
296 * lto-plugin.h: New file.
297 (LTO_SECTION_PREFIX): Move here.
298 (struct sym_aux): Likewise.
299 (struct plugin_symtab): Likewise.
300 (struct plugin_file_info): Likewise.
301 (claim_file_handler): Add new function prototype.
302 (onload_format_checks): Likewise.
303 (check): Declare extern.
304 (translate): Likewise.
305 (parse_table_entry): Likewise.
306 (resolve_conflicts): Likewise.
307 (add_symbols): Likewise.
308 (claimed_files): Likewise.
309 (num_claimed_files): Likewise.
310 * lto-plugin-elf.c (process_symtab): Move here.
311 (claim_file_handler): Likewise, and make non-static.
312 (onload_format_checks): New function factored out from onload.
313 * lto-plugin-coff.c (claim_file_handler): New function stub.
314 (onload_format_checks): Likewise.
316 2010-08-05 Andi Kleen <ak@linux.intel.com>
318 * lto-plugin.c: Include <hashtab.h>
319 (sym_aux): Add next_conflict field to save conflict chains.
320 (plugin_file_info): Add conflicts symtab.
321 (parse_table_entry): Initialize aux->next_conflict.
322 (process_symtab): Increment found.
324 (finish_conflict_resolution): Add.
326 (write_resolution): Remove symbols loop and move into
327 dump_symtab. Call dump_symtab for main symbol and conflicts table.
328 Call free_symtab to free conflicts table.
332 (symbol_strength): Add.
333 (resolve_conflicts): Add.
334 (claim_file_handler): Add n variable. Check return value of
335 process_symtab. Call resolve_conflicts.
337 2010-07-27 Andi Kleen <ak@linux.intel.com>
339 * lto-plugin.c (translate): Remove debug fprintf.
341 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
344 * lto-plugin.c (translate): Cast to unsigned long.
346 2010-07-23 Andi Kleen <ak@linux.intel.com>
349 * lto-plugin.c (sym_aux): Add.
350 (plugin_symtab): Remove slots. Add aux and id.
351 (parse_table_entry): Change to use aux instead of slots.
352 (LTO_SECTION_PREFIX): Add.
353 (translate): Improve buffer allocation. Change to append
354 symbols to existing out buffer.
355 (get_section): Remove.
356 (process_symtab): Add.
357 (free_2): Free symtab->aux.
358 (write_resolution): Handle aux instead of slots.
359 Print sub id to resolution file.
360 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
361 calls with call to process_symtab.
363 2010-07-22 Richard Guenther <rguenther@suse.de>
365 * Makefile.am: New copy_lto_plugin rule to install the plugin
367 * Makefile.in: Regenerated.
369 2010-05-21 Richard Guenther <rguenther@suse.de>
371 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
373 2010-05-07 Richard Guenther <rguenther@suse.de>
375 * lto-plugin.c (free_2): Do not free resolution_file.
376 (write_resolution): Check that we were passed a resolution file.
377 (all_symbols_read_handler): Adjust.
378 (cleanup_handler): Do not remove the resolution file.
379 (process_option): Handle -fresolution=.
381 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
384 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
385 * Makefile.in: Regenerate.
387 2010-04-23 Richard Guenther <rguenther@suse.de>
390 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
391 (translate): Likewise.
392 (all_symbols_read_handler): Likewise.
393 (claim_file_handler): Likewise.
394 (process_option): Likewise.
395 (add_output_files): Likewise. Remove filename length limit.
397 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
399 * Makefile.in: Regenerate.
400 * aclocal.m4: Regenerate.
402 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
405 * lto-plugin.c (cleanup_handler): Delete temporary output files.
407 2010-01-11 Richard Guenther <rguenther@suse.de>
410 * Makefile.am: Disable dependencies.
411 * Makefile.in: Regenerated.
413 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
416 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
419 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
422 * configure: Regenerated.
423 * Makefile.in: Likewise.
425 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
428 * lto-plugin.c (claim_file_handler): Print offsets in hex.
430 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
432 * lto-plugin.c (write_resolution): Assume resolution_file is set.
433 Print the symbol name.
434 (all_symbols_read_handler): Create a resolution file.
436 (cleanup_handler): Remove the resolution file.
437 (process_option): Drop the -resolution option.
439 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
441 * lto-plugin.c (temp_obj_dir_name): Remove.
442 (arguments_file_name): New.
443 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
444 (exec_lto_wrapper): Create arguments file with make_temp_file.
445 (cleanup_handler): Don't remove the temporary directory. Remove the
447 (onload): Don't create the temporary directory.
449 2009-11-04 Richard Guenther <rguenther@suse.de>
450 Rafael Avila de Espindola <espindola@google.com>
452 * lto-plugin.c (plugin_file_info): Remove temp field.
453 (cleanup_handler): Don't delete temporary objects.
454 (claim_file_handler): Don't create temporary objects.
456 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
458 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
460 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
463 * lto-plugin.c (claim_file_handler): Close files that we created.
465 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
467 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
470 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
473 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
474 * configure: Regenerate.
476 2009-10-26 Richard Guenther <rguenther@suse.de>
478 * configure.ac: Use AM_MAINTAINER_MODE.
479 * acinclude.m4: Remove.
480 * configure: Re-generate.
481 * Makefile.in: Likewise.
482 * aclocal.m4: Likewise.
484 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
487 * configure: Regenerate.
488 * configure.ac: Add AC_TYPE_UINT64_T.
490 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
492 * lto-plugin.c (message): New variable.
493 (check): New function.
494 (parse_table_entry, translate, write_resolution,add_output_files,
495 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
497 (cleanup_handler): Use check instead of assert. Remove the arguments
500 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
502 * lto-plugin.c (resolution_file): New.
503 (free_1): Update comment.
504 (free_2): Free resolution_file.
505 (write_resolution): Write resolution to specified file. Use the
506 syms array from the symbol table.
507 (all_symbols_read_handler): Delay call to free_1 past call to
509 (process_option): Add a -resolution option.
511 2009-10-13 Richard Guenther <rguenther@suse.de>
513 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
515 * Makefile.in: Regenerated.
517 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
519 * lto-plugin.c (add_input_library): New.
520 (all_symbols_read_handler): Use add_input_library for items that
522 (process_option): Fit in 80 columns.
523 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
525 2009-10-02 Diego Novillo <dnovillo@google.com>
527 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
528 and -D_FILE_OFFSET_BITS=64.
529 * configure.ac: Add AC_SYS_LARGEFILE.
530 * configure: Regenerate.
531 * Makefile.in: Regenerate.
532 * lto-plugin.c: Fix copyright boilerplate.
534 2009-10-02 Diego Novillo <dnovillo@google.com>
536 * Makefile.am (ACLOCAL_AMFLAGS): Define.
537 * aclocal.m4: Regenerate with aclocal-2.64
538 * acinclude.m4: Remove.
539 * Makefile.in: Regenerate with automake-1.11
540 * configure.ac (AC_PREREQ): Update to 2.64.
541 * configure: Regenerate.
543 2009-10-02 Diego Novillo <dnovillo@google.com>
545 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
546 and -D_FILE_OFFSET_BITS=64.
547 * configure.ac: Add AC_SYS_LARGEFILE.
548 * configure: Regenerate.
549 * Makefile.in: Regenerate.
550 * lto-plugin.c: Fix copyright boilerplate.
552 2009-10-02 Diego Novillo <dnovillo@google.com>
554 * Makefile.am (ACLOCAL_AMFLAGS): Define.
555 * aclocal.m4: Regenerate with aclocal-2.64
556 * acinclude.m4: Remove.
557 * Makefile.in: Regenerate with automake-1.11
558 * configure.ac (AC_PREREQ): Update to 2.64.
559 * configure: Regenerate.
561 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
563 * Makefile.am (liblto_plugin_la_SOURCES): Remove
564 $(top_srcdir)/../gcc/lto/common.c
565 * Makefile.in: Regenerate.
567 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
569 * lto-plugin.c (pass_through_items): New.
570 (num_pass_through_items): New.
571 (all_symbols_read_handler): Update to use the -pass-through option.
572 (process_option): Replace -libgcc with -pass-through.
574 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
576 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
577 register_cleanup to be set.
579 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
581 * Makefile.am: Remove all reference to ltosymtab.
582 * Makefile.in: Regenerate.
583 * lto-symtab.c: Remove.
585 2009-05-21 Diego Novillo <dnovillo@google.com>
587 * configure.ac: Remove call to AC_CHECK_GELF.
588 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
589 * acinclude.m4: Do not include ../config/libelf.m4
590 * Makefile.am (LIBELFLIBS): Define.
592 (AM_CPPFLAGS): Add $(LIBELFINC).
593 (ltosymtab_LDADD): Add $(LIBELFLIBS).
594 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
595 * lto-plugin.c: Always include <gelf.h>
596 * lto-symtab.c: Likewise.
597 * configure: Regenerate.
598 * Makefile.in: Regenerate.
600 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
602 * lto-plugin.c (libgcc_filename): New.
603 (all_symbols_read_handler): Pass libgcc to the linker.
604 (all_symbols_read_handler): Parse -libgcc
606 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
608 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
609 * Makefile.in: Regenerate.
610 * lto-plugin.c (add_output_files): Argument is now a FILE.
611 (exec_lto_wrapper): Use writeargv and pex.
613 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
616 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
617 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
620 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
622 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
624 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
626 * lto-plugin.c: Include libiberty.h.
627 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
630 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
632 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
635 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
637 * lto-plugin.c (plugin_file_info): Remove fd and elf.
638 (parse_table_entry): strdup entry->name and entry->comdat_key.
639 (free_1): Free name and comdat_key. Don't close the file. Don't call
641 (claim_file_handler): Always call elf_end.
643 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
645 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
646 -D_FILE_OFFSET_BITS=64
647 * Makefile.in: Regenerate
649 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
651 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
652 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
653 * Makefile.in: Regenerate.
654 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
655 * configure: Regenerate.
656 * configure.ac: Add AC_SUBST(target_noncanonical).
658 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
660 * lto-plugin.c: Include stdbool.h.
661 (debug, nop): Declare as bool.
663 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
665 * lto-plugin.c (nop): New.
666 (use_original_files): New.
667 (all_symbols_read_handler): Call use_original_files if nop is true.
668 (process_option): Parse the -nop option.
670 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
672 * lto-plugin.c (debug): New.
673 (exec_lto_wrapper): Print argv if debug is true.
674 (process_option): Process the -debug command line option.
676 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
678 * lto-plugin.c (process_option): The argument is now a single option,
679 not a space separated list.
681 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
683 * lto-plugin.c: Include sys/types.h and sys/wait.h
684 (output_files, num_output_files, lto_wrapper_argv,
685 lto_wrapper_num_args): New.
686 (free_2): Free output_files.
687 (write_resolution): Disable.
688 (add_output_files): New.
689 (exec_lto_wrapper): New.
690 (all_symbols_read_handler): Run lto-wrapper.
691 (claim_file_handler): Free lto_file.name and call elf_end.
692 (process_option): New.
694 2008-11-26 Rafael Espindola <espindola@google.com>
696 * lto-plugin.c (add_input_file): New.
697 (get_section): Return NULL if get_section fails.
698 (write_resolution): New.
699 (all_symbols_read_handler): Call add_input_file.
700 (claim_file_handler): Unlink the correct file.
701 (onload): Record add_input_file.
703 2008-09-23 Rafael Espindola <espindola@google.com>
705 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
706 Update the location of common.c.
707 * Makefile.in: Regenerate.
708 * common.c: Moved to gcc/lto.
709 * common.h: Moved to gcc/lto.
710 * lto-plugin.c: Update the location of common.h.
711 * lto-symtab.c: Update the location of common.h.
713 2008-09-23 Rafael Espindola <espindola@google.com>
715 * common.c: Include common.h.
716 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
718 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
721 2008-09-23 Rafael Espindola <espindola@google.com>
723 * lto-plugin.c (plugin_file_info): Add temp.
724 (cleanup_handler): Only delete temporary files.
725 (claim_file_handler): Initialize lto_file.temp.
727 2008-09-23 Rafael Espindola <espindola@google.com>
729 * plugin-api.h: Moved to include.
731 2008-09-23 Rafael Espindola <espindola@google.com>
733 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
736 2008-09-22 Rafael Espindola <espindola@google.com>
738 * plugin-api.h: Copy from binutils' cvs.
740 2008-09-22 Rafael Espindola <espindola@google.com>
742 * lto-symtab.c (get_symbols, add_symbols): Update signature.
743 * plugin-api.h: Copy from binutils' cvs.
745 2008-09-22 Rafael Espindola <espindola@google.com>
747 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
750 2008-09-10 Rafael Espindola <espindola@google.com>
752 * lto-plugin.c (onload): add missing break statements and asserts.
753 * lto-symtab.c (claim_file_handler): Make it static.
754 (all_symbols_read_handler): Make it static.
755 (all_file_handles): Make it static.
756 (num_file_handles): Make it static.
757 (register_claim_file): Make it static.
758 (register_object): Indent properly.
760 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
762 * Makefile.am (ltosymtab_LDADD): Add -lelf.
763 * Makefiel.in: Regenerate.
764 * lto-plugin.c: Include ar.h.
765 (claim_file_handler): Handle file->offset != 0.
766 * lto-symtab.c: Include gelf.h.
767 (all_file_handles): Change type.
768 (register_object): New.
769 (register_file): Add support for archives.
770 (resolve): Update to new type of all_file_handles.
771 (print): Update to new type of all_file_handles.
772 (free_all): Update to new type of all_file_handles.
773 (main): Update to new type of all_file_handles.
775 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
777 * lto-plugin.c (get_string_table): Remove.
778 (get_section): Use elf_strptr instead of get_string_table.
780 2008-09-08 Doug Kwan <dougkwan@google.com>
782 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
783 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
785 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
787 * Makefile.am (ltosymtab_SOURCES): add common.c.
788 (ltosymtab_CFLAGS): New.
789 (liblto_plugin_la_SOURCES): Add common.c.
790 * Makefile.in: Regenerate.
793 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
794 (plugin_symtab): New.
795 (plugin_file_info): New.
796 (register_all_symbols_read): New.
798 (claimed_files): New.
799 (num_claimed_files): New.
800 (translate): Don't drop the slot number.
803 (all_symbols_read_handler): New.
804 (claim_file_handler): Record every claimed file.
805 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
807 * lto-symtab.c: Include stdlib.h, string.h and common.h.
808 (current_file_handle): Remove.
809 (ld_plugin_all_symbols_read_handler): New.
810 (plugin_handle): New.
812 (all_file_handles): New.
813 (num_file_handles): New.
815 (register_all_symbols_read): New.
816 (add_symbols): Don't print the symbols, just record them.
817 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
819 (load_plugin): Use plugin_handle.
820 (register_file): Add the file handle to all_file_handles.
823 (unload_plugin): New.
825 (main): Call all_symbols_read_handler and free resources.
827 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
829 * Makefile.am (AM_CFLAGS): New.
830 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
831 (lib_LTLIBRARIES): New.
832 (liblto_plugin_la_SOURCES): New.
833 (liblto_plugin_la_LIBADD): New.
834 * Makefile.in: Regenerate.
835 * acinclude.m4: Don't include ../config/acx.m4 and
836 ../config/no-executables.m4.
837 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
839 * aclocal.m4: Regenerate.
840 * configure: Regenerate.
841 * configure.ac: Use AM_PROG_LIBTOOL.
843 * lto-symtab.c: Rewrite to use the plugin.
846 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
848 * configure: Regenerate.
849 * configure.ac: Use AC_CHECK_GELF.
850 * lto-symtab.c: Include gelf.h.
851 (get_string_table): Use size independent API.
852 (printTable): Use lld to print 64 bit integers.
854 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
856 * lto-symtab.c (parse_table_entry): Assert entry->kind and
857 entry->visibility are valid.
859 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
860 * lto-symtab.c (table_entry): Add comdat.
861 (parse_table_entry): Read comdat.
863 2008-08-21 Rafael Espindola <espindola@google.com>