1 2014-12-19 Release Manager
5 2014-05-22 Release Manager
9 2014-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11 Backport from mainline
12 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14 * configure: Regenerate.
16 2013-10-16 Release Manager
20 2013-05-31 Release Manager
24 2013-03-22 Release Manager
28 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
30 * configure: Regenerated.
32 2012-05-29 Joseph Myers <joseph@codesourcery.com>
34 * lto-plugin.c: Fix typo.
36 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
38 * configure: Regenerated.
40 2012-02-22 Kai Tietz <ktietz@redhat.com>
43 * lto-plugin.c (PRI_LL): New macro.
44 (dump_symtab): Use PRI_LL instead of ll in print.
45 (process_symtab): Use PRI_LL instead of ll in scan.
47 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
49 * configure: Regenerate.
51 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
53 * configure: Regenerate.
55 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
57 * configure: Regenerate.
59 2011-10-02 Jan Hubicka <jh@suse.cz>
62 * lto-plugin.c (get_symbols_v2): New variable.
63 (write_resolution): Use V2 API when available.
64 (onload): Handle LDPT_GET_SYMBOLS_V2.
66 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
67 Andi Kleen <ak@linux.intel.com>
70 * lto-plugin.c (sym_aux): Change id to unsigned long long.
71 (plugin_symtab): Likewise.
72 (dump_symtab): Likewise.
73 (resolve_conflicts): Likewise.
74 (process_symtab): Likewise.
76 2011-08-10 Richard Guenther <rguenther@suse.de>
80 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
81 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
82 * configure: Regenerate.
83 * Makefile.in: Likewise.
84 * aclocal.m4: Likewise.
86 2011-04-20 Jim Meyering <meyering@redhat.com>
88 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
90 2011-04-05 Richard Guenther <rguenther@suse.de>
93 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
95 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97 * Makefile.in: Regenerate.
98 * aclocal.m4: Regenerate.
99 * configure: Regenerate.
101 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
103 * Makefile.am (all-local): Rename from 'all'.
104 * Makefile.in: Regenerate.
106 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
109 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
110 (liblto_plugin_la_LDFLAGS): Add -module.
111 (copy_lto_plugin): Renamed to...
112 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
114 * Makefile.in: Rebuild.
116 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
119 * Makefile.am (Wc): New helper for encoding -Wc,.
120 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
121 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
122 * Makefile.in: Regenerated.
124 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
128 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
131 * Makefile.am (Wl): New helper for encoding -Wl,.
132 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
133 * Makefile.in: Regenerated.
135 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
138 * Makefile.am (Wl): New helper for encoding -Wl,.
139 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
140 * Makefile.in: Regenerated.
142 2011-01-25 Ian Lance Taylor <iant@google.com>
144 * lto-plugin.c (gold_version): New static variable.
145 (all_symbols_read_handler): Don't check pass_through_items if
146 using gold 1.11 or later.
147 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
149 2011-01-12 Richard Guenther <rguenther@suse.de>
152 * lto-plugin.c (parse_table_entry): Use memcpy to access
155 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
157 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
158 * Makefile.in: Regenerate.
160 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
164 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
166 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
167 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
168 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
169 * Makefile.in: Regenerate.
171 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
175 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
176 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
177 * configure: Regenerate.
178 * config.h.in: Likewise.
180 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
184 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
185 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
186 override -bindir setting.
187 * aclocal.m4: Regenerate.
188 * configure: Regenerate.
189 * Makefile.in: Regenerate.
191 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
193 * config.h.in: Regenerated.
194 * configure: Regenerated.
195 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
196 * lto-plugin.c (WIFEXITED): Define default.
197 (WEXITSTATUS): Likeiwse.
199 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
201 * config.h.in: Regenerated.
202 * configure: Regenerated.
203 * Makefile.in: Regenerated.
204 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
205 * lto-plugin.c: Include sys/wait.h conditionally.
206 * aclocal.m4: Regenerated.
208 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
210 * lto-plugin.c (add_output_files): Fix memory leak.
212 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
216 * configure.ac: Add AC_TYPE_INT64_T test.
217 * config.h.in: Regenerate.
218 * configure: Likewise.
219 * lto-plugin.c (debug): Use char not bool.
221 (check_1): Rename from check, and use int not bool for gate argument.
222 (check): Macro wrapper for the above to coerce gate argument into
223 boolean-valued integer in case it has pointer type.
224 (parse_table_entry): Use 0 not false.
225 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
226 into two 32-bit parts and printing as hex ints.
228 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
231 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
233 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
236 * lto-plugin.h: Delete.
237 * lto-plugin-elf.c: Likewise.
238 * lto-plugin-coff.c: Likewise.
239 * configure.ac: Don't use libelf, don't source config.gcc.
240 (LIBELFLIBS): Delete.
242 (LTO_FORMAT): Delete.
243 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
244 (config.h): Add AC_CONFIG_HEADERS directive.
245 * Makefile.am (LIBELFLIBS): Delete.
247 (LTO_FORMAT): Delete.
249 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
250 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
251 any object-format-specific source file in the link.
252 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
253 * config.h.in: Generate.
254 * configure: Regenerate.
255 * Makefile.in: Likewise.
256 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
257 (LTO_SEGMENT_NAME): New definition.
258 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
259 (LTO_SECTION_PREFIX_LEN): New definition.
260 (struct sym_aux): Struct definition moved here from lto-plugin.h.
261 (struct plugin_symtab): Likewise.
262 (struct plugin_objfile): Likewise.
263 (struct plugin_objfile): New struct def.
264 (enum symbol_style): New enum type.
265 (add_symbols): Make static.
266 (claimed_files): Likewise.
267 (num_claimed_files): Likewise.
268 (sym_style): New global.
269 (check): Make static.
270 (parse_table_entry): Likewise. Respect sym_style when extracting
271 symbol from symtab entry.
272 (translate): Make static.
273 (resolve_conflicts): Likewise.
274 (process_symtab): New function, per-section callback version of
275 old object-format-specific handling from deleted lto-plugin-elf.c.
276 (claim_file_handler): Convert ELF-specific version from deleted
277 lto-plugin-elf.c to simple_object interface and move here.
278 (process_options): Allow new '-sym-style=' option.
279 (onload): Don't call deleted onload_format_checks hook.
281 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
283 * lto-plugin.c (dump_symtab): Correct printf argument type.
284 (finish_conflict_resolution): Initialize resolution.
286 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
289 * configure.ac: Add AC_CANONICAL_SYSTEM.
290 * configure: Regenerated.
292 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
294 * configure.ac: Source config.gcc to determine lto_binary_reader.
295 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
296 * Makefile.am (LTO_FORMAT): Import.
297 (liblto_plugin_la_SOURCES): Add object format dependent module
298 defined by LTO_FORMAT.
299 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
300 and work around libtool warning.
301 * configure: Regenerate.
302 * Makefile.in: Likewise.
303 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
304 (struct sym_aux): Likewise.
305 (struct plugin_symtab): Likewise.
306 (struct plugin_file_info): Likewise.
307 (LTO_SECTION_PREFIX): Likewise.
308 (add_symbols): Make non-static.
309 (claimed_files): Likewise.
310 (num_claimed_files): Likewise.
312 (parse_table_entry): Likewise.
313 (translate): Likewise.
314 (resolve_conflicts): Likewise.
315 (process_symtab): Move to new lto-plugin-elf.c object format dependent
317 (claim_file_handler): Likewise, and make non-static.
318 (onload): Call new onload_format_checks function.
319 * lto-plugin.h: New file.
320 (LTO_SECTION_PREFIX): Move here.
321 (struct sym_aux): Likewise.
322 (struct plugin_symtab): Likewise.
323 (struct plugin_file_info): Likewise.
324 (claim_file_handler): Add new function prototype.
325 (onload_format_checks): Likewise.
326 (check): Declare extern.
327 (translate): Likewise.
328 (parse_table_entry): Likewise.
329 (resolve_conflicts): Likewise.
330 (add_symbols): Likewise.
331 (claimed_files): Likewise.
332 (num_claimed_files): Likewise.
333 * lto-plugin-elf.c (process_symtab): Move here.
334 (claim_file_handler): Likewise, and make non-static.
335 (onload_format_checks): New function factored out from onload.
336 * lto-plugin-coff.c (claim_file_handler): New function stub.
337 (onload_format_checks): Likewise.
339 2010-08-05 Andi Kleen <ak@linux.intel.com>
341 * lto-plugin.c: Include <hashtab.h>
342 (sym_aux): Add next_conflict field to save conflict chains.
343 (plugin_file_info): Add conflicts symtab.
344 (parse_table_entry): Initialize aux->next_conflict.
345 (process_symtab): Increment found.
347 (finish_conflict_resolution): Add.
349 (write_resolution): Remove symbols loop and move into
350 dump_symtab. Call dump_symtab for main symbol and conflicts table.
351 Call free_symtab to free conflicts table.
355 (symbol_strength): Add.
356 (resolve_conflicts): Add.
357 (claim_file_handler): Add n variable. Check return value of
358 process_symtab. Call resolve_conflicts.
360 2010-07-27 Andi Kleen <ak@linux.intel.com>
362 * lto-plugin.c (translate): Remove debug fprintf.
364 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
367 * lto-plugin.c (translate): Cast to unsigned long.
369 2010-07-23 Andi Kleen <ak@linux.intel.com>
372 * lto-plugin.c (sym_aux): Add.
373 (plugin_symtab): Remove slots. Add aux and id.
374 (parse_table_entry): Change to use aux instead of slots.
375 (LTO_SECTION_PREFIX): Add.
376 (translate): Improve buffer allocation. Change to append
377 symbols to existing out buffer.
378 (get_section): Remove.
379 (process_symtab): Add.
380 (free_2): Free symtab->aux.
381 (write_resolution): Handle aux instead of slots.
382 Print sub id to resolution file.
383 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
384 calls with call to process_symtab.
386 2010-07-22 Richard Guenther <rguenther@suse.de>
388 * Makefile.am: New copy_lto_plugin rule to install the plugin
390 * Makefile.in: Regenerated.
392 2010-05-21 Richard Guenther <rguenther@suse.de>
394 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
396 2010-05-07 Richard Guenther <rguenther@suse.de>
398 * lto-plugin.c (free_2): Do not free resolution_file.
399 (write_resolution): Check that we were passed a resolution file.
400 (all_symbols_read_handler): Adjust.
401 (cleanup_handler): Do not remove the resolution file.
402 (process_option): Handle -fresolution=.
404 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
407 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
408 * Makefile.in: Regenerate.
410 2010-04-23 Richard Guenther <rguenther@suse.de>
413 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
414 (translate): Likewise.
415 (all_symbols_read_handler): Likewise.
416 (claim_file_handler): Likewise.
417 (process_option): Likewise.
418 (add_output_files): Likewise. Remove filename length limit.
420 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
422 * Makefile.in: Regenerate.
423 * aclocal.m4: Regenerate.
425 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
428 * lto-plugin.c (cleanup_handler): Delete temporary output files.
430 2010-01-11 Richard Guenther <rguenther@suse.de>
433 * Makefile.am: Disable dependencies.
434 * Makefile.in: Regenerated.
436 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
439 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
442 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
445 * configure: Regenerated.
446 * Makefile.in: Likewise.
448 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
451 * lto-plugin.c (claim_file_handler): Print offsets in hex.
453 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
455 * lto-plugin.c (write_resolution): Assume resolution_file is set.
456 Print the symbol name.
457 (all_symbols_read_handler): Create a resolution file.
459 (cleanup_handler): Remove the resolution file.
460 (process_option): Drop the -resolution option.
462 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
464 * lto-plugin.c (temp_obj_dir_name): Remove.
465 (arguments_file_name): New.
466 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
467 (exec_lto_wrapper): Create arguments file with make_temp_file.
468 (cleanup_handler): Don't remove the temporary directory. Remove the
470 (onload): Don't create the temporary directory.
472 2009-11-04 Richard Guenther <rguenther@suse.de>
473 Rafael Avila de Espindola <espindola@google.com>
475 * lto-plugin.c (plugin_file_info): Remove temp field.
476 (cleanup_handler): Don't delete temporary objects.
477 (claim_file_handler): Don't create temporary objects.
479 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
481 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
483 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
486 * lto-plugin.c (claim_file_handler): Close files that we created.
488 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
490 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
493 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
496 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
497 * configure: Regenerate.
499 2009-10-26 Richard Guenther <rguenther@suse.de>
501 * configure.ac: Use AM_MAINTAINER_MODE.
502 * acinclude.m4: Remove.
503 * configure: Re-generate.
504 * Makefile.in: Likewise.
505 * aclocal.m4: Likewise.
507 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
510 * configure: Regenerate.
511 * configure.ac: Add AC_TYPE_UINT64_T.
513 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
515 * lto-plugin.c (message): New variable.
516 (check): New function.
517 (parse_table_entry, translate, write_resolution,add_output_files,
518 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
520 (cleanup_handler): Use check instead of assert. Remove the arguments
523 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
525 * lto-plugin.c (resolution_file): New.
526 (free_1): Update comment.
527 (free_2): Free resolution_file.
528 (write_resolution): Write resolution to specified file. Use the
529 syms array from the symbol table.
530 (all_symbols_read_handler): Delay call to free_1 past call to
532 (process_option): Add a -resolution option.
534 2009-10-13 Richard Guenther <rguenther@suse.de>
536 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
538 * Makefile.in: Regenerated.
540 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
542 * lto-plugin.c (add_input_library): New.
543 (all_symbols_read_handler): Use add_input_library for items that
545 (process_option): Fit in 80 columns.
546 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
548 2009-10-02 Diego Novillo <dnovillo@google.com>
550 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
551 and -D_FILE_OFFSET_BITS=64.
552 * configure.ac: Add AC_SYS_LARGEFILE.
553 * configure: Regenerate.
554 * Makefile.in: Regenerate.
555 * lto-plugin.c: Fix copyright boilerplate.
557 2009-10-02 Diego Novillo <dnovillo@google.com>
559 * Makefile.am (ACLOCAL_AMFLAGS): Define.
560 * aclocal.m4: Regenerate with aclocal-2.64
561 * acinclude.m4: Remove.
562 * Makefile.in: Regenerate with automake-1.11
563 * configure.ac (AC_PREREQ): Update to 2.64.
564 * configure: Regenerate.
566 2009-10-02 Diego Novillo <dnovillo@google.com>
568 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
569 and -D_FILE_OFFSET_BITS=64.
570 * configure.ac: Add AC_SYS_LARGEFILE.
571 * configure: Regenerate.
572 * Makefile.in: Regenerate.
573 * lto-plugin.c: Fix copyright boilerplate.
575 2009-10-02 Diego Novillo <dnovillo@google.com>
577 * Makefile.am (ACLOCAL_AMFLAGS): Define.
578 * aclocal.m4: Regenerate with aclocal-2.64
579 * acinclude.m4: Remove.
580 * Makefile.in: Regenerate with automake-1.11
581 * configure.ac (AC_PREREQ): Update to 2.64.
582 * configure: Regenerate.
584 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
586 * Makefile.am (liblto_plugin_la_SOURCES): Remove
587 $(top_srcdir)/../gcc/lto/common.c
588 * Makefile.in: Regenerate.
590 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
592 * lto-plugin.c (pass_through_items): New.
593 (num_pass_through_items): New.
594 (all_symbols_read_handler): Update to use the -pass-through option.
595 (process_option): Replace -libgcc with -pass-through.
597 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
599 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
600 register_cleanup to be set.
602 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
604 * Makefile.am: Remove all reference to ltosymtab.
605 * Makefile.in: Regenerate.
606 * lto-symtab.c: Remove.
608 2009-05-21 Diego Novillo <dnovillo@google.com>
610 * configure.ac: Remove call to AC_CHECK_GELF.
611 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
612 * acinclude.m4: Do not include ../config/libelf.m4
613 * Makefile.am (LIBELFLIBS): Define.
615 (AM_CPPFLAGS): Add $(LIBELFINC).
616 (ltosymtab_LDADD): Add $(LIBELFLIBS).
617 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
618 * lto-plugin.c: Always include <gelf.h>
619 * lto-symtab.c: Likewise.
620 * configure: Regenerate.
621 * Makefile.in: Regenerate.
623 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
625 * lto-plugin.c (libgcc_filename): New.
626 (all_symbols_read_handler): Pass libgcc to the linker.
627 (all_symbols_read_handler): Parse -libgcc
629 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
631 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
632 * Makefile.in: Regenerate.
633 * lto-plugin.c (add_output_files): Argument is now a FILE.
634 (exec_lto_wrapper): Use writeargv and pex.
636 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
639 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
640 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
643 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
645 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
647 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
649 * lto-plugin.c: Include libiberty.h.
650 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
653 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
655 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
658 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
660 * lto-plugin.c (plugin_file_info): Remove fd and elf.
661 (parse_table_entry): strdup entry->name and entry->comdat_key.
662 (free_1): Free name and comdat_key. Don't close the file. Don't call
664 (claim_file_handler): Always call elf_end.
666 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
668 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
669 -D_FILE_OFFSET_BITS=64
670 * Makefile.in: Regenerate
672 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
674 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
675 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
676 * Makefile.in: Regenerate.
677 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
678 * configure: Regenerate.
679 * configure.ac: Add AC_SUBST(target_noncanonical).
681 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
683 * lto-plugin.c: Include stdbool.h.
684 (debug, nop): Declare as bool.
686 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
688 * lto-plugin.c (nop): New.
689 (use_original_files): New.
690 (all_symbols_read_handler): Call use_original_files if nop is true.
691 (process_option): Parse the -nop option.
693 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
695 * lto-plugin.c (debug): New.
696 (exec_lto_wrapper): Print argv if debug is true.
697 (process_option): Process the -debug command line option.
699 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
701 * lto-plugin.c (process_option): The argument is now a single option,
702 not a space separated list.
704 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
706 * lto-plugin.c: Include sys/types.h and sys/wait.h
707 (output_files, num_output_files, lto_wrapper_argv,
708 lto_wrapper_num_args): New.
709 (free_2): Free output_files.
710 (write_resolution): Disable.
711 (add_output_files): New.
712 (exec_lto_wrapper): New.
713 (all_symbols_read_handler): Run lto-wrapper.
714 (claim_file_handler): Free lto_file.name and call elf_end.
715 (process_option): New.
717 2008-11-26 Rafael Espindola <espindola@google.com>
719 * lto-plugin.c (add_input_file): New.
720 (get_section): Return NULL if get_section fails.
721 (write_resolution): New.
722 (all_symbols_read_handler): Call add_input_file.
723 (claim_file_handler): Unlink the correct file.
724 (onload): Record add_input_file.
726 2008-09-23 Rafael Espindola <espindola@google.com>
728 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
729 Update the location of common.c.
730 * Makefile.in: Regenerate.
731 * common.c: Moved to gcc/lto.
732 * common.h: Moved to gcc/lto.
733 * lto-plugin.c: Update the location of common.h.
734 * lto-symtab.c: Update the location of common.h.
736 2008-09-23 Rafael Espindola <espindola@google.com>
738 * common.c: Include common.h.
739 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
741 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
744 2008-09-23 Rafael Espindola <espindola@google.com>
746 * lto-plugin.c (plugin_file_info): Add temp.
747 (cleanup_handler): Only delete temporary files.
748 (claim_file_handler): Initialize lto_file.temp.
750 2008-09-23 Rafael Espindola <espindola@google.com>
752 * plugin-api.h: Moved to include.
754 2008-09-23 Rafael Espindola <espindola@google.com>
756 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
759 2008-09-22 Rafael Espindola <espindola@google.com>
761 * plugin-api.h: Copy from binutils' cvs.
763 2008-09-22 Rafael Espindola <espindola@google.com>
765 * lto-symtab.c (get_symbols, add_symbols): Update signature.
766 * plugin-api.h: Copy from binutils' cvs.
768 2008-09-22 Rafael Espindola <espindola@google.com>
770 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
773 2008-09-10 Rafael Espindola <espindola@google.com>
775 * lto-plugin.c (onload): add missing break statements and asserts.
776 * lto-symtab.c (claim_file_handler): Make it static.
777 (all_symbols_read_handler): Make it static.
778 (all_file_handles): Make it static.
779 (num_file_handles): Make it static.
780 (register_claim_file): Make it static.
781 (register_object): Indent properly.
783 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
785 * Makefile.am (ltosymtab_LDADD): Add -lelf.
786 * Makefiel.in: Regenerate.
787 * lto-plugin.c: Include ar.h.
788 (claim_file_handler): Handle file->offset != 0.
789 * lto-symtab.c: Include gelf.h.
790 (all_file_handles): Change type.
791 (register_object): New.
792 (register_file): Add support for archives.
793 (resolve): Update to new type of all_file_handles.
794 (print): Update to new type of all_file_handles.
795 (free_all): Update to new type of all_file_handles.
796 (main): Update to new type of all_file_handles.
798 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
800 * lto-plugin.c (get_string_table): Remove.
801 (get_section): Use elf_strptr instead of get_string_table.
803 2008-09-08 Doug Kwan <dougkwan@google.com>
805 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
806 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
808 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
810 * Makefile.am (ltosymtab_SOURCES): add common.c.
811 (ltosymtab_CFLAGS): New.
812 (liblto_plugin_la_SOURCES): Add common.c.
813 * Makefile.in: Regenerate.
816 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
817 (plugin_symtab): New.
818 (plugin_file_info): New.
819 (register_all_symbols_read): New.
821 (claimed_files): New.
822 (num_claimed_files): New.
823 (translate): Don't drop the slot number.
826 (all_symbols_read_handler): New.
827 (claim_file_handler): Record every claimed file.
828 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
830 * lto-symtab.c: Include stdlib.h, string.h and common.h.
831 (current_file_handle): Remove.
832 (ld_plugin_all_symbols_read_handler): New.
833 (plugin_handle): New.
835 (all_file_handles): New.
836 (num_file_handles): New.
838 (register_all_symbols_read): New.
839 (add_symbols): Don't print the symbols, just record them.
840 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
842 (load_plugin): Use plugin_handle.
843 (register_file): Add the file handle to all_file_handles.
846 (unload_plugin): New.
848 (main): Call all_symbols_read_handler and free resources.
850 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
852 * Makefile.am (AM_CFLAGS): New.
853 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
854 (lib_LTLIBRARIES): New.
855 (liblto_plugin_la_SOURCES): New.
856 (liblto_plugin_la_LIBADD): New.
857 * Makefile.in: Regenerate.
858 * acinclude.m4: Don't include ../config/acx.m4 and
859 ../config/no-executables.m4.
860 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
862 * aclocal.m4: Regenerate.
863 * configure: Regenerate.
864 * configure.ac: Use AM_PROG_LIBTOOL.
866 * lto-symtab.c: Rewrite to use the plugin.
869 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
871 * configure: Regenerate.
872 * configure.ac: Use AC_CHECK_GELF.
873 * lto-symtab.c: Include gelf.h.
874 (get_string_table): Use size independent API.
875 (printTable): Use lld to print 64 bit integers.
877 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
879 * lto-symtab.c (parse_table_entry): Assert entry->kind and
880 entry->visibility are valid.
882 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
883 * lto-symtab.c (table_entry): Add comdat.
884 (parse_table_entry): Read comdat.
886 2008-08-21 Rafael Espindola <espindola@google.com>