1 2014-04-02 Richard Biener <rguenther@suse.de>
3 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
4 is set in COLLECT_GCC_OPTIONS.
6 2014-03-28 Richard Biener <rguenther@suse.de>
8 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
10 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
14 * configure: Regenerate.
15 * Makefile.am (AM_LDFLAGS): New variable.
16 (liblto_plugin_la_LDFLAGS): Add it.
17 * Makefile.in: Regenerate.
19 2013-09-20 Alan Modra <amodra@gmail.com>
21 * configure: Regenerate.
23 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
25 * configure: Regenerated.
27 2012-05-29 Joseph Myers <joseph@codesourcery.com>
29 * lto-plugin.c: Fix typo.
31 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
33 * configure: Regenerated.
35 2012-02-22 Kai Tietz <ktietz@redhat.com>
38 * lto-plugin.c (PRI_LL): New macro.
39 (dump_symtab): Use PRI_LL instead of ll in print.
40 (process_symtab): Use PRI_LL instead of ll in scan.
42 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
44 * configure: Regenerate.
46 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
48 * configure: Regenerate.
50 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
52 * configure: Regenerate.
54 2011-10-02 Jan Hubicka <jh@suse.cz>
57 * lto-plugin.c (get_symbols_v2): New variable.
58 (write_resolution): Use V2 API when available.
59 (onload): Handle LDPT_GET_SYMBOLS_V2.
61 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
62 Andi Kleen <ak@linux.intel.com>
65 * lto-plugin.c (sym_aux): Change id to unsigned long long.
66 (plugin_symtab): Likewise.
67 (dump_symtab): Likewise.
68 (resolve_conflicts): Likewise.
69 (process_symtab): Likewise.
71 2011-08-10 Richard Guenther <rguenther@suse.de>
75 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
76 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
77 * configure: Regenerate.
78 * Makefile.in: Likewise.
79 * aclocal.m4: Likewise.
81 2011-04-20 Jim Meyering <meyering@redhat.com>
83 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
85 2011-04-05 Richard Guenther <rguenther@suse.de>
88 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
90 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
92 * Makefile.in: Regenerate.
93 * aclocal.m4: Regenerate.
94 * configure: Regenerate.
96 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
98 * Makefile.am (all-local): Rename from 'all'.
99 * Makefile.in: Regenerate.
101 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
104 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
105 (liblto_plugin_la_LDFLAGS): Add -module.
106 (copy_lto_plugin): Renamed to...
107 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
109 * Makefile.in: Rebuild.
111 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
114 * Makefile.am (Wc): New helper for encoding -Wc,.
115 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
116 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
117 * Makefile.in: Regenerated.
119 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
123 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
126 * Makefile.am (Wl): New helper for encoding -Wl,.
127 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
128 * Makefile.in: Regenerated.
130 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
133 * Makefile.am (Wl): New helper for encoding -Wl,.
134 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
135 * Makefile.in: Regenerated.
137 2011-01-25 Ian Lance Taylor <iant@google.com>
139 * lto-plugin.c (gold_version): New static variable.
140 (all_symbols_read_handler): Don't check pass_through_items if
141 using gold 1.11 or later.
142 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
144 2011-01-12 Richard Guenther <rguenther@suse.de>
147 * lto-plugin.c (parse_table_entry): Use memcpy to access
150 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
152 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
153 * Makefile.in: Regenerate.
155 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
159 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
161 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
162 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
163 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
164 * Makefile.in: Regenerate.
166 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
170 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
171 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
172 * configure: Regenerate.
173 * config.h.in: Likewise.
175 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
179 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
180 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
181 override -bindir setting.
182 * aclocal.m4: Regenerate.
183 * configure: Regenerate.
184 * Makefile.in: Regenerate.
186 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
188 * config.h.in: Regenerated.
189 * configure: Regenerated.
190 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
191 * lto-plugin.c (WIFEXITED): Define default.
192 (WEXITSTATUS): Likeiwse.
194 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
196 * config.h.in: Regenerated.
197 * configure: Regenerated.
198 * Makefile.in: Regenerated.
199 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
200 * lto-plugin.c: Include sys/wait.h conditionally.
201 * aclocal.m4: Regenerated.
203 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
205 * lto-plugin.c (add_output_files): Fix memory leak.
207 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
211 * configure.ac: Add AC_TYPE_INT64_T test.
212 * config.h.in: Regenerate.
213 * configure: Likewise.
214 * lto-plugin.c (debug): Use char not bool.
216 (check_1): Rename from check, and use int not bool for gate argument.
217 (check): Macro wrapper for the above to coerce gate argument into
218 boolean-valued integer in case it has pointer type.
219 (parse_table_entry): Use 0 not false.
220 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
221 into two 32-bit parts and printing as hex ints.
223 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
226 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
228 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
231 * lto-plugin.h: Delete.
232 * lto-plugin-elf.c: Likewise.
233 * lto-plugin-coff.c: Likewise.
234 * configure.ac: Don't use libelf, don't source config.gcc.
235 (LIBELFLIBS): Delete.
237 (LTO_FORMAT): Delete.
238 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
239 (config.h): Add AC_CONFIG_HEADERS directive.
240 * Makefile.am (LIBELFLIBS): Delete.
242 (LTO_FORMAT): Delete.
244 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
245 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
246 any object-format-specific source file in the link.
247 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
248 * config.h.in: Generate.
249 * configure: Regenerate.
250 * Makefile.in: Likewise.
251 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
252 (LTO_SEGMENT_NAME): New definition.
253 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
254 (LTO_SECTION_PREFIX_LEN): New definition.
255 (struct sym_aux): Struct definition moved here from lto-plugin.h.
256 (struct plugin_symtab): Likewise.
257 (struct plugin_objfile): Likewise.
258 (struct plugin_objfile): New struct def.
259 (enum symbol_style): New enum type.
260 (add_symbols): Make static.
261 (claimed_files): Likewise.
262 (num_claimed_files): Likewise.
263 (sym_style): New global.
264 (check): Make static.
265 (parse_table_entry): Likewise. Respect sym_style when extracting
266 symbol from symtab entry.
267 (translate): Make static.
268 (resolve_conflicts): Likewise.
269 (process_symtab): New function, per-section callback version of
270 old object-format-specific handling from deleted lto-plugin-elf.c.
271 (claim_file_handler): Convert ELF-specific version from deleted
272 lto-plugin-elf.c to simple_object interface and move here.
273 (process_options): Allow new '-sym-style=' option.
274 (onload): Don't call deleted onload_format_checks hook.
276 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
278 * lto-plugin.c (dump_symtab): Correct printf argument type.
279 (finish_conflict_resolution): Initialize resolution.
281 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
284 * configure.ac: Add AC_CANONICAL_SYSTEM.
285 * configure: Regenerated.
287 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
289 * configure.ac: Source config.gcc to determine lto_binary_reader.
290 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
291 * Makefile.am (LTO_FORMAT): Import.
292 (liblto_plugin_la_SOURCES): Add object format dependent module
293 defined by LTO_FORMAT.
294 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
295 and work around libtool warning.
296 * configure: Regenerate.
297 * Makefile.in: Likewise.
298 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
299 (struct sym_aux): Likewise.
300 (struct plugin_symtab): Likewise.
301 (struct plugin_file_info): Likewise.
302 (LTO_SECTION_PREFIX): Likewise.
303 (add_symbols): Make non-static.
304 (claimed_files): Likewise.
305 (num_claimed_files): Likewise.
307 (parse_table_entry): Likewise.
308 (translate): Likewise.
309 (resolve_conflicts): Likewise.
310 (process_symtab): Move to new lto-plugin-elf.c object format dependent
312 (claim_file_handler): Likewise, and make non-static.
313 (onload): Call new onload_format_checks function.
314 * lto-plugin.h: New file.
315 (LTO_SECTION_PREFIX): Move here.
316 (struct sym_aux): Likewise.
317 (struct plugin_symtab): Likewise.
318 (struct plugin_file_info): Likewise.
319 (claim_file_handler): Add new function prototype.
320 (onload_format_checks): Likewise.
321 (check): Declare extern.
322 (translate): Likewise.
323 (parse_table_entry): Likewise.
324 (resolve_conflicts): Likewise.
325 (add_symbols): Likewise.
326 (claimed_files): Likewise.
327 (num_claimed_files): Likewise.
328 * lto-plugin-elf.c (process_symtab): Move here.
329 (claim_file_handler): Likewise, and make non-static.
330 (onload_format_checks): New function factored out from onload.
331 * lto-plugin-coff.c (claim_file_handler): New function stub.
332 (onload_format_checks): Likewise.
334 2010-08-05 Andi Kleen <ak@linux.intel.com>
336 * lto-plugin.c: Include <hashtab.h>
337 (sym_aux): Add next_conflict field to save conflict chains.
338 (plugin_file_info): Add conflicts symtab.
339 (parse_table_entry): Initialize aux->next_conflict.
340 (process_symtab): Increment found.
342 (finish_conflict_resolution): Add.
344 (write_resolution): Remove symbols loop and move into
345 dump_symtab. Call dump_symtab for main symbol and conflicts table.
346 Call free_symtab to free conflicts table.
350 (symbol_strength): Add.
351 (resolve_conflicts): Add.
352 (claim_file_handler): Add n variable. Check return value of
353 process_symtab. Call resolve_conflicts.
355 2010-07-27 Andi Kleen <ak@linux.intel.com>
357 * lto-plugin.c (translate): Remove debug fprintf.
359 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
362 * lto-plugin.c (translate): Cast to unsigned long.
364 2010-07-23 Andi Kleen <ak@linux.intel.com>
367 * lto-plugin.c (sym_aux): Add.
368 (plugin_symtab): Remove slots. Add aux and id.
369 (parse_table_entry): Change to use aux instead of slots.
370 (LTO_SECTION_PREFIX): Add.
371 (translate): Improve buffer allocation. Change to append
372 symbols to existing out buffer.
373 (get_section): Remove.
374 (process_symtab): Add.
375 (free_2): Free symtab->aux.
376 (write_resolution): Handle aux instead of slots.
377 Print sub id to resolution file.
378 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
379 calls with call to process_symtab.
381 2010-07-22 Richard Guenther <rguenther@suse.de>
383 * Makefile.am: New copy_lto_plugin rule to install the plugin
385 * Makefile.in: Regenerated.
387 2010-05-21 Richard Guenther <rguenther@suse.de>
389 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
391 2010-05-07 Richard Guenther <rguenther@suse.de>
393 * lto-plugin.c (free_2): Do not free resolution_file.
394 (write_resolution): Check that we were passed a resolution file.
395 (all_symbols_read_handler): Adjust.
396 (cleanup_handler): Do not remove the resolution file.
397 (process_option): Handle -fresolution=.
399 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
402 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
403 * Makefile.in: Regenerate.
405 2010-04-23 Richard Guenther <rguenther@suse.de>
408 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
409 (translate): Likewise.
410 (all_symbols_read_handler): Likewise.
411 (claim_file_handler): Likewise.
412 (process_option): Likewise.
413 (add_output_files): Likewise. Remove filename length limit.
415 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
417 * Makefile.in: Regenerate.
418 * aclocal.m4: Regenerate.
420 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
423 * lto-plugin.c (cleanup_handler): Delete temporary output files.
425 2010-01-11 Richard Guenther <rguenther@suse.de>
428 * Makefile.am: Disable dependencies.
429 * Makefile.in: Regenerated.
431 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
434 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
437 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
440 * configure: Regenerated.
441 * Makefile.in: Likewise.
443 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
446 * lto-plugin.c (claim_file_handler): Print offsets in hex.
448 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
450 * lto-plugin.c (write_resolution): Assume resolution_file is set.
451 Print the symbol name.
452 (all_symbols_read_handler): Create a resolution file.
454 (cleanup_handler): Remove the resolution file.
455 (process_option): Drop the -resolution option.
457 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
459 * lto-plugin.c (temp_obj_dir_name): Remove.
460 (arguments_file_name): New.
461 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
462 (exec_lto_wrapper): Create arguments file with make_temp_file.
463 (cleanup_handler): Don't remove the temporary directory. Remove the
465 (onload): Don't create the temporary directory.
467 2009-11-04 Richard Guenther <rguenther@suse.de>
468 Rafael Avila de Espindola <espindola@google.com>
470 * lto-plugin.c (plugin_file_info): Remove temp field.
471 (cleanup_handler): Don't delete temporary objects.
472 (claim_file_handler): Don't create temporary objects.
474 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
476 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
478 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
481 * lto-plugin.c (claim_file_handler): Close files that we created.
483 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
485 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
488 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
491 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
492 * configure: Regenerate.
494 2009-10-26 Richard Guenther <rguenther@suse.de>
496 * configure.ac: Use AM_MAINTAINER_MODE.
497 * acinclude.m4: Remove.
498 * configure: Re-generate.
499 * Makefile.in: Likewise.
500 * aclocal.m4: Likewise.
502 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
505 * configure: Regenerate.
506 * configure.ac: Add AC_TYPE_UINT64_T.
508 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
510 * lto-plugin.c (message): New variable.
511 (check): New function.
512 (parse_table_entry, translate, write_resolution,add_output_files,
513 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
515 (cleanup_handler): Use check instead of assert. Remove the arguments
518 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
520 * lto-plugin.c (resolution_file): New.
521 (free_1): Update comment.
522 (free_2): Free resolution_file.
523 (write_resolution): Write resolution to specified file. Use the
524 syms array from the symbol table.
525 (all_symbols_read_handler): Delay call to free_1 past call to
527 (process_option): Add a -resolution option.
529 2009-10-13 Richard Guenther <rguenther@suse.de>
531 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
533 * Makefile.in: Regenerated.
535 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
537 * lto-plugin.c (add_input_library): New.
538 (all_symbols_read_handler): Use add_input_library for items that
540 (process_option): Fit in 80 columns.
541 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
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 Diego Novillo <dnovillo@google.com>
563 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
564 and -D_FILE_OFFSET_BITS=64.
565 * configure.ac: Add AC_SYS_LARGEFILE.
566 * configure: Regenerate.
567 * Makefile.in: Regenerate.
568 * lto-plugin.c: Fix copyright boilerplate.
570 2009-10-02 Diego Novillo <dnovillo@google.com>
572 * Makefile.am (ACLOCAL_AMFLAGS): Define.
573 * aclocal.m4: Regenerate with aclocal-2.64
574 * acinclude.m4: Remove.
575 * Makefile.in: Regenerate with automake-1.11
576 * configure.ac (AC_PREREQ): Update to 2.64.
577 * configure: Regenerate.
579 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
581 * Makefile.am (liblto_plugin_la_SOURCES): Remove
582 $(top_srcdir)/../gcc/lto/common.c
583 * Makefile.in: Regenerate.
585 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
587 * lto-plugin.c (pass_through_items): New.
588 (num_pass_through_items): New.
589 (all_symbols_read_handler): Update to use the -pass-through option.
590 (process_option): Replace -libgcc with -pass-through.
592 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
594 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
595 register_cleanup to be set.
597 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
599 * Makefile.am: Remove all reference to ltosymtab.
600 * Makefile.in: Regenerate.
601 * lto-symtab.c: Remove.
603 2009-05-21 Diego Novillo <dnovillo@google.com>
605 * configure.ac: Remove call to AC_CHECK_GELF.
606 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
607 * acinclude.m4: Do not include ../config/libelf.m4
608 * Makefile.am (LIBELFLIBS): Define.
610 (AM_CPPFLAGS): Add $(LIBELFINC).
611 (ltosymtab_LDADD): Add $(LIBELFLIBS).
612 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
613 * lto-plugin.c: Always include <gelf.h>
614 * lto-symtab.c: Likewise.
615 * configure: Regenerate.
616 * Makefile.in: Regenerate.
618 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
620 * lto-plugin.c (libgcc_filename): New.
621 (all_symbols_read_handler): Pass libgcc to the linker.
622 (all_symbols_read_handler): Parse -libgcc
624 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
626 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
627 * Makefile.in: Regenerate.
628 * lto-plugin.c (add_output_files): Argument is now a FILE.
629 (exec_lto_wrapper): Use writeargv and pex.
631 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
634 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
635 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
638 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
640 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
642 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
644 * lto-plugin.c: Include libiberty.h.
645 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
648 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
650 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
653 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
655 * lto-plugin.c (plugin_file_info): Remove fd and elf.
656 (parse_table_entry): strdup entry->name and entry->comdat_key.
657 (free_1): Free name and comdat_key. Don't close the file. Don't call
659 (claim_file_handler): Always call elf_end.
661 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
663 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
664 -D_FILE_OFFSET_BITS=64
665 * Makefile.in: Regenerate
667 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
669 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
670 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
671 * Makefile.in: Regenerate.
672 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
673 * configure: Regenerate.
674 * configure.ac: Add AC_SUBST(target_noncanonical).
676 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
678 * lto-plugin.c: Include stdbool.h.
679 (debug, nop): Declare as bool.
681 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
683 * lto-plugin.c (nop): New.
684 (use_original_files): New.
685 (all_symbols_read_handler): Call use_original_files if nop is true.
686 (process_option): Parse the -nop option.
688 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
690 * lto-plugin.c (debug): New.
691 (exec_lto_wrapper): Print argv if debug is true.
692 (process_option): Process the -debug command line option.
694 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
696 * lto-plugin.c (process_option): The argument is now a single option,
697 not a space separated list.
699 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
701 * lto-plugin.c: Include sys/types.h and sys/wait.h
702 (output_files, num_output_files, lto_wrapper_argv,
703 lto_wrapper_num_args): New.
704 (free_2): Free output_files.
705 (write_resolution): Disable.
706 (add_output_files): New.
707 (exec_lto_wrapper): New.
708 (all_symbols_read_handler): Run lto-wrapper.
709 (claim_file_handler): Free lto_file.name and call elf_end.
710 (process_option): New.
712 2008-11-26 Rafael Espindola <espindola@google.com>
714 * lto-plugin.c (add_input_file): New.
715 (get_section): Return NULL if get_section fails.
716 (write_resolution): New.
717 (all_symbols_read_handler): Call add_input_file.
718 (claim_file_handler): Unlink the correct file.
719 (onload): Record add_input_file.
721 2008-09-23 Rafael Espindola <espindola@google.com>
723 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
724 Update the location of common.c.
725 * Makefile.in: Regenerate.
726 * common.c: Moved to gcc/lto.
727 * common.h: Moved to gcc/lto.
728 * lto-plugin.c: Update the location of common.h.
729 * lto-symtab.c: Update the location of common.h.
731 2008-09-23 Rafael Espindola <espindola@google.com>
733 * common.c: Include common.h.
734 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
736 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
739 2008-09-23 Rafael Espindola <espindola@google.com>
741 * lto-plugin.c (plugin_file_info): Add temp.
742 (cleanup_handler): Only delete temporary files.
743 (claim_file_handler): Initialize lto_file.temp.
745 2008-09-23 Rafael Espindola <espindola@google.com>
747 * plugin-api.h: Moved to include.
749 2008-09-23 Rafael Espindola <espindola@google.com>
751 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
754 2008-09-22 Rafael Espindola <espindola@google.com>
756 * plugin-api.h: Copy from binutils' cvs.
758 2008-09-22 Rafael Espindola <espindola@google.com>
760 * lto-symtab.c (get_symbols, add_symbols): Update signature.
761 * plugin-api.h: Copy from binutils' cvs.
763 2008-09-22 Rafael Espindola <espindola@google.com>
765 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
768 2008-09-10 Rafael Espindola <espindola@google.com>
770 * lto-plugin.c (onload): add missing break statements and asserts.
771 * lto-symtab.c (claim_file_handler): Make it static.
772 (all_symbols_read_handler): Make it static.
773 (all_file_handles): Make it static.
774 (num_file_handles): Make it static.
775 (register_claim_file): Make it static.
776 (register_object): Indent properly.
778 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
780 * Makefile.am (ltosymtab_LDADD): Add -lelf.
781 * Makefiel.in: Regenerate.
782 * lto-plugin.c: Include ar.h.
783 (claim_file_handler): Handle file->offset != 0.
784 * lto-symtab.c: Include gelf.h.
785 (all_file_handles): Change type.
786 (register_object): New.
787 (register_file): Add support for archives.
788 (resolve): Update to new type of all_file_handles.
789 (print): Update to new type of all_file_handles.
790 (free_all): Update to new type of all_file_handles.
791 (main): Update to new type of all_file_handles.
793 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
795 * lto-plugin.c (get_string_table): Remove.
796 (get_section): Use elf_strptr instead of get_string_table.
798 2008-09-08 Doug Kwan <dougkwan@google.com>
800 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
801 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
803 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
805 * Makefile.am (ltosymtab_SOURCES): add common.c.
806 (ltosymtab_CFLAGS): New.
807 (liblto_plugin_la_SOURCES): Add common.c.
808 * Makefile.in: Regenerate.
811 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
812 (plugin_symtab): New.
813 (plugin_file_info): New.
814 (register_all_symbols_read): New.
816 (claimed_files): New.
817 (num_claimed_files): New.
818 (translate): Don't drop the slot number.
821 (all_symbols_read_handler): New.
822 (claim_file_handler): Record every claimed file.
823 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
825 * lto-symtab.c: Include stdlib.h, string.h and common.h.
826 (current_file_handle): Remove.
827 (ld_plugin_all_symbols_read_handler): New.
828 (plugin_handle): New.
830 (all_file_handles): New.
831 (num_file_handles): New.
833 (register_all_symbols_read): New.
834 (add_symbols): Don't print the symbols, just record them.
835 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
837 (load_plugin): Use plugin_handle.
838 (register_file): Add the file handle to all_file_handles.
841 (unload_plugin): New.
843 (main): Call all_symbols_read_handler and free resources.
845 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
847 * Makefile.am (AM_CFLAGS): New.
848 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
849 (lib_LTLIBRARIES): New.
850 (liblto_plugin_la_SOURCES): New.
851 (liblto_plugin_la_LIBADD): New.
852 * Makefile.in: Regenerate.
853 * acinclude.m4: Don't include ../config/acx.m4 and
854 ../config/no-executables.m4.
855 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
857 * aclocal.m4: Regenerate.
858 * configure: Regenerate.
859 * configure.ac: Use AM_PROG_LIBTOOL.
861 * lto-symtab.c: Rewrite to use the plugin.
864 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
866 * configure: Regenerate.
867 * configure.ac: Use AC_CHECK_GELF.
868 * lto-symtab.c: Include gelf.h.
869 (get_string_table): Use size independent API.
870 (printTable): Use lld to print 64 bit integers.
872 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
874 * lto-symtab.c (parse_table_entry): Assert entry->kind and
875 entry->visibility are valid.
877 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
878 * lto-symtab.c (table_entry): Add comdat.
879 (parse_table_entry): Read comdat.
881 2008-08-21 Rafael Espindola <espindola@google.com>