1 2014-10-30 Release Manager
5 2014-07-16 Release Manager
9 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12 * configure.ac: Check for -static-libgcc.
13 * configure: Regenerate.
15 2014-04-22 Release Manager
19 2014-04-02 Richard Biener <rguenther@suse.de>
21 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
22 is set in COLLECT_GCC_OPTIONS.
24 2014-03-28 Richard Biener <rguenther@suse.de>
26 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
28 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
32 * configure: Regenerate.
33 * Makefile.am (AM_LDFLAGS): New variable.
34 (liblto_plugin_la_LDFLAGS): Add it.
35 * Makefile.in: Regenerate.
37 2013-09-20 Alan Modra <amodra@gmail.com>
39 * configure: Regenerate.
41 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
43 * configure: Regenerated.
45 2012-05-29 Joseph Myers <joseph@codesourcery.com>
47 * lto-plugin.c: Fix typo.
49 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
51 * configure: Regenerated.
53 2012-02-22 Kai Tietz <ktietz@redhat.com>
56 * lto-plugin.c (PRI_LL): New macro.
57 (dump_symtab): Use PRI_LL instead of ll in print.
58 (process_symtab): Use PRI_LL instead of ll in scan.
60 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
62 * configure: Regenerate.
64 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
66 * configure: Regenerate.
68 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
70 * configure: Regenerate.
72 2011-10-02 Jan Hubicka <jh@suse.cz>
75 * lto-plugin.c (get_symbols_v2): New variable.
76 (write_resolution): Use V2 API when available.
77 (onload): Handle LDPT_GET_SYMBOLS_V2.
79 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
80 Andi Kleen <ak@linux.intel.com>
83 * lto-plugin.c (sym_aux): Change id to unsigned long long.
84 (plugin_symtab): Likewise.
85 (dump_symtab): Likewise.
86 (resolve_conflicts): Likewise.
87 (process_symtab): Likewise.
89 2011-08-10 Richard Guenther <rguenther@suse.de>
93 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
94 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
95 * configure: Regenerate.
96 * Makefile.in: Likewise.
97 * aclocal.m4: Likewise.
99 2011-04-20 Jim Meyering <meyering@redhat.com>
101 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
103 2011-04-05 Richard Guenther <rguenther@suse.de>
106 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
108 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110 * Makefile.in: Regenerate.
111 * aclocal.m4: Regenerate.
112 * configure: Regenerate.
114 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
116 * Makefile.am (all-local): Rename from 'all'.
117 * Makefile.in: Regenerate.
119 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
122 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
123 (liblto_plugin_la_LDFLAGS): Add -module.
124 (copy_lto_plugin): Renamed to...
125 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
127 * Makefile.in: Rebuild.
129 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
132 * Makefile.am (Wc): New helper for encoding -Wc,.
133 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
134 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
135 * Makefile.in: Regenerated.
137 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
141 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
144 * Makefile.am (Wl): New helper for encoding -Wl,.
145 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
146 * Makefile.in: Regenerated.
148 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
151 * Makefile.am (Wl): New helper for encoding -Wl,.
152 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
153 * Makefile.in: Regenerated.
155 2011-01-25 Ian Lance Taylor <iant@google.com>
157 * lto-plugin.c (gold_version): New static variable.
158 (all_symbols_read_handler): Don't check pass_through_items if
159 using gold 1.11 or later.
160 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
162 2011-01-12 Richard Guenther <rguenther@suse.de>
165 * lto-plugin.c (parse_table_entry): Use memcpy to access
168 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
170 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
171 * Makefile.in: Regenerate.
173 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
177 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
179 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
180 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
181 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
182 * Makefile.in: Regenerate.
184 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
188 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
189 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
190 * configure: Regenerate.
191 * config.h.in: Likewise.
193 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
197 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
198 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
199 override -bindir setting.
200 * aclocal.m4: Regenerate.
201 * configure: Regenerate.
202 * Makefile.in: Regenerate.
204 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
206 * config.h.in: Regenerated.
207 * configure: Regenerated.
208 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
209 * lto-plugin.c (WIFEXITED): Define default.
210 (WEXITSTATUS): Likeiwse.
212 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
214 * config.h.in: Regenerated.
215 * configure: Regenerated.
216 * Makefile.in: Regenerated.
217 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
218 * lto-plugin.c: Include sys/wait.h conditionally.
219 * aclocal.m4: Regenerated.
221 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
223 * lto-plugin.c (add_output_files): Fix memory leak.
225 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
229 * configure.ac: Add AC_TYPE_INT64_T test.
230 * config.h.in: Regenerate.
231 * configure: Likewise.
232 * lto-plugin.c (debug): Use char not bool.
234 (check_1): Rename from check, and use int not bool for gate argument.
235 (check): Macro wrapper for the above to coerce gate argument into
236 boolean-valued integer in case it has pointer type.
237 (parse_table_entry): Use 0 not false.
238 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
239 into two 32-bit parts and printing as hex ints.
241 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
244 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
246 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
249 * lto-plugin.h: Delete.
250 * lto-plugin-elf.c: Likewise.
251 * lto-plugin-coff.c: Likewise.
252 * configure.ac: Don't use libelf, don't source config.gcc.
253 (LIBELFLIBS): Delete.
255 (LTO_FORMAT): Delete.
256 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
257 (config.h): Add AC_CONFIG_HEADERS directive.
258 * Makefile.am (LIBELFLIBS): Delete.
260 (LTO_FORMAT): Delete.
262 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
263 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
264 any object-format-specific source file in the link.
265 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
266 * config.h.in: Generate.
267 * configure: Regenerate.
268 * Makefile.in: Likewise.
269 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
270 (LTO_SEGMENT_NAME): New definition.
271 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
272 (LTO_SECTION_PREFIX_LEN): New definition.
273 (struct sym_aux): Struct definition moved here from lto-plugin.h.
274 (struct plugin_symtab): Likewise.
275 (struct plugin_objfile): Likewise.
276 (struct plugin_objfile): New struct def.
277 (enum symbol_style): New enum type.
278 (add_symbols): Make static.
279 (claimed_files): Likewise.
280 (num_claimed_files): Likewise.
281 (sym_style): New global.
282 (check): Make static.
283 (parse_table_entry): Likewise. Respect sym_style when extracting
284 symbol from symtab entry.
285 (translate): Make static.
286 (resolve_conflicts): Likewise.
287 (process_symtab): New function, per-section callback version of
288 old object-format-specific handling from deleted lto-plugin-elf.c.
289 (claim_file_handler): Convert ELF-specific version from deleted
290 lto-plugin-elf.c to simple_object interface and move here.
291 (process_options): Allow new '-sym-style=' option.
292 (onload): Don't call deleted onload_format_checks hook.
294 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
296 * lto-plugin.c (dump_symtab): Correct printf argument type.
297 (finish_conflict_resolution): Initialize resolution.
299 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
302 * configure.ac: Add AC_CANONICAL_SYSTEM.
303 * configure: Regenerated.
305 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
307 * configure.ac: Source config.gcc to determine lto_binary_reader.
308 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
309 * Makefile.am (LTO_FORMAT): Import.
310 (liblto_plugin_la_SOURCES): Add object format dependent module
311 defined by LTO_FORMAT.
312 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
313 and work around libtool warning.
314 * configure: Regenerate.
315 * Makefile.in: Likewise.
316 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
317 (struct sym_aux): Likewise.
318 (struct plugin_symtab): Likewise.
319 (struct plugin_file_info): Likewise.
320 (LTO_SECTION_PREFIX): Likewise.
321 (add_symbols): Make non-static.
322 (claimed_files): Likewise.
323 (num_claimed_files): Likewise.
325 (parse_table_entry): Likewise.
326 (translate): Likewise.
327 (resolve_conflicts): Likewise.
328 (process_symtab): Move to new lto-plugin-elf.c object format dependent
330 (claim_file_handler): Likewise, and make non-static.
331 (onload): Call new onload_format_checks function.
332 * lto-plugin.h: New file.
333 (LTO_SECTION_PREFIX): Move here.
334 (struct sym_aux): Likewise.
335 (struct plugin_symtab): Likewise.
336 (struct plugin_file_info): Likewise.
337 (claim_file_handler): Add new function prototype.
338 (onload_format_checks): Likewise.
339 (check): Declare extern.
340 (translate): Likewise.
341 (parse_table_entry): Likewise.
342 (resolve_conflicts): Likewise.
343 (add_symbols): Likewise.
344 (claimed_files): Likewise.
345 (num_claimed_files): Likewise.
346 * lto-plugin-elf.c (process_symtab): Move here.
347 (claim_file_handler): Likewise, and make non-static.
348 (onload_format_checks): New function factored out from onload.
349 * lto-plugin-coff.c (claim_file_handler): New function stub.
350 (onload_format_checks): Likewise.
352 2010-08-05 Andi Kleen <ak@linux.intel.com>
354 * lto-plugin.c: Include <hashtab.h>
355 (sym_aux): Add next_conflict field to save conflict chains.
356 (plugin_file_info): Add conflicts symtab.
357 (parse_table_entry): Initialize aux->next_conflict.
358 (process_symtab): Increment found.
360 (finish_conflict_resolution): Add.
362 (write_resolution): Remove symbols loop and move into
363 dump_symtab. Call dump_symtab for main symbol and conflicts table.
364 Call free_symtab to free conflicts table.
368 (symbol_strength): Add.
369 (resolve_conflicts): Add.
370 (claim_file_handler): Add n variable. Check return value of
371 process_symtab. Call resolve_conflicts.
373 2010-07-27 Andi Kleen <ak@linux.intel.com>
375 * lto-plugin.c (translate): Remove debug fprintf.
377 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
380 * lto-plugin.c (translate): Cast to unsigned long.
382 2010-07-23 Andi Kleen <ak@linux.intel.com>
385 * lto-plugin.c (sym_aux): Add.
386 (plugin_symtab): Remove slots. Add aux and id.
387 (parse_table_entry): Change to use aux instead of slots.
388 (LTO_SECTION_PREFIX): Add.
389 (translate): Improve buffer allocation. Change to append
390 symbols to existing out buffer.
391 (get_section): Remove.
392 (process_symtab): Add.
393 (free_2): Free symtab->aux.
394 (write_resolution): Handle aux instead of slots.
395 Print sub id to resolution file.
396 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
397 calls with call to process_symtab.
399 2010-07-22 Richard Guenther <rguenther@suse.de>
401 * Makefile.am: New copy_lto_plugin rule to install the plugin
403 * Makefile.in: Regenerated.
405 2010-05-21 Richard Guenther <rguenther@suse.de>
407 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
409 2010-05-07 Richard Guenther <rguenther@suse.de>
411 * lto-plugin.c (free_2): Do not free resolution_file.
412 (write_resolution): Check that we were passed a resolution file.
413 (all_symbols_read_handler): Adjust.
414 (cleanup_handler): Do not remove the resolution file.
415 (process_option): Handle -fresolution=.
417 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
420 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
421 * Makefile.in: Regenerate.
423 2010-04-23 Richard Guenther <rguenther@suse.de>
426 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
427 (translate): Likewise.
428 (all_symbols_read_handler): Likewise.
429 (claim_file_handler): Likewise.
430 (process_option): Likewise.
431 (add_output_files): Likewise. Remove filename length limit.
433 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
435 * Makefile.in: Regenerate.
436 * aclocal.m4: Regenerate.
438 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
441 * lto-plugin.c (cleanup_handler): Delete temporary output files.
443 2010-01-11 Richard Guenther <rguenther@suse.de>
446 * Makefile.am: Disable dependencies.
447 * Makefile.in: Regenerated.
449 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
452 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
455 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
458 * configure: Regenerated.
459 * Makefile.in: Likewise.
461 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
464 * lto-plugin.c (claim_file_handler): Print offsets in hex.
466 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
468 * lto-plugin.c (write_resolution): Assume resolution_file is set.
469 Print the symbol name.
470 (all_symbols_read_handler): Create a resolution file.
472 (cleanup_handler): Remove the resolution file.
473 (process_option): Drop the -resolution option.
475 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
477 * lto-plugin.c (temp_obj_dir_name): Remove.
478 (arguments_file_name): New.
479 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
480 (exec_lto_wrapper): Create arguments file with make_temp_file.
481 (cleanup_handler): Don't remove the temporary directory. Remove the
483 (onload): Don't create the temporary directory.
485 2009-11-04 Richard Guenther <rguenther@suse.de>
486 Rafael Avila de Espindola <espindola@google.com>
488 * lto-plugin.c (plugin_file_info): Remove temp field.
489 (cleanup_handler): Don't delete temporary objects.
490 (claim_file_handler): Don't create temporary objects.
492 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
494 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
496 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
499 * lto-plugin.c (claim_file_handler): Close files that we created.
501 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
503 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
506 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
509 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
510 * configure: Regenerate.
512 2009-10-26 Richard Guenther <rguenther@suse.de>
514 * configure.ac: Use AM_MAINTAINER_MODE.
515 * acinclude.m4: Remove.
516 * configure: Re-generate.
517 * Makefile.in: Likewise.
518 * aclocal.m4: Likewise.
520 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
523 * configure: Regenerate.
524 * configure.ac: Add AC_TYPE_UINT64_T.
526 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
528 * lto-plugin.c (message): New variable.
529 (check): New function.
530 (parse_table_entry, translate, write_resolution,add_output_files,
531 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
533 (cleanup_handler): Use check instead of assert. Remove the arguments
536 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
538 * lto-plugin.c (resolution_file): New.
539 (free_1): Update comment.
540 (free_2): Free resolution_file.
541 (write_resolution): Write resolution to specified file. Use the
542 syms array from the symbol table.
543 (all_symbols_read_handler): Delay call to free_1 past call to
545 (process_option): Add a -resolution option.
547 2009-10-13 Richard Guenther <rguenther@suse.de>
549 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
551 * Makefile.in: Regenerated.
553 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
555 * lto-plugin.c (add_input_library): New.
556 (all_symbols_read_handler): Use add_input_library for items that
558 (process_option): Fit in 80 columns.
559 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
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 Diego Novillo <dnovillo@google.com>
581 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
582 and -D_FILE_OFFSET_BITS=64.
583 * configure.ac: Add AC_SYS_LARGEFILE.
584 * configure: Regenerate.
585 * Makefile.in: Regenerate.
586 * lto-plugin.c: Fix copyright boilerplate.
588 2009-10-02 Diego Novillo <dnovillo@google.com>
590 * Makefile.am (ACLOCAL_AMFLAGS): Define.
591 * aclocal.m4: Regenerate with aclocal-2.64
592 * acinclude.m4: Remove.
593 * Makefile.in: Regenerate with automake-1.11
594 * configure.ac (AC_PREREQ): Update to 2.64.
595 * configure: Regenerate.
597 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
599 * Makefile.am (liblto_plugin_la_SOURCES): Remove
600 $(top_srcdir)/../gcc/lto/common.c
601 * Makefile.in: Regenerate.
603 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
605 * lto-plugin.c (pass_through_items): New.
606 (num_pass_through_items): New.
607 (all_symbols_read_handler): Update to use the -pass-through option.
608 (process_option): Replace -libgcc with -pass-through.
610 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
612 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
613 register_cleanup to be set.
615 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
617 * Makefile.am: Remove all reference to ltosymtab.
618 * Makefile.in: Regenerate.
619 * lto-symtab.c: Remove.
621 2009-05-21 Diego Novillo <dnovillo@google.com>
623 * configure.ac: Remove call to AC_CHECK_GELF.
624 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
625 * acinclude.m4: Do not include ../config/libelf.m4
626 * Makefile.am (LIBELFLIBS): Define.
628 (AM_CPPFLAGS): Add $(LIBELFINC).
629 (ltosymtab_LDADD): Add $(LIBELFLIBS).
630 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
631 * lto-plugin.c: Always include <gelf.h>
632 * lto-symtab.c: Likewise.
633 * configure: Regenerate.
634 * Makefile.in: Regenerate.
636 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
638 * lto-plugin.c (libgcc_filename): New.
639 (all_symbols_read_handler): Pass libgcc to the linker.
640 (all_symbols_read_handler): Parse -libgcc
642 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
644 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
645 * Makefile.in: Regenerate.
646 * lto-plugin.c (add_output_files): Argument is now a FILE.
647 (exec_lto_wrapper): Use writeargv and pex.
649 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
652 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
653 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
656 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
658 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
660 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
662 * lto-plugin.c: Include libiberty.h.
663 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
666 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
668 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
671 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
673 * lto-plugin.c (plugin_file_info): Remove fd and elf.
674 (parse_table_entry): strdup entry->name and entry->comdat_key.
675 (free_1): Free name and comdat_key. Don't close the file. Don't call
677 (claim_file_handler): Always call elf_end.
679 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
681 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
682 -D_FILE_OFFSET_BITS=64
683 * Makefile.in: Regenerate
685 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
687 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
688 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
689 * Makefile.in: Regenerate.
690 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
691 * configure: Regenerate.
692 * configure.ac: Add AC_SUBST(target_noncanonical).
694 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
696 * lto-plugin.c: Include stdbool.h.
697 (debug, nop): Declare as bool.
699 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
701 * lto-plugin.c (nop): New.
702 (use_original_files): New.
703 (all_symbols_read_handler): Call use_original_files if nop is true.
704 (process_option): Parse the -nop option.
706 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
708 * lto-plugin.c (debug): New.
709 (exec_lto_wrapper): Print argv if debug is true.
710 (process_option): Process the -debug command line option.
712 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
714 * lto-plugin.c (process_option): The argument is now a single option,
715 not a space separated list.
717 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
719 * lto-plugin.c: Include sys/types.h and sys/wait.h
720 (output_files, num_output_files, lto_wrapper_argv,
721 lto_wrapper_num_args): New.
722 (free_2): Free output_files.
723 (write_resolution): Disable.
724 (add_output_files): New.
725 (exec_lto_wrapper): New.
726 (all_symbols_read_handler): Run lto-wrapper.
727 (claim_file_handler): Free lto_file.name and call elf_end.
728 (process_option): New.
730 2008-11-26 Rafael Espindola <espindola@google.com>
732 * lto-plugin.c (add_input_file): New.
733 (get_section): Return NULL if get_section fails.
734 (write_resolution): New.
735 (all_symbols_read_handler): Call add_input_file.
736 (claim_file_handler): Unlink the correct file.
737 (onload): Record add_input_file.
739 2008-09-23 Rafael Espindola <espindola@google.com>
741 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
742 Update the location of common.c.
743 * Makefile.in: Regenerate.
744 * common.c: Moved to gcc/lto.
745 * common.h: Moved to gcc/lto.
746 * lto-plugin.c: Update the location of common.h.
747 * lto-symtab.c: Update the location of common.h.
749 2008-09-23 Rafael Espindola <espindola@google.com>
751 * common.c: Include common.h.
752 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
754 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
757 2008-09-23 Rafael Espindola <espindola@google.com>
759 * lto-plugin.c (plugin_file_info): Add temp.
760 (cleanup_handler): Only delete temporary files.
761 (claim_file_handler): Initialize lto_file.temp.
763 2008-09-23 Rafael Espindola <espindola@google.com>
765 * plugin-api.h: Moved to include.
767 2008-09-23 Rafael Espindola <espindola@google.com>
769 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
772 2008-09-22 Rafael Espindola <espindola@google.com>
774 * plugin-api.h: Copy from binutils' cvs.
776 2008-09-22 Rafael Espindola <espindola@google.com>
778 * lto-symtab.c (get_symbols, add_symbols): Update signature.
779 * plugin-api.h: Copy from binutils' cvs.
781 2008-09-22 Rafael Espindola <espindola@google.com>
783 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
786 2008-09-10 Rafael Espindola <espindola@google.com>
788 * lto-plugin.c (onload): add missing break statements and asserts.
789 * lto-symtab.c (claim_file_handler): Make it static.
790 (all_symbols_read_handler): Make it static.
791 (all_file_handles): Make it static.
792 (num_file_handles): Make it static.
793 (register_claim_file): Make it static.
794 (register_object): Indent properly.
796 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
798 * Makefile.am (ltosymtab_LDADD): Add -lelf.
799 * Makefiel.in: Regenerate.
800 * lto-plugin.c: Include ar.h.
801 (claim_file_handler): Handle file->offset != 0.
802 * lto-symtab.c: Include gelf.h.
803 (all_file_handles): Change type.
804 (register_object): New.
805 (register_file): Add support for archives.
806 (resolve): Update to new type of all_file_handles.
807 (print): Update to new type of all_file_handles.
808 (free_all): Update to new type of all_file_handles.
809 (main): Update to new type of all_file_handles.
811 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
813 * lto-plugin.c (get_string_table): Remove.
814 (get_section): Use elf_strptr instead of get_string_table.
816 2008-09-08 Doug Kwan <dougkwan@google.com>
818 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
819 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
821 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
823 * Makefile.am (ltosymtab_SOURCES): add common.c.
824 (ltosymtab_CFLAGS): New.
825 (liblto_plugin_la_SOURCES): Add common.c.
826 * Makefile.in: Regenerate.
829 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
830 (plugin_symtab): New.
831 (plugin_file_info): New.
832 (register_all_symbols_read): New.
834 (claimed_files): New.
835 (num_claimed_files): New.
836 (translate): Don't drop the slot number.
839 (all_symbols_read_handler): New.
840 (claim_file_handler): Record every claimed file.
841 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
843 * lto-symtab.c: Include stdlib.h, string.h and common.h.
844 (current_file_handle): Remove.
845 (ld_plugin_all_symbols_read_handler): New.
846 (plugin_handle): New.
848 (all_file_handles): New.
849 (num_file_handles): New.
851 (register_all_symbols_read): New.
852 (add_symbols): Don't print the symbols, just record them.
853 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
855 (load_plugin): Use plugin_handle.
856 (register_file): Add the file handle to all_file_handles.
859 (unload_plugin): New.
861 (main): Call all_symbols_read_handler and free resources.
863 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
865 * Makefile.am (AM_CFLAGS): New.
866 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
867 (lib_LTLIBRARIES): New.
868 (liblto_plugin_la_SOURCES): New.
869 (liblto_plugin_la_LIBADD): New.
870 * Makefile.in: Regenerate.
871 * acinclude.m4: Don't include ../config/acx.m4 and
872 ../config/no-executables.m4.
873 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
875 * aclocal.m4: Regenerate.
876 * configure: Regenerate.
877 * configure.ac: Use AM_PROG_LIBTOOL.
879 * lto-symtab.c: Rewrite to use the plugin.
882 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
884 * configure: Regenerate.
885 * configure.ac: Use AC_CHECK_GELF.
886 * lto-symtab.c: Include gelf.h.
887 (get_string_table): Use size independent API.
888 (printTable): Use lld to print 64 bit integers.
890 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
892 * lto-symtab.c (parse_table_entry): Assert entry->kind and
893 entry->visibility are valid.
895 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
896 * lto-symtab.c (table_entry): Add comdat.
897 (parse_table_entry): Read comdat.
899 2008-08-21 Rafael Espindola <espindola@google.com>