Merged revisions 209304,209307,209332,209338-209339,209343,209346,209351,209354,20936...
[official-gcc.git] / gcc-4_9 / lto-plugin / ChangeLog
blobaf21cf82798af983b77d6fbd518c980da89b29e6
1 2014-04-22  Release Manager
3         * GCC 4.9.0 released.
5 2014-04-02  Richard Biener  <rguenther@suse.de>
7         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
8         is set in COLLECT_GCC_OPTIONS.
10 2014-03-28  Richard Biener  <rguenther@suse.de>
12         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
14 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
17         for gcc.
18         * configure: Regenerate.
19         * Makefile.am (AM_LDFLAGS): New variable.
20         (liblto_plugin_la_LDFLAGS): Add it.
21         * Makefile.in: Regenerate.
23 2013-09-20  Alan Modra  <amodra@gmail.com>
25         * configure: Regenerate.
27 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
29         * configure: Regenerated.
31 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
33         * lto-plugin.c: Fix typo.
35 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
37         * configure: Regenerated.
39 2012-02-22  Kai Tietz  <ktietz@redhat.com>
41         PR lto/50616
42         * lto-plugin.c (PRI_LL): New macro.
43         (dump_symtab): Use PRI_LL instead of ll in print.
44         (process_symtab): Use PRI_LL instead of ll in scan.
46 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
48         * configure: Regenerate.
50 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
52         * configure: Regenerate.
54 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
56         * configure: Regenerate.
58 2011-10-02  Jan Hubicka  <jh@suse.cz>
60         PR lto/47247
61         * lto-plugin.c (get_symbols_v2): New variable.
62         (write_resolution): Use V2 API when available.
63         (onload): Handle LDPT_GET_SYMBOLS_V2.
65 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
66             Andi Kleen  <ak@linux.intel.com>
68         PR lto/50568
69         * lto-plugin.c (sym_aux): Change id to unsigned long long.
70         (plugin_symtab): Likewise.
71         (dump_symtab): Likewise.
72         (resolve_conflicts): Likewise.
73         (process_symtab): Likewise.
75 2011-08-10  Richard Guenther  <rguenther@suse.de>
77         PR bootstrap/49907
78         lto-plugin/
79         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
80         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
81         * configure: Regenerate.
82         * Makefile.in: Likewise.
83         * aclocal.m4: Likewise.
85 2011-04-20  Jim Meyering  <meyering@redhat.com>
87         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
89 2011-04-05  Richard Guenther  <rguenther@suse.de>
91         PR bootstrap/48431
92         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
94 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96         * Makefile.in: Regenerate.
97         * aclocal.m4: Regenerate.
98         * configure: Regenerate.
100 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102         * Makefile.am (all-local): Rename from 'all'.
103         * Makefile.in: Regenerate.
105 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
107         PR lto/47225
108         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
109         (liblto_plugin_la_LDFLAGS): Add -module.
110         (copy_lto_plugin): Renamed to...
111         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
112         of static modules.
113         * Makefile.in: Rebuild.
115 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
117         PR lto/47225
118         * Makefile.am (Wc): New helper for encoding -Wc,.
119         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
120         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
121         * Makefile.in: Regenerated.
123 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
125         Revert:
127         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
129         PR lto/47225
130         * Makefile.am (Wl): New helper for encoding -Wl,.
131         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
132         * Makefile.in: Regenerated.
134 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
136         PR lto/47225
137         * Makefile.am (Wl): New helper for encoding -Wl,.
138         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
139         * Makefile.in: Regenerated.
141 2011-01-25  Ian Lance Taylor  <iant@google.com>
143         * lto-plugin.c (gold_version): New static variable.
144         (all_symbols_read_handler): Don't check pass_through_items if
145         using gold 1.11 or later.
146         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
148 2011-01-12  Richard Guenther  <rguenther@suse.de>
150         PR lto/47264
151         * lto-plugin.c (parse_table_entry): Use memcpy to access
152         unaligned fields.
154 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
156         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
157         * Makefile.in: Regenerate.
159 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
161         Revert last change.
163 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
165         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
166         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
167         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
168         * Makefile.in: Regenerate.
170 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
172         PR middle-end/46674
173         PR lto/43157
174         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
175         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
176         * configure: Regenerate.
177         * config.h.in: Likewise.
179 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
181         PR target/40125
182         PR lto/46695
183         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
184         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
185         override -bindir setting.
186         * aclocal.m4: Regenerate.
187         * configure: Regenerate.
188         * Makefile.in: Regenerate.
190 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
192         * config.h.in: Regenerated.
193         * configure: Regenerated.
194         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
195         * lto-plugin.c (WIFEXITED): Define default.
196         (WEXITSTATUS): Likeiwse.
198 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
200         * config.h.in: Regenerated.
201         * configure: Regenerated.
202         * Makefile.in: Regenerated.
203         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
204         * lto-plugin.c:  Include sys/wait.h conditionally.
205         * aclocal.m4: Regenerated.
207 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
209         * lto-plugin.c (add_output_files): Fix memory leak.
211 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
213         PR bootstrap/46397
214         PR bootstrap/46362
215         * configure.ac: Add AC_TYPE_INT64_T test.
216         * config.h.in: Regenerate.
217         * configure: Likewise.
218         * lto-plugin.c (debug): Use char not bool.
219         (nop): Likewise.
220         (check_1): Rename from check, and use int not bool for gate argument.
221         (check): Macro wrapper for the above to coerce gate argument into
222         boolean-valued integer in case it has pointer type.
223         (parse_table_entry): Use 0 not false.
224         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
225         into two 32-bit parts and printing as hex ints.
227 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
229         PR lto/46291
230         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
232 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
234         PR lto/46273
235         * lto-plugin.h: Delete.
236         * lto-plugin-elf.c: Likewise.
237         * lto-plugin-coff.c: Likewise.
238         * configure.ac: Don't use libelf, don't source config.gcc.
239         (LIBELFLIBS): Delete.
240         (LIBELFINC): Delete.
241         (LTO_FORMAT): Delete.
242         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
243         (config.h): Add AC_CONFIG_HEADERS directive.
244         * Makefile.am (LIBELFLIBS): Delete.
245         (LIBELFINC): Delete.
246         (LTO_FORMAT): Delete.
247         (DEFS): Import.
248         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
249         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
250         any object-format-specific source file in the link.
251         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
252         * config.h.in: Generate.
253         * configure: Regenerate.
254         * Makefile.in: Likewise.
255         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
256         (LTO_SEGMENT_NAME): New definition.
257         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
258         (LTO_SECTION_PREFIX_LEN): New definition.
259         (struct sym_aux): Struct definition moved here from lto-plugin.h.
260         (struct plugin_symtab): Likewise.
261         (struct plugin_objfile): Likewise.
262         (struct plugin_objfile): New struct def.
263         (enum symbol_style): New enum type.
264         (add_symbols): Make static.
265         (claimed_files): Likewise.
266         (num_claimed_files): Likewise.
267         (sym_style): New global.
268         (check): Make static.
269         (parse_table_entry): Likewise.  Respect sym_style when extracting
270         symbol from symtab entry.
271         (translate): Make static.
272         (resolve_conflicts): Likewise.
273         (process_symtab): New function, per-section callback version of
274         old object-format-specific handling from deleted lto-plugin-elf.c.
275         (claim_file_handler): Convert ELF-specific version from deleted
276         lto-plugin-elf.c to simple_object interface and move here.
277         (process_options): Allow new '-sym-style=' option.
278         (onload): Don't call deleted onload_format_checks hook.
280 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
282         * lto-plugin.c (dump_symtab): Correct printf argument type.
283         (finish_conflict_resolution): Initialize resolution.
285 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
287         PR bootstrap/45951
288         * configure.ac: Add AC_CANONICAL_SYSTEM.
289         * configure: Regenerated.
291 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
293         * configure.ac: Source config.gcc to determine lto_binary_reader.
294         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
295         * Makefile.am (LTO_FORMAT): Import.
296         (liblto_plugin_la_SOURCES): Add object format dependent module
297         defined by LTO_FORMAT.
298         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
299         and work around libtool warning.
300         * configure: Regenerate.
301         * Makefile.in: Likewise.
302         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
303         (struct sym_aux): Likewise.
304         (struct plugin_symtab): Likewise.
305         (struct plugin_file_info): Likewise.
306         (LTO_SECTION_PREFIX): Likewise.
307         (add_symbols):  Make non-static.
308         (claimed_files): Likewise.
309         (num_claimed_files): Likewise.
310         (check): Likewise.
311         (parse_table_entry): Likewise.
312         (translate): Likewise.
313         (resolve_conflicts): Likewise.
314         (process_symtab): Move to new lto-plugin-elf.c object format dependent
315         source file.
316         (claim_file_handler): Likewise, and make non-static.
317         (onload): Call new onload_format_checks function.
318         * lto-plugin.h: New file.
319         (LTO_SECTION_PREFIX): Move here.
320         (struct sym_aux): Likewise.
321         (struct plugin_symtab): Likewise.
322         (struct plugin_file_info): Likewise.
323         (claim_file_handler): Add new function prototype.
324         (onload_format_checks): Likewise.
325         (check): Declare extern.
326         (translate): Likewise.
327         (parse_table_entry): Likewise.
328         (resolve_conflicts): Likewise.
329         (add_symbols):  Likewise.
330         (claimed_files): Likewise.
331         (num_claimed_files): Likewise.
332         * lto-plugin-elf.c (process_symtab): Move here.
333         (claim_file_handler): Likewise, and make non-static.
334         (onload_format_checks): New function factored out from onload.
335         * lto-plugin-coff.c (claim_file_handler): New function stub.
336         (onload_format_checks): Likewise.
338 2010-08-05  Andi Kleen  <ak@linux.intel.com>
340         * lto-plugin.c: Include <hashtab.h>
341         (sym_aux): Add next_conflict field to save conflict chains.
342         (plugin_file_info): Add conflicts symtab.
343         (parse_table_entry): Initialize aux->next_conflict.
344         (process_symtab): Increment found.
345         (dump_symtab): Add.
346         (finish_conflict_resolution): Add.
347         (free_symtab): Add.
348         (write_resolution): Remove symbols loop and move into
349         dump_symtab. Call dump_symtab for main symbol and conflicts table.
350         Call free_symtab to free conflicts table.
351         (SWAP): Add.
352         (eq_sym): Add.
353         (hash_sym): Add.
354         (symbol_strength): Add.
355         (resolve_conflicts): Add.
356         (claim_file_handler): Add n variable. Check return value of
357         process_symtab. Call resolve_conflicts.
359 2010-07-27  Andi Kleen  <ak@linux.intel.com>
361         * lto-plugin.c (translate): Remove debug fprintf.
363 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
365         PR bootstrap/45042
366         * lto-plugin.c (translate): Cast to unsigned long.
368 2010-07-23   Andi Kleen  <ak@linux.intel.com>
370         PR lto/44992
371         * lto-plugin.c (sym_aux): Add.
372         (plugin_symtab): Remove slots. Add aux and id.
373         (parse_table_entry): Change to use aux instead of slots.
374         (LTO_SECTION_PREFIX): Add.
375         (translate): Improve buffer allocation. Change to append
376         symbols to existing out buffer.
377         (get_section): Remove.
378         (process_symtab): Add.
379         (free_2): Free symtab->aux.
380         (write_resolution): Handle aux instead of slots.
381         Print sub id to resolution file.
382         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
383         calls with call to process_symtab.
385 2010-07-22  Richard Guenther  <rguenther@suse.de>
387         * Makefile.am: New copy_lto_plugin rule to install the plugin
388         into ../gcc.
389         * Makefile.in: Regenerated.
391 2010-05-21  Richard Guenther  <rguenther@suse.de>
393         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
395 2010-05-07  Richard Guenther <rguenther@suse.de>
397         * lto-plugin.c (free_2): Do not free resolution_file.
398         (write_resolution): Check that we were passed a resolution file.
399         (all_symbols_read_handler): Adjust.
400         (cleanup_handler): Do not remove the resolution file.
401         (process_option): Handle -fresolution=.
403 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
405         PR other/43620
406         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
407         * Makefile.in: Regenerate.
409 2010-04-23  Richard Guenther  <rguenther@suse.de>
411         PR lto/41550
412         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
413         (translate): Likewise.
414         (all_symbols_read_handler): Likewise.
415         (claim_file_handler): Likewise.
416         (process_option): Likewise.
417         (add_output_files): Likewise.  Remove filename length limit.
419 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
421         * Makefile.in: Regenerate.
422         * aclocal.m4: Regenerate.
424 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
426         PR lto/43336
427         * lto-plugin.c (cleanup_handler): Delete temporary output files.
429 2010-01-11  Richard Guenther  <rguenther@suse.de>
431         PR lto/41569
432         * Makefile.am: Disable dependencies.
433         * Makefile.in: Regenerated.
435 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
437         PR lto/42520
438         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
439         if -v is passed.
441 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
443         PR bootstrap/42306
444         * configure: Regenerated.
445         * Makefile.in: Likewise.
447 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
449         PR bootstrap/42096
450         * lto-plugin.c (claim_file_handler): Print offsets in hex.
452 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
454         * lto-plugin.c (write_resolution): Assume resolution_file is set.
455         Print the symbol name.
456         (all_symbols_read_handler): Create a resolution file.
457         Pass it to gcc.
458         (cleanup_handler): Remove the resolution file.
459         (process_option): Drop the -resolution option.
461 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
463         * lto-plugin.c (temp_obj_dir_name): Remove.
464         (arguments_file_name): New.
465         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
466         (exec_lto_wrapper):  Create arguments file with make_temp_file.
467         (cleanup_handler): Don't remove the temporary directory. Remove the
468         arguments file.
469         (onload): Don't create the temporary directory.
471 2009-11-04  Richard Guenther  <rguenther@suse.de>
472             Rafael Avila de Espindola  <espindola@google.com>
474         * lto-plugin.c (plugin_file_info): Remove temp field.
475         (cleanup_handler): Don't delete temporary objects.
476         (claim_file_handler): Don't create temporary objects.
478 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
480         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
482 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
484         PR41871
485         * lto-plugin.c (claim_file_handler): Close files that we created.
487 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
489         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
490         LDPL_ERROR
492 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
494         PR lto/41652
495         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
496         * configure: Regenerate.
498 2009-10-26  Richard Guenther  <rguenther@suse.de>
500         * configure.ac: Use AM_MAINTAINER_MODE.
501         * acinclude.m4: Remove.
502         * configure: Re-generate.
503         * Makefile.in: Likewise.
504         * aclocal.m4: Likewise.
506 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
507     
508         PR40790
509         * configure: Regenerate.
510         * configure.ac: Add AC_TYPE_UINT64_T.
512 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
514         * lto-plugin.c (message): New variable.
515         (check): New function.
516         (parse_table_entry, translate, write_resolution,add_output_files,
517         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
518         assert.
519         (cleanup_handler): Use check instead of assert. Remove the arguments
520         file if it exists.
522 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
524         * lto-plugin.c (resolution_file): New.
525         (free_1): Update comment.
526         (free_2): Free resolution_file.
527         (write_resolution): Write resolution to specified file. Use the
528         syms array from the symbol table.
529         (all_symbols_read_handler): Delay call to free_1 past call to
530         write_resolution.
531         (process_option): Add a -resolution option.
533 2009-10-13  Richard Guenther  <rguenther@suse.de>
535         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
536         correct libiberty.
537         * Makefile.in: Regenerated.
539 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
541         * lto-plugin.c (add_input_library): New.
542         (all_symbols_read_handler): Use add_input_library for items that
543         start with -l.
544         (process_option): Fit in 80 columns.
545         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
547 2009-10-02  Diego Novillo  <dnovillo@google.com>
549         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
550         and -D_FILE_OFFSET_BITS=64.
551         * configure.ac: Add AC_SYS_LARGEFILE.
552         * configure: Regenerate.
553         * Makefile.in: Regenerate.
554         * lto-plugin.c: Fix copyright boilerplate.
556 2009-10-02  Diego Novillo  <dnovillo@google.com>
558         * Makefile.am (ACLOCAL_AMFLAGS): Define.
559         * aclocal.m4: Regenerate with aclocal-2.64
560         * acinclude.m4: Remove.
561         * Makefile.in: Regenerate with automake-1.11
562         * configure.ac (AC_PREREQ): Update to 2.64.
563         * configure: Regenerate.
565 2009-10-02  Diego Novillo  <dnovillo@google.com>
567         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
568         and -D_FILE_OFFSET_BITS=64.
569         * configure.ac: Add AC_SYS_LARGEFILE.
570         * configure: Regenerate.
571         * Makefile.in: Regenerate.
572         * lto-plugin.c: Fix copyright boilerplate.
574 2009-10-02  Diego Novillo  <dnovillo@google.com>
576         * Makefile.am (ACLOCAL_AMFLAGS): Define.
577         * aclocal.m4: Regenerate with aclocal-2.64
578         * acinclude.m4: Remove.
579         * Makefile.in: Regenerate with automake-1.11
580         * configure.ac (AC_PREREQ): Update to 2.64.
581         * configure: Regenerate.
583 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
585         * Makefile.am (liblto_plugin_la_SOURCES): Remove
586         $(top_srcdir)/../gcc/lto/common.c
587         * Makefile.in: Regenerate.
589 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
591         * lto-plugin.c (pass_through_items): New.
592         (num_pass_through_items): New.
593         (all_symbols_read_handler): Update to use the -pass-through option.
594         (process_option): Replace -libgcc with -pass-through.
595         
596 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
598         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
599         register_cleanup to be set.
601 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
603         * Makefile.am: Remove all reference to ltosymtab.
604         * Makefile.in: Regenerate.
605         * lto-symtab.c: Remove.
607 2009-05-21  Diego Novillo  <dnovillo@google.com>
609         * configure.ac: Remove call to AC_CHECK_GELF.
610         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
611         * acinclude.m4: Do not include ../config/libelf.m4
612         * Makefile.am (LIBELFLIBS): Define.
613         (LIBELFINC): Define.
614         (AM_CPPFLAGS): Add $(LIBELFINC).
615         (ltosymtab_LDADD): Add $(LIBELFLIBS).
616         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
617         * lto-plugin.c: Always include <gelf.h>
618         * lto-symtab.c: Likewise.
619         * configure: Regenerate.
620         * Makefile.in: Regenerate.
622 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
624         * lto-plugin.c (libgcc_filename): New.
625         (all_symbols_read_handler): Pass libgcc to the linker.
626         (all_symbols_read_handler): Parse -libgcc
628 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
630         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
631         * Makefile.in: Regenerate.
632         * lto-plugin.c (add_output_files): Argument is now a FILE.
633         (exec_lto_wrapper): Use writeargv and pex.
635 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
637         Revert:
638         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
639         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
642 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
644         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
646 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
648         * lto-plugin.c: Include libiberty.h.
649         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
650         snprintf.
652 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
654         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
655         file to lto-wrapper.
657 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
659         * lto-plugin.c (plugin_file_info): Remove fd and elf.
660         (parse_table_entry): strdup entry->name and entry->comdat_key.
661         (free_1): Free name and comdat_key. Don't close the file. Don't call
662         elf_end.
663         (claim_file_handler): Always call elf_end.
665 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
667         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
668         -D_FILE_OFFSET_BITS=64
669         * Makefile.in: Regenerate
671 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
673         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
674         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
675         * Makefile.in: Regenerate.
676         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
677         * configure: Regenerate.
678         * configure.ac: Add AC_SUBST(target_noncanonical).
680 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
682         * lto-plugin.c: Include stdbool.h.
683         (debug, nop): Declare as bool.
685 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
687         * lto-plugin.c (nop): New.
688         (use_original_files): New.
689         (all_symbols_read_handler): Call use_original_files if nop is true.
690         (process_option): Parse the -nop option.
692 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
694         * lto-plugin.c (debug): New.
695         (exec_lto_wrapper): Print argv if debug is true.
696         (process_option): Process the -debug command line option.
698 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
700         * lto-plugin.c (process_option): The argument is now a single option,
701         not a space separated list.
703 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
705         * lto-plugin.c: Include sys/types.h and sys/wait.h
706         (output_files, num_output_files, lto_wrapper_argv,
707         lto_wrapper_num_args): New.
708         (free_2): Free output_files.
709         (write_resolution): Disable.
710         (add_output_files): New.
711         (exec_lto_wrapper): New.
712         (all_symbols_read_handler): Run lto-wrapper.
713         (claim_file_handler): Free lto_file.name and call elf_end.
714         (process_option): New.
716 2008-11-26  Rafael Espindola  <espindola@google.com>
718         * lto-plugin.c (add_input_file): New.
719         (get_section): Return NULL if get_section fails.
720         (write_resolution): New.
721         (all_symbols_read_handler): Call add_input_file.
722         (claim_file_handler): Unlink the correct file.
723         (onload): Record add_input_file.
725 2008-09-23 Rafael Espindola  <espindola@google.com>
727         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
728         Update the location of common.c.
729         * Makefile.in: Regenerate.
730         * common.c: Moved to gcc/lto.
731         * common.h: Moved to gcc/lto.
732         * lto-plugin.c: Update the location of common.h.
733         * lto-symtab.c: Update the location of common.h.
735 2008-09-23 Rafael Espindola  <espindola@google.com>
737         * common.c: Include common.h.
738         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
739         sizes.
740         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
741         explicit sizes.
743 2008-09-23 Rafael Espindola  <espindola@google.com>
745         * lto-plugin.c (plugin_file_info): Add temp.
746         (cleanup_handler): Only delete temporary files.
747         (claim_file_handler): Initialize lto_file.temp.
749 2008-09-23  Rafael Espindola  <espindola@google.com>
751         * plugin-api.h: Moved to include.
753 2008-09-23 Rafael Espindola  <espindola@google.com>
755         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
756         format.
758 2008-09-22 Rafael Espindola  <espindola@google.com>
760         * plugin-api.h: Copy from binutils' cvs.
762 2008-09-22 Rafael Espindola  <espindola@google.com>
764         * lto-symtab.c (get_symbols, add_symbols): Update signature.
765         * plugin-api.h: Copy from binutils' cvs.
767 2008-09-22 Rafael Espindola  <espindola@google.com>
769         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
770         Make extern
772 2008-09-10 Rafael Espindola  <espindola@google.com>
774         * lto-plugin.c (onload): add missing break statements and asserts.
775         * lto-symtab.c (claim_file_handler): Make it static.
776         (all_symbols_read_handler): Make it static.
777         (all_file_handles): Make it static.
778         (num_file_handles): Make it static.
779         (register_claim_file): Make it static.
780         (register_object): Indent properly.
782 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
784         * Makefile.am (ltosymtab_LDADD): Add -lelf.
785         * Makefiel.in: Regenerate.
786         * lto-plugin.c: Include ar.h.
787         (claim_file_handler): Handle file->offset != 0.
788         * lto-symtab.c: Include gelf.h.
789         (all_file_handles): Change type.
790         (register_object): New.
791         (register_file): Add support for archives.
792         (resolve): Update to new type of all_file_handles.
793         (print): Update to new type of all_file_handles.
794         (free_all): Update to new type of all_file_handles.
795         (main): Update to new type of all_file_handles.
797 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
799         * lto-plugin.c (get_string_table): Remove.
800         (get_section): Use elf_strptr instead of get_string_table.
802 2008-09-08  Doug Kwan  <dougkwan@google.com>
804         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
805         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
807 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
809         * Makefile.am (ltosymtab_SOURCES): add common.c.
810         (ltosymtab_CFLAGS): New.
811         (liblto_plugin_la_SOURCES): Add common.c.
812         * Makefile.in: Regenerate.
813         * common.c: New.
814         * common.h: New.
815         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
816         (plugin_symtab): New.
817         (plugin_file_info): New.
818         (register_all_symbols_read): New.
819         (get_symbols): New.
820         (claimed_files): New.
821         (num_claimed_files): New.
822         (translate): Don't drop the slot number.
823         (free_1): New.
824         (free_2): New.
825         (all_symbols_read_handler): New.
826         (claim_file_handler): Record every claimed file.
827         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
828         LDPT_GET_SYMBOLS.
829         * lto-symtab.c: Include stdlib.h, string.h and common.h.
830         (current_file_handle): Remove.
831         (ld_plugin_all_symbols_read_handler): New.
832         (plugin_handle): New.
833         (file_handle): New.
834         (all_file_handles): New.
835         (num_file_handles): New.
836         (get_symbols): New.
837         (register_all_symbols_read): New.
838         (add_symbols): Don't print the symbols, just record them.
839         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
840         LDPT_GET_SYMBOLS.
841         (load_plugin): Use plugin_handle.
842         (register_file): Add the file handle to all_file_handles.
843         (resolve): New.
844         (print): New.
845         (unload_plugin): New.
846         (free_all): New.
847         (main): Call all_symbols_read_handler and free resources.
849 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
851         * Makefile.am (AM_CFLAGS): New.
852         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
853         (lib_LTLIBRARIES): New.
854         (liblto_plugin_la_SOURCES): New.
855         (liblto_plugin_la_LIBADD): New.
856         * Makefile.in: Regenerate.
857         * acinclude.m4: Don't include ../config/acx.m4 and
858         ../config/no-executables.m4.
859         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
860         ../libtool.m4.
861         * aclocal.m4: Regenerate.
862         * configure: Regenerate.
863         * configure.ac: Use AM_PROG_LIBTOOL.
864         * lto-plugin.c: New.
865         * lto-symtab.c: Rewrite to use the plugin.
866         * plugin-api.h: New.
868 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
870         * configure: Regenerate.
871         * configure.ac: Use AC_CHECK_GELF.
872         * lto-symtab.c: Include gelf.h.
873         (get_string_table): Use size independent API.
874         (printTable): Use lld to print 64 bit integers.
876 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
878         * lto-symtab.c (parse_table_entry): Assert entry->kind and
879         entry->visibility are valid.
881 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
882         * lto-symtab.c (table_entry): Add comdat.
883         (parse_table_entry): Read comdat.
885 2008-08-21  Rafael Espindola  <espindola@google.com>
887         * Makefile.am: New.
888         * Makefile.in: New.
889         * acinclude.m4: New.
890         * aclocal.m4: New.
891         * configure: New.
892         * configure.ac: New.
893         * lto-symtab.c: New.