1 2014-07-16 Release Manager
5 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8 * configure.ac: Check for -static-libgcc.
9 * configure: Regenerate.
11 2014-04-22 Release Manager
15 2014-04-02 Richard Biener <rguenther@suse.de>
17 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
18 is set in COLLECT_GCC_OPTIONS.
20 2014-03-28 Richard Biener <rguenther@suse.de>
22 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
24 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
28 * configure: Regenerate.
29 * Makefile.am (AM_LDFLAGS): New variable.
30 (liblto_plugin_la_LDFLAGS): Add it.
31 * Makefile.in: Regenerate.
33 2013-09-20 Alan Modra <amodra@gmail.com>
35 * configure: Regenerate.
37 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
39 * configure: Regenerated.
41 2012-05-29 Joseph Myers <joseph@codesourcery.com>
43 * lto-plugin.c: Fix typo.
45 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
47 * configure: Regenerated.
49 2012-02-22 Kai Tietz <ktietz@redhat.com>
52 * lto-plugin.c (PRI_LL): New macro.
53 (dump_symtab): Use PRI_LL instead of ll in print.
54 (process_symtab): Use PRI_LL instead of ll in scan.
56 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
58 * configure: Regenerate.
60 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
62 * configure: Regenerate.
64 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
66 * configure: Regenerate.
68 2011-10-02 Jan Hubicka <jh@suse.cz>
71 * lto-plugin.c (get_symbols_v2): New variable.
72 (write_resolution): Use V2 API when available.
73 (onload): Handle LDPT_GET_SYMBOLS_V2.
75 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
76 Andi Kleen <ak@linux.intel.com>
79 * lto-plugin.c (sym_aux): Change id to unsigned long long.
80 (plugin_symtab): Likewise.
81 (dump_symtab): Likewise.
82 (resolve_conflicts): Likewise.
83 (process_symtab): Likewise.
85 2011-08-10 Richard Guenther <rguenther@suse.de>
89 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
90 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
91 * configure: Regenerate.
92 * Makefile.in: Likewise.
93 * aclocal.m4: Likewise.
95 2011-04-20 Jim Meyering <meyering@redhat.com>
97 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
99 2011-04-05 Richard Guenther <rguenther@suse.de>
102 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
104 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
106 * Makefile.in: Regenerate.
107 * aclocal.m4: Regenerate.
108 * configure: Regenerate.
110 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
112 * Makefile.am (all-local): Rename from 'all'.
113 * Makefile.in: Regenerate.
115 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
118 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
119 (liblto_plugin_la_LDFLAGS): Add -module.
120 (copy_lto_plugin): Renamed to...
121 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
123 * Makefile.in: Rebuild.
125 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
128 * Makefile.am (Wc): New helper for encoding -Wc,.
129 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
130 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
131 * Makefile.in: Regenerated.
133 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
137 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
140 * Makefile.am (Wl): New helper for encoding -Wl,.
141 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
142 * Makefile.in: Regenerated.
144 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
147 * Makefile.am (Wl): New helper for encoding -Wl,.
148 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
149 * Makefile.in: Regenerated.
151 2011-01-25 Ian Lance Taylor <iant@google.com>
153 * lto-plugin.c (gold_version): New static variable.
154 (all_symbols_read_handler): Don't check pass_through_items if
155 using gold 1.11 or later.
156 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
158 2011-01-12 Richard Guenther <rguenther@suse.de>
161 * lto-plugin.c (parse_table_entry): Use memcpy to access
164 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
166 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
167 * Makefile.in: Regenerate.
169 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
173 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
175 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
176 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
177 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
178 * Makefile.in: Regenerate.
180 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
184 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
185 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
186 * configure: Regenerate.
187 * config.h.in: Likewise.
189 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
193 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
194 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
195 override -bindir setting.
196 * aclocal.m4: Regenerate.
197 * configure: Regenerate.
198 * Makefile.in: Regenerate.
200 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
202 * config.h.in: Regenerated.
203 * configure: Regenerated.
204 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
205 * lto-plugin.c (WIFEXITED): Define default.
206 (WEXITSTATUS): Likeiwse.
208 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
210 * config.h.in: Regenerated.
211 * configure: Regenerated.
212 * Makefile.in: Regenerated.
213 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
214 * lto-plugin.c: Include sys/wait.h conditionally.
215 * aclocal.m4: Regenerated.
217 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
219 * lto-plugin.c (add_output_files): Fix memory leak.
221 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
225 * configure.ac: Add AC_TYPE_INT64_T test.
226 * config.h.in: Regenerate.
227 * configure: Likewise.
228 * lto-plugin.c (debug): Use char not bool.
230 (check_1): Rename from check, and use int not bool for gate argument.
231 (check): Macro wrapper for the above to coerce gate argument into
232 boolean-valued integer in case it has pointer type.
233 (parse_table_entry): Use 0 not false.
234 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
235 into two 32-bit parts and printing as hex ints.
237 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
240 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
242 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
245 * lto-plugin.h: Delete.
246 * lto-plugin-elf.c: Likewise.
247 * lto-plugin-coff.c: Likewise.
248 * configure.ac: Don't use libelf, don't source config.gcc.
249 (LIBELFLIBS): Delete.
251 (LTO_FORMAT): Delete.
252 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
253 (config.h): Add AC_CONFIG_HEADERS directive.
254 * Makefile.am (LIBELFLIBS): Delete.
256 (LTO_FORMAT): Delete.
258 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
259 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
260 any object-format-specific source file in the link.
261 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
262 * config.h.in: Generate.
263 * configure: Regenerate.
264 * Makefile.in: Likewise.
265 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
266 (LTO_SEGMENT_NAME): New definition.
267 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
268 (LTO_SECTION_PREFIX_LEN): New definition.
269 (struct sym_aux): Struct definition moved here from lto-plugin.h.
270 (struct plugin_symtab): Likewise.
271 (struct plugin_objfile): Likewise.
272 (struct plugin_objfile): New struct def.
273 (enum symbol_style): New enum type.
274 (add_symbols): Make static.
275 (claimed_files): Likewise.
276 (num_claimed_files): Likewise.
277 (sym_style): New global.
278 (check): Make static.
279 (parse_table_entry): Likewise. Respect sym_style when extracting
280 symbol from symtab entry.
281 (translate): Make static.
282 (resolve_conflicts): Likewise.
283 (process_symtab): New function, per-section callback version of
284 old object-format-specific handling from deleted lto-plugin-elf.c.
285 (claim_file_handler): Convert ELF-specific version from deleted
286 lto-plugin-elf.c to simple_object interface and move here.
287 (process_options): Allow new '-sym-style=' option.
288 (onload): Don't call deleted onload_format_checks hook.
290 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
292 * lto-plugin.c (dump_symtab): Correct printf argument type.
293 (finish_conflict_resolution): Initialize resolution.
295 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
298 * configure.ac: Add AC_CANONICAL_SYSTEM.
299 * configure: Regenerated.
301 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
303 * configure.ac: Source config.gcc to determine lto_binary_reader.
304 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
305 * Makefile.am (LTO_FORMAT): Import.
306 (liblto_plugin_la_SOURCES): Add object format dependent module
307 defined by LTO_FORMAT.
308 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
309 and work around libtool warning.
310 * configure: Regenerate.
311 * Makefile.in: Likewise.
312 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
313 (struct sym_aux): Likewise.
314 (struct plugin_symtab): Likewise.
315 (struct plugin_file_info): Likewise.
316 (LTO_SECTION_PREFIX): Likewise.
317 (add_symbols): Make non-static.
318 (claimed_files): Likewise.
319 (num_claimed_files): Likewise.
321 (parse_table_entry): Likewise.
322 (translate): Likewise.
323 (resolve_conflicts): Likewise.
324 (process_symtab): Move to new lto-plugin-elf.c object format dependent
326 (claim_file_handler): Likewise, and make non-static.
327 (onload): Call new onload_format_checks function.
328 * lto-plugin.h: New file.
329 (LTO_SECTION_PREFIX): Move here.
330 (struct sym_aux): Likewise.
331 (struct plugin_symtab): Likewise.
332 (struct plugin_file_info): Likewise.
333 (claim_file_handler): Add new function prototype.
334 (onload_format_checks): Likewise.
335 (check): Declare extern.
336 (translate): Likewise.
337 (parse_table_entry): Likewise.
338 (resolve_conflicts): Likewise.
339 (add_symbols): Likewise.
340 (claimed_files): Likewise.
341 (num_claimed_files): Likewise.
342 * lto-plugin-elf.c (process_symtab): Move here.
343 (claim_file_handler): Likewise, and make non-static.
344 (onload_format_checks): New function factored out from onload.
345 * lto-plugin-coff.c (claim_file_handler): New function stub.
346 (onload_format_checks): Likewise.
348 2010-08-05 Andi Kleen <ak@linux.intel.com>
350 * lto-plugin.c: Include <hashtab.h>
351 (sym_aux): Add next_conflict field to save conflict chains.
352 (plugin_file_info): Add conflicts symtab.
353 (parse_table_entry): Initialize aux->next_conflict.
354 (process_symtab): Increment found.
356 (finish_conflict_resolution): Add.
358 (write_resolution): Remove symbols loop and move into
359 dump_symtab. Call dump_symtab for main symbol and conflicts table.
360 Call free_symtab to free conflicts table.
364 (symbol_strength): Add.
365 (resolve_conflicts): Add.
366 (claim_file_handler): Add n variable. Check return value of
367 process_symtab. Call resolve_conflicts.
369 2010-07-27 Andi Kleen <ak@linux.intel.com>
371 * lto-plugin.c (translate): Remove debug fprintf.
373 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
376 * lto-plugin.c (translate): Cast to unsigned long.
378 2010-07-23 Andi Kleen <ak@linux.intel.com>
381 * lto-plugin.c (sym_aux): Add.
382 (plugin_symtab): Remove slots. Add aux and id.
383 (parse_table_entry): Change to use aux instead of slots.
384 (LTO_SECTION_PREFIX): Add.
385 (translate): Improve buffer allocation. Change to append
386 symbols to existing out buffer.
387 (get_section): Remove.
388 (process_symtab): Add.
389 (free_2): Free symtab->aux.
390 (write_resolution): Handle aux instead of slots.
391 Print sub id to resolution file.
392 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
393 calls with call to process_symtab.
395 2010-07-22 Richard Guenther <rguenther@suse.de>
397 * Makefile.am: New copy_lto_plugin rule to install the plugin
399 * Makefile.in: Regenerated.
401 2010-05-21 Richard Guenther <rguenther@suse.de>
403 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
405 2010-05-07 Richard Guenther <rguenther@suse.de>
407 * lto-plugin.c (free_2): Do not free resolution_file.
408 (write_resolution): Check that we were passed a resolution file.
409 (all_symbols_read_handler): Adjust.
410 (cleanup_handler): Do not remove the resolution file.
411 (process_option): Handle -fresolution=.
413 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
416 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
417 * Makefile.in: Regenerate.
419 2010-04-23 Richard Guenther <rguenther@suse.de>
422 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
423 (translate): Likewise.
424 (all_symbols_read_handler): Likewise.
425 (claim_file_handler): Likewise.
426 (process_option): Likewise.
427 (add_output_files): Likewise. Remove filename length limit.
429 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
431 * Makefile.in: Regenerate.
432 * aclocal.m4: Regenerate.
434 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
437 * lto-plugin.c (cleanup_handler): Delete temporary output files.
439 2010-01-11 Richard Guenther <rguenther@suse.de>
442 * Makefile.am: Disable dependencies.
443 * Makefile.in: Regenerated.
445 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
448 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
451 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
454 * configure: Regenerated.
455 * Makefile.in: Likewise.
457 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
460 * lto-plugin.c (claim_file_handler): Print offsets in hex.
462 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
464 * lto-plugin.c (write_resolution): Assume resolution_file is set.
465 Print the symbol name.
466 (all_symbols_read_handler): Create a resolution file.
468 (cleanup_handler): Remove the resolution file.
469 (process_option): Drop the -resolution option.
471 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
473 * lto-plugin.c (temp_obj_dir_name): Remove.
474 (arguments_file_name): New.
475 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
476 (exec_lto_wrapper): Create arguments file with make_temp_file.
477 (cleanup_handler): Don't remove the temporary directory. Remove the
479 (onload): Don't create the temporary directory.
481 2009-11-04 Richard Guenther <rguenther@suse.de>
482 Rafael Avila de Espindola <espindola@google.com>
484 * lto-plugin.c (plugin_file_info): Remove temp field.
485 (cleanup_handler): Don't delete temporary objects.
486 (claim_file_handler): Don't create temporary objects.
488 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
490 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
492 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
495 * lto-plugin.c (claim_file_handler): Close files that we created.
497 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
499 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
502 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
505 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
506 * configure: Regenerate.
508 2009-10-26 Richard Guenther <rguenther@suse.de>
510 * configure.ac: Use AM_MAINTAINER_MODE.
511 * acinclude.m4: Remove.
512 * configure: Re-generate.
513 * Makefile.in: Likewise.
514 * aclocal.m4: Likewise.
516 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
519 * configure: Regenerate.
520 * configure.ac: Add AC_TYPE_UINT64_T.
522 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
524 * lto-plugin.c (message): New variable.
525 (check): New function.
526 (parse_table_entry, translate, write_resolution,add_output_files,
527 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
529 (cleanup_handler): Use check instead of assert. Remove the arguments
532 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
534 * lto-plugin.c (resolution_file): New.
535 (free_1): Update comment.
536 (free_2): Free resolution_file.
537 (write_resolution): Write resolution to specified file. Use the
538 syms array from the symbol table.
539 (all_symbols_read_handler): Delay call to free_1 past call to
541 (process_option): Add a -resolution option.
543 2009-10-13 Richard Guenther <rguenther@suse.de>
545 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
547 * Makefile.in: Regenerated.
549 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
551 * lto-plugin.c (add_input_library): New.
552 (all_symbols_read_handler): Use add_input_library for items that
554 (process_option): Fit in 80 columns.
555 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
557 2009-10-02 Diego Novillo <dnovillo@google.com>
559 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
560 and -D_FILE_OFFSET_BITS=64.
561 * configure.ac: Add AC_SYS_LARGEFILE.
562 * configure: Regenerate.
563 * Makefile.in: Regenerate.
564 * lto-plugin.c: Fix copyright boilerplate.
566 2009-10-02 Diego Novillo <dnovillo@google.com>
568 * Makefile.am (ACLOCAL_AMFLAGS): Define.
569 * aclocal.m4: Regenerate with aclocal-2.64
570 * acinclude.m4: Remove.
571 * Makefile.in: Regenerate with automake-1.11
572 * configure.ac (AC_PREREQ): Update to 2.64.
573 * configure: Regenerate.
575 2009-10-02 Diego Novillo <dnovillo@google.com>
577 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
578 and -D_FILE_OFFSET_BITS=64.
579 * configure.ac: Add AC_SYS_LARGEFILE.
580 * configure: Regenerate.
581 * Makefile.in: Regenerate.
582 * lto-plugin.c: Fix copyright boilerplate.
584 2009-10-02 Diego Novillo <dnovillo@google.com>
586 * Makefile.am (ACLOCAL_AMFLAGS): Define.
587 * aclocal.m4: Regenerate with aclocal-2.64
588 * acinclude.m4: Remove.
589 * Makefile.in: Regenerate with automake-1.11
590 * configure.ac (AC_PREREQ): Update to 2.64.
591 * configure: Regenerate.
593 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
595 * Makefile.am (liblto_plugin_la_SOURCES): Remove
596 $(top_srcdir)/../gcc/lto/common.c
597 * Makefile.in: Regenerate.
599 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
601 * lto-plugin.c (pass_through_items): New.
602 (num_pass_through_items): New.
603 (all_symbols_read_handler): Update to use the -pass-through option.
604 (process_option): Replace -libgcc with -pass-through.
606 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
608 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
609 register_cleanup to be set.
611 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
613 * Makefile.am: Remove all reference to ltosymtab.
614 * Makefile.in: Regenerate.
615 * lto-symtab.c: Remove.
617 2009-05-21 Diego Novillo <dnovillo@google.com>
619 * configure.ac: Remove call to AC_CHECK_GELF.
620 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
621 * acinclude.m4: Do not include ../config/libelf.m4
622 * Makefile.am (LIBELFLIBS): Define.
624 (AM_CPPFLAGS): Add $(LIBELFINC).
625 (ltosymtab_LDADD): Add $(LIBELFLIBS).
626 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
627 * lto-plugin.c: Always include <gelf.h>
628 * lto-symtab.c: Likewise.
629 * configure: Regenerate.
630 * Makefile.in: Regenerate.
632 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
634 * lto-plugin.c (libgcc_filename): New.
635 (all_symbols_read_handler): Pass libgcc to the linker.
636 (all_symbols_read_handler): Parse -libgcc
638 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
640 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
641 * Makefile.in: Regenerate.
642 * lto-plugin.c (add_output_files): Argument is now a FILE.
643 (exec_lto_wrapper): Use writeargv and pex.
645 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
648 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
649 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
652 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
654 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
656 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
658 * lto-plugin.c: Include libiberty.h.
659 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
662 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
664 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
667 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
669 * lto-plugin.c (plugin_file_info): Remove fd and elf.
670 (parse_table_entry): strdup entry->name and entry->comdat_key.
671 (free_1): Free name and comdat_key. Don't close the file. Don't call
673 (claim_file_handler): Always call elf_end.
675 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
677 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
678 -D_FILE_OFFSET_BITS=64
679 * Makefile.in: Regenerate
681 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
683 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
684 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
685 * Makefile.in: Regenerate.
686 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
687 * configure: Regenerate.
688 * configure.ac: Add AC_SUBST(target_noncanonical).
690 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
692 * lto-plugin.c: Include stdbool.h.
693 (debug, nop): Declare as bool.
695 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
697 * lto-plugin.c (nop): New.
698 (use_original_files): New.
699 (all_symbols_read_handler): Call use_original_files if nop is true.
700 (process_option): Parse the -nop option.
702 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
704 * lto-plugin.c (debug): New.
705 (exec_lto_wrapper): Print argv if debug is true.
706 (process_option): Process the -debug command line option.
708 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
710 * lto-plugin.c (process_option): The argument is now a single option,
711 not a space separated list.
713 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
715 * lto-plugin.c: Include sys/types.h and sys/wait.h
716 (output_files, num_output_files, lto_wrapper_argv,
717 lto_wrapper_num_args): New.
718 (free_2): Free output_files.
719 (write_resolution): Disable.
720 (add_output_files): New.
721 (exec_lto_wrapper): New.
722 (all_symbols_read_handler): Run lto-wrapper.
723 (claim_file_handler): Free lto_file.name and call elf_end.
724 (process_option): New.
726 2008-11-26 Rafael Espindola <espindola@google.com>
728 * lto-plugin.c (add_input_file): New.
729 (get_section): Return NULL if get_section fails.
730 (write_resolution): New.
731 (all_symbols_read_handler): Call add_input_file.
732 (claim_file_handler): Unlink the correct file.
733 (onload): Record add_input_file.
735 2008-09-23 Rafael Espindola <espindola@google.com>
737 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
738 Update the location of common.c.
739 * Makefile.in: Regenerate.
740 * common.c: Moved to gcc/lto.
741 * common.h: Moved to gcc/lto.
742 * lto-plugin.c: Update the location of common.h.
743 * lto-symtab.c: Update the location of common.h.
745 2008-09-23 Rafael Espindola <espindola@google.com>
747 * common.c: Include common.h.
748 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
750 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
753 2008-09-23 Rafael Espindola <espindola@google.com>
755 * lto-plugin.c (plugin_file_info): Add temp.
756 (cleanup_handler): Only delete temporary files.
757 (claim_file_handler): Initialize lto_file.temp.
759 2008-09-23 Rafael Espindola <espindola@google.com>
761 * plugin-api.h: Moved to include.
763 2008-09-23 Rafael Espindola <espindola@google.com>
765 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
768 2008-09-22 Rafael Espindola <espindola@google.com>
770 * plugin-api.h: Copy from binutils' cvs.
772 2008-09-22 Rafael Espindola <espindola@google.com>
774 * lto-symtab.c (get_symbols, add_symbols): Update signature.
775 * plugin-api.h: Copy from binutils' cvs.
777 2008-09-22 Rafael Espindola <espindola@google.com>
779 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
782 2008-09-10 Rafael Espindola <espindola@google.com>
784 * lto-plugin.c (onload): add missing break statements and asserts.
785 * lto-symtab.c (claim_file_handler): Make it static.
786 (all_symbols_read_handler): Make it static.
787 (all_file_handles): Make it static.
788 (num_file_handles): Make it static.
789 (register_claim_file): Make it static.
790 (register_object): Indent properly.
792 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
794 * Makefile.am (ltosymtab_LDADD): Add -lelf.
795 * Makefiel.in: Regenerate.
796 * lto-plugin.c: Include ar.h.
797 (claim_file_handler): Handle file->offset != 0.
798 * lto-symtab.c: Include gelf.h.
799 (all_file_handles): Change type.
800 (register_object): New.
801 (register_file): Add support for archives.
802 (resolve): Update to new type of all_file_handles.
803 (print): Update to new type of all_file_handles.
804 (free_all): Update to new type of all_file_handles.
805 (main): Update to new type of all_file_handles.
807 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
809 * lto-plugin.c (get_string_table): Remove.
810 (get_section): Use elf_strptr instead of get_string_table.
812 2008-09-08 Doug Kwan <dougkwan@google.com>
814 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
815 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
817 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
819 * Makefile.am (ltosymtab_SOURCES): add common.c.
820 (ltosymtab_CFLAGS): New.
821 (liblto_plugin_la_SOURCES): Add common.c.
822 * Makefile.in: Regenerate.
825 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
826 (plugin_symtab): New.
827 (plugin_file_info): New.
828 (register_all_symbols_read): New.
830 (claimed_files): New.
831 (num_claimed_files): New.
832 (translate): Don't drop the slot number.
835 (all_symbols_read_handler): New.
836 (claim_file_handler): Record every claimed file.
837 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
839 * lto-symtab.c: Include stdlib.h, string.h and common.h.
840 (current_file_handle): Remove.
841 (ld_plugin_all_symbols_read_handler): New.
842 (plugin_handle): New.
844 (all_file_handles): New.
845 (num_file_handles): New.
847 (register_all_symbols_read): New.
848 (add_symbols): Don't print the symbols, just record them.
849 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
851 (load_plugin): Use plugin_handle.
852 (register_file): Add the file handle to all_file_handles.
855 (unload_plugin): New.
857 (main): Call all_symbols_read_handler and free resources.
859 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
861 * Makefile.am (AM_CFLAGS): New.
862 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
863 (lib_LTLIBRARIES): New.
864 (liblto_plugin_la_SOURCES): New.
865 (liblto_plugin_la_LIBADD): New.
866 * Makefile.in: Regenerate.
867 * acinclude.m4: Don't include ../config/acx.m4 and
868 ../config/no-executables.m4.
869 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
871 * aclocal.m4: Regenerate.
872 * configure: Regenerate.
873 * configure.ac: Use AM_PROG_LIBTOOL.
875 * lto-symtab.c: Rewrite to use the plugin.
878 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
880 * configure: Regenerate.
881 * configure.ac: Use AC_CHECK_GELF.
882 * lto-symtab.c: Include gelf.h.
883 (get_string_table): Use size independent API.
884 (printTable): Use lld to print 64 bit integers.
886 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
888 * lto-symtab.c (parse_table_entry): Assert entry->kind and
889 entry->visibility are valid.
891 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
892 * lto-symtab.c (table_entry): Add comdat.
893 (parse_table_entry): Read comdat.
895 2008-08-21 Rafael Espindola <espindola@google.com>