Fix wrong assertion for LIPO
[official-gcc.git] / gcc-4_6_3-mobile / lto-plugin / ChangeLog
blob86e26d88ba86b1075779b03fcdd89e2658d472a7
1 2012-03-01  Release Manager
3         * GCC 4.6.3 released.
5 2012-01-03  Richard Guenther  <rguenther@suse.de>
7         Backport from mainline
8         2011-08-10  Richard Guenther  <rguenther@suse.de>
10         PR bootstrap/49907
11         lto-plugin/
12         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
13         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
14         * configure: Regenerate.
15         * Makefile.in: Likewise.
16         * aclocal.m4: Likewise.
18 2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
20         * configure: Regenerate.
22 2011-10-26  Release Manager
24         * GCC 4.6.2 released.
26 2011-06-27  Release Manager
28         * GCC 4.6.1 released.
30 2011-04-05  Richard Guenther  <rguenther@suse.de>
32         PR bootstrap/48431
33         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
35 2011-03-25  Release Manager
37         * GCC 4.6.0 released.
39 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41         * Makefile.in: Regenerate.
42         * aclocal.m4: Regenerate.
43         * configure: Regenerate.
45 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47         * Makefile.am (all-local): Rename from 'all'.
48         * Makefile.in: Regenerate.
50 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
52         PR lto/47225
53         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
54         (liblto_plugin_la_LDFLAGS): Add -module.
55         (copy_lto_plugin): Renamed to...
56         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
57         of static modules.
58         * Makefile.in: Rebuild.
60 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
62         PR lto/47225
63         * Makefile.am (Wc): New helper for encoding -Wc,.
64         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
65         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
66         * Makefile.in: Regenerated.
68 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
70         Revert:
72         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
74         PR lto/47225
75         * Makefile.am (Wl): New helper for encoding -Wl,.
76         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
77         * Makefile.in: Regenerated.
79 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
81         PR lto/47225
82         * Makefile.am (Wl): New helper for encoding -Wl,.
83         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
84         * Makefile.in: Regenerated.
86 2011-01-25  Ian Lance Taylor  <iant@google.com>
88         * lto-plugin.c (gold_version): New static variable.
89         (all_symbols_read_handler): Don't check pass_through_items if
90         using gold 1.11 or later.
91         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
93 2011-01-12  Richard Guenther  <rguenther@suse.de>
95         PR lto/47264
96         * lto-plugin.c (parse_table_entry): Use memcpy to access
97         unaligned fields.
99 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
101         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
102         * Makefile.in: Regenerate.
104 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
106         Revert last change.
108 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
110         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
111         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
112         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
113         * Makefile.in: Regenerate.
115 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
117         PR middle-end/46674
118         PR lto/43157
119         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
120         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
121         * configure: Regenerate.
122         * config.h.in: Likewise.
124 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
126         PR target/40125
127         PR lto/46695
128         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
129         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
130         override -bindir setting.
131         * aclocal.m4: Regenerate.
132         * configure: Regenerate.
133         * Makefile.in: Regenerate.
135 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
137         * config.h.in: Regenerated.
138         * configure: Regenerated.
139         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
140         * lto-plugin.c (WIFEXITED): Define default.
141         (WEXITSTATUS): Likeiwse.
143 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
145         * config.h.in: Regenerated.
146         * configure: Regenerated.
147         * Makefile.in: Regenerated.
148         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
149         * lto-plugin.c:  Include sys/wait.h conditionally.
150         * aclocal.m4: Regenerated.
152 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
154         * lto-plugin.c (add_output_files): Fix memory leak.
156 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
158         PR bootstrap/46397
159         PR bootstrap/46362
160         * configure.ac: Add AC_TYPE_INT64_T test.
161         * config.h.in: Regenerate.
162         * configure: Likewise.
163         * lto-plugin.c (debug): Use char not bool.
164         (nop): Likewise.
165         (check_1): Rename from check, and use int not bool for gate argument.
166         (check): Macro wrapper for the above to coerce gate argument into
167         boolean-valued integer in case it has pointer type.
168         (parse_table_entry): Use 0 not false.
169         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
170         into two 32-bit parts and printing as hex ints.
172 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
174         PR lto/46291
175         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
177 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
179         PR lto/46273
180         * lto-plugin.h: Delete.
181         * lto-plugin-elf.c: Likewise.
182         * lto-plugin-coff.c: Likewise.
183         * configure.ac: Don't use libelf, don't source config.gcc.
184         (LIBELFLIBS): Delete.
185         (LIBELFINC): Delete.
186         (LTO_FORMAT): Delete.
187         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
188         (config.h): Add AC_CONFIG_HEADERS directive.
189         * Makefile.am (LIBELFLIBS): Delete.
190         (LIBELFINC): Delete.
191         (LTO_FORMAT): Delete.
192         (DEFS): Import.
193         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
194         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
195         any object-format-specific source file in the link.
196         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
197         * config.h.in: Generate.
198         * configure: Regenerate.
199         * Makefile.in: Likewise.
200         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
201         (LTO_SEGMENT_NAME): New definition.
202         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
203         (LTO_SECTION_PREFIX_LEN): New definition.
204         (struct sym_aux): Struct definition moved here from lto-plugin.h.
205         (struct plugin_symtab): Likewise.
206         (struct plugin_objfile): Likewise.
207         (struct plugin_objfile): New struct def.
208         (enum symbol_style): New enum type.
209         (add_symbols): Make static.
210         (claimed_files): Likewise.
211         (num_claimed_files): Likewise.
212         (sym_style): New global.
213         (check): Make static.
214         (parse_table_entry): Likewise.  Respect sym_style when extracting
215         symbol from symtab entry.
216         (translate): Make static.
217         (resolve_conflicts): Likewise.
218         (process_symtab): New function, per-section callback version of
219         old object-format-specific handling from deleted lto-plugin-elf.c.
220         (claim_file_handler): Convert ELF-specific version from deleted
221         lto-plugin-elf.c to simple_object interface and move here.
222         (process_options): Allow new '-sym-style=' option.
223         (onload): Don't call deleted onload_format_checks hook.
225 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
227         * lto-plugin.c (dump_symtab): Correct printf argument type.
228         (finish_conflict_resolution): Initialize resolution.
230 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
232         PR bootstrap/45951
233         * configure.ac: Add AC_CANONICAL_SYSTEM.
234         * configure: Regenerated.
236 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
238         * configure.ac: Source config.gcc to determine lto_binary_reader.
239         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
240         * Makefile.am (LTO_FORMAT): Import.
241         (liblto_plugin_la_SOURCES): Add object format dependent module
242         defined by LTO_FORMAT.
243         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
244         and work around libtool warning.
245         * configure: Regenerate.
246         * Makefile.in: Likewise.
247         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
248         (struct sym_aux): Likewise.
249         (struct plugin_symtab): Likewise.
250         (struct plugin_file_info): Likewise.
251         (LTO_SECTION_PREFIX): Likewise.
252         (add_symbols):  Make non-static.
253         (claimed_files): Likewise.
254         (num_claimed_files): Likewise.
255         (check): Likewise.
256         (parse_table_entry): Likewise.
257         (translate): Likewise.
258         (resolve_conflicts): Likewise.
259         (process_symtab): Move to new lto-plugin-elf.c object format dependent
260         source file.
261         (claim_file_handler): Likewise, and make non-static.
262         (onload): Call new onload_format_checks function.
263         * lto-plugin.h: New file.
264         (LTO_SECTION_PREFIX): Move here.
265         (struct sym_aux): Likewise.
266         (struct plugin_symtab): Likewise.
267         (struct plugin_file_info): Likewise.
268         (claim_file_handler): Add new function prototype.
269         (onload_format_checks): Likewise.
270         (check): Declare extern.
271         (translate): Likewise.
272         (parse_table_entry): Likewise.
273         (resolve_conflicts): Likewise.
274         (add_symbols):  Likewise.
275         (claimed_files): Likewise.
276         (num_claimed_files): Likewise.
277         * lto-plugin-elf.c (process_symtab): Move here.
278         (claim_file_handler): Likewise, and make non-static.
279         (onload_format_checks): New function factored out from onload.
280         * lto-plugin-coff.c (claim_file_handler): New function stub.
281         (onload_format_checks): Likewise.
283 2010-08-05  Andi Kleen  <ak@linux.intel.com>
285         * lto-plugin.c: Include <hashtab.h>
286         (sym_aux): Add next_conflict field to save conflict chains.
287         (plugin_file_info): Add conflicts symtab.
288         (parse_table_entry): Initialize aux->next_conflict.
289         (process_symtab): Increment found.
290         (dump_symtab): Add.
291         (finish_conflict_resolution): Add.
292         (free_symtab): Add.
293         (write_resolution): Remove symbols loop and move into
294         dump_symtab. Call dump_symtab for main symbol and conflicts table.
295         Call free_symtab to free conflicts table.
296         (SWAP): Add.
297         (eq_sym): Add.
298         (hash_sym): Add.
299         (symbol_strength): Add.
300         (resolve_conflicts): Add.
301         (claim_file_handler): Add n variable. Check return value of
302         process_symtab. Call resolve_conflicts.
304 2010-07-27  Andi Kleen <ak@linux.intel.com>
306         * lto-plugin.c (translate): Remove debug fprintf.
308 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
310         PR bootstrap/45042
311         * lto-plugin.c (translate): Cast to unsigned long.
313 2010-07-23   Andi Kleen <ak@linux.intel.com>
315         PR lto/44992
316         * lto-plugin.c (sym_aux): Add.
317         (plugin_symtab): Remove slots. Add aux and id.
318         (parse_table_entry): Change to use aux instead of slots.
319         (LTO_SECTION_PREFIX): Add.
320         (translate): Improve buffer allocation. Change to append
321         symbols to existing out buffer.
322         (get_section): Remove.
323         (process_symtab): Add.
324         (free_2): Free symtab->aux.
325         (write_resolution): Handle aux instead of slots.
326         Print sub id to resolution file.
327         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
328         calls with call to process_symtab.
330 2010-07-22  Richard Guenther  <rguenther@suse.de>
332         * Makefile.am: New copy_lto_plugin rule to install the plugin
333         into ../gcc.
334         * Makefile.in: Regenerated.
336 2010-05-21  Richard Guenther  <rguenther@suse.de>
338         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
340 2010-05-07  Richard Guenther <rguenther@suse.de>
342         * lto-plugin.c (free_2): Do not free resolution_file.
343         (write_resolution): Check that we were passed a resolution file.
344         (all_symbols_read_handler): Adjust.
345         (cleanup_handler): Do not remove the resolution file.
346         (process_option): Handle -fresolution=.
348 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
350         PR other/43620
351         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
352         * Makefile.in: Regenerate.
354 2010-04-23  Richard Guenther  <rguenther@suse.de>
356         PR lto/41550
357         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
358         (translate): Likewise.
359         (all_symbols_read_handler): Likewise.
360         (claim_file_handler): Likewise.
361         (process_option): Likewise.
362         (add_output_files): Likewise.  Remove filename length limit.
364 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
366         * Makefile.in: Regenerate.
367         * aclocal.m4: Regenerate.
369 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
371         PR lto/43336
372         * lto-plugin.c (cleanup_handler): Delete temporary output files.
374 2010-01-11  Richard Guenther  <rguenther@suse.de>
376         PR lto/41569
377         * Makefile.am: Disable dependencies.
378         * Makefile.in: Regenerated.
380 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
382         PR lto/42520
383         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
384         if -v is passed.
386 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
388         PR bootstrap/42306
389         * configure: Regenerated.
390         * Makefile.in: Likewise.
392 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
394         PR bootstrap/42096
395         * lto-plugin.c (claim_file_handler): Print offsets in hex.
397 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
399         * lto-plugin.c (write_resolution): Assume resolution_file is set.
400         Print the symbol name.
401         (all_symbols_read_handler): Create a resolution file.
402         Pass it to gcc.
403         (cleanup_handler): Remove the resolution file.
404         (process_option): Drop the -resolution option.
406 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
408         * lto-plugin.c (temp_obj_dir_name): Remove.
409         (arguments_file_name): New.
410         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
411         (exec_lto_wrapper):  Create arguments file with make_temp_file.
412         (cleanup_handler): Don't remove the temporary directory. Remove the
413         arguments file.
414         (onload): Don't create the temporary directory.
416 2009-11-04  Richard Guenther  <rguenther@suse.de>
417             Rafael Avila de Espindola  <espindola@google.com>
419         * lto-plugin.c (plugin_file_info): Remove temp field.
420         (cleanup_handler): Don't delete temporary objects.
421         (claim_file_handler): Don't create temporary objects.
423 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
425         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
427 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
429         PR41871
430         * lto-plugin.c (claim_file_handler): Close files that we created.
432 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
434         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
435         LDPL_ERROR
437 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
439         PR lto/41652
440         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
441         * configure: Regenerate.
443 2009-10-26  Richard Guenther  <rguenther@suse.de>
445         * configure.ac: Use AM_MAINTAINER_MODE.
446         * acinclude.m4: Remove.
447         * configure: Re-generate.
448         * Makefile.in: Likewise.
449         * aclocal.m4: Likewise.
451 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
452     
453         PR40790
454         * configure: Regenerate.
455         * configure.ac: Add AC_TYPE_UINT64_T.
457 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
459         * lto-plugin.c (message): New variable.
460         (check): New function.
461         (parse_table_entry, translate, write_resolution,add_output_files,
462         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
463         assert.
464         (cleanup_handler): Use check instead of assert. Remove the arguments
465         file if it exists.
467 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
469         * lto-plugin.c (resolution_file): New.
470         (free_1): Update comment.
471         (free_2): Free resolution_file.
472         (write_resolution): Write resolution to specified file. Use the
473         syms array from the symbol table.
474         (all_symbols_read_handler): Delay call to free_1 past call to
475         write_resolution.
476         (process_option): Add a -resolution option.
478 2009-10-13  Richard Guenther  <rguenther@suse.de>
480         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
481         correct libiberty.
482         * Makefile.in: Regenerated.
484 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
486         * lto-plugin.c (add_input_library): New.
487         (all_symbols_read_handler): Use add_input_library for items that
488         start with -l.
489         (process_option): Fit in 80 columns.
490         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
492 2009-10-02  Diego Novillo  <dnovillo@google.com>
494         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
495         and -D_FILE_OFFSET_BITS=64.
496         * configure.ac: Add AC_SYS_LARGEFILE.
497         * configure: Regenerate.
498         * Makefile.in: Regenerate.
499         * lto-plugin.c: Fix copyright boilerplate.
501 2009-10-02  Diego Novillo  <dnovillo@google.com>
503         * Makefile.am (ACLOCAL_AMFLAGS): Define.
504         * aclocal.m4: Regenerate with aclocal-2.64
505         * acinclude.m4: Remove.
506         * Makefile.in: Regenerate with automake-1.11
507         * configure.ac (AC_PREREQ): Update to 2.64.
508         * configure: Regenerate.
510 2009-10-02  Diego Novillo  <dnovillo@google.com>
512         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
513         and -D_FILE_OFFSET_BITS=64.
514         * configure.ac: Add AC_SYS_LARGEFILE.
515         * configure: Regenerate.
516         * Makefile.in: Regenerate.
517         * lto-plugin.c: Fix copyright boilerplate.
519 2009-10-02  Diego Novillo  <dnovillo@google.com>
521         * Makefile.am (ACLOCAL_AMFLAGS): Define.
522         * aclocal.m4: Regenerate with aclocal-2.64
523         * acinclude.m4: Remove.
524         * Makefile.in: Regenerate with automake-1.11
525         * configure.ac (AC_PREREQ): Update to 2.64.
526         * configure: Regenerate.
528 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
530         * Makefile.am (liblto_plugin_la_SOURCES): Remove
531         $(top_srcdir)/../gcc/lto/common.c
532         * Makefile.in: Regenerate.
534 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
536         * lto-plugin.c (pass_through_items): New.
537         (num_pass_through_items): New.
538         (all_symbols_read_handler): Update to use the -pass-through option.
539         (process_option): Replace -libgcc with -pass-through.
540         
541 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
543         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
544         register_cleanup to be set.
546 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
548         * Makefile.am: Remove all reference to ltosymtab.
549         * Makefile.in: Regenerate.
550         * lto-symtab.c: Remove.
552 2009-05-21  Diego Novillo  <dnovillo@google.com>
554         * configure.ac: Remove call to AC_CHECK_GELF.
555         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
556         * acinclude.m4: Do not include ../config/libelf.m4
557         * Makefile.am (LIBELFLIBS): Define.
558         (LIBELFINC): Define.
559         (AM_CPPFLAGS): Add $(LIBELFINC).
560         (ltosymtab_LDADD): Add $(LIBELFLIBS).
561         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
562         * lto-plugin.c: Always include <gelf.h>
563         * lto-symtab.c: Likewise.
564         * configure: Regenerate.
565         * Makefile.in: Regenerate.
567 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
569         * lto-plugin.c (libgcc_filename): New.
570         (all_symbols_read_handler): Pass libgcc to the linker.
571         (all_symbols_read_handler): Parse -libgcc
573 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
575         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
576         * Makefile.in: Regenerate.
577         * lto-plugin.c (add_output_files): Argument is now a FILE.
578         (exec_lto_wrapper): Use writeargv and pex.
580 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
582         Revert:
583         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
584         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
587 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
589         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
591 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
593         * lto-plugin.c: Include libiberty.h.
594         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
595         snprintf.
597 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
599         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
600         file to lto-wrapper.
602 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
604         * lto-plugin.c (plugin_file_info): Remove fd and elf.
605         (parse_table_entry): strdup entry->name and entry->comdat_key.
606         (free_1): Free name and comdat_key. Don't close the file. Don't call
607         elf_end.
608         (claim_file_handler): Always call elf_end.
610 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
612         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
613         -D_FILE_OFFSET_BITS=64
614         * Makefile.in: Regenerate
616 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
618         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
619         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
620         * Makefile.in: Regenerate.
621         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
622         * configure: Regenerate.
623         * configure.ac: Add AC_SUBST(target_noncanonical).
625 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
627         * lto-plugin.c: Include stdbool.h.
628         (debug, nop): Declare as bool.
630 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
632         * lto-plugin.c (nop): New.
633         (use_original_files): New.
634         (all_symbols_read_handler): Call use_original_files if nop is true.
635         (process_option): Parse the -nop option.
637 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
639         * lto-plugin.c (debug): New.
640         (exec_lto_wrapper): Print argv if debug is true.
641         (process_option): Process the -debug command line option.
643 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
645         * lto-plugin.c (process_option): The argument is now a single option,
646         not a space separated list.
648 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
650         * lto-plugin.c: Include sys/types.h and sys/wait.h
651         (output_files, num_output_files, lto_wrapper_argv,
652         lto_wrapper_num_args): New.
653         (free_2): Free output_files.
654         (write_resolution): Disable.
655         (add_output_files): New.
656         (exec_lto_wrapper): New.
657         (all_symbols_read_handler): Run lto-wrapper.
658         (claim_file_handler): Free lto_file.name and call elf_end.
659         (process_option): New.
661 2008-11-26  Rafael Espindola  <espindola@google.com>
663         * lto-plugin.c (add_input_file): New.
664         (get_section): Return NULL if get_section fails.
665         (write_resolution): New.
666         (all_symbols_read_handler): Call add_input_file.
667         (claim_file_handler): Unlink the correct file.
668         (onload): Record add_input_file.
670 2008-09-23 Rafael Espindola  <espindola@google.com>
672         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
673         Update the location of common.c.
674         * Makefile.in: Regenerate.
675         * common.c: Moved to gcc/lto.
676         * common.h: Moved to gcc/lto.
677         * lto-plugin.c: Update the location of common.h.
678         * lto-symtab.c: Update the location of common.h.
680 2008-09-23 Rafael Espindola  <espindola@google.com>
682         * common.c: Include common.h.
683         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
684         sizes.
685         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
686         explicit sizes.
688 2008-09-23 Rafael Espindola  <espindola@google.com>
690         * lto-plugin.c (plugin_file_info): Add temp.
691         (cleanup_handler): Only delete temporary files.
692         (claim_file_handler): Initialize lto_file.temp.
694 2008-09-23  Rafael Espindola  <espindola@google.com>
696         * plugin-api.h: Moved to include.
698 2008-09-23 Rafael Espindola  <espindola@google.com>
700         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
701         format.
703 2008-09-22 Rafael Espindola  <espindola@google.com>
705         * plugin-api.h: Copy from binutils' cvs.
707 2008-09-22 Rafael Espindola  <espindola@google.com>
709         * lto-symtab.c (get_symbols, add_symbols): Update signature.
710         * plugin-api.h: Copy from binutils' cvs.
712 2008-09-22 Rafael Espindola  <espindola@google.com>
714         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
715         Make extern
717 2008-09-10 Rafael Espindola  <espindola@google.com>
719         * lto-plugin.c (onload): add missing break statements and asserts.
720         * lto-symtab.c (claim_file_handler): Make it static.
721         (all_symbols_read_handler): Make it static.
722         (all_file_handles): Make it static.
723         (num_file_handles): Make it static.
724         (register_claim_file): Make it static.
725         (register_object): Indent properly.
727 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
729         * Makefile.am (ltosymtab_LDADD): Add -lelf.
730         * Makefiel.in: Regenerate.
731         * lto-plugin.c: Include ar.h.
732         (claim_file_handler): Handle file->offset != 0.
733         * lto-symtab.c: Include gelf.h.
734         (all_file_handles): Change type.
735         (register_object): New.
736         (register_file): Add support for archives.
737         (resolve): Update to new type of all_file_handles.
738         (print): Update to new type of all_file_handles.
739         (free_all): Update to new type of all_file_handles.
740         (main): Update to new type of all_file_handles.
742 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
744         * lto-plugin.c (get_string_table): Remove.
745         (get_section): Use elf_strptr instead of get_string_table.
747 2008-09-08  Doug Kwan  <dougkwan@google.com>
749         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
750         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
752 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
754         * Makefile.am (ltosymtab_SOURCES): add common.c.
755         (ltosymtab_CFLAGS): New.
756         (liblto_plugin_la_SOURCES): Add common.c.
757         * Makefile.in: Regenerate.
758         * common.c: New.
759         * common.h: New.
760         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
761         (plugin_symtab): New.
762         (plugin_file_info): New.
763         (register_all_symbols_read): New.
764         (get_symbols): New.
765         (claimed_files): New.
766         (num_claimed_files): New.
767         (translate): Don't drop the slot number.
768         (free_1): New.
769         (free_2): New.
770         (all_symbols_read_handler): New.
771         (claim_file_handler): Record every claimed file.
772         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
773         LDPT_GET_SYMBOLS.
774         * lto-symtab.c: Include stdlib.h, string.h and common.h.
775         (current_file_handle): Remove.
776         (ld_plugin_all_symbols_read_handler): New.
777         (plugin_handle): New.
778         (file_handle): New.
779         (all_file_handles): New.
780         (num_file_handles): New.
781         (get_symbols): New.
782         (register_all_symbols_read): New.
783         (add_symbols): Don't print the symbols, just record them.
784         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
785         LDPT_GET_SYMBOLS.
786         (load_plugin): Use plugin_handle.
787         (register_file): Add the file handle to all_file_handles.
788         (resolve): New.
789         (print): New.
790         (unload_plugin): New.
791         (free_all): New.
792         (main): Call all_symbols_read_handler and free resources.
794 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
796         * Makefile.am (AM_CFLAGS): New.
797         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
798         (lib_LTLIBRARIES): New.
799         (liblto_plugin_la_SOURCES): New.
800         (liblto_plugin_la_LIBADD): New.
801         * Makefile.in: Regenerate.
802         * acinclude.m4: Don't include ../config/acx.m4 and
803         ../config/no-executables.m4.
804         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
805         ../libtool.m4.
806         * aclocal.m4: Regenerate.
807         * configure: Regenerate.
808         * configure.ac: Use AM_PROG_LIBTOOL.
809         * lto-plugin.c: New.
810         * lto-symtab.c: Rewrite to use the plugin.
811         * plugin-api.h: New.
813 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
815         * configure: Regenerate.
816         * configure.ac: Use AC_CHECK_GELF.
817         * lto-symtab.c: Include gelf.h.
818         (get_string_table): Use size independent API.
819         (printTable): Use lld to print 64 bit integers.
821 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
823         * lto-symtab.c (parse_table_entry): Assert entry->kind and
824         entry->visibility are valid.
826 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
827         * lto-symtab.c (table_entry): Add comdat.
828         (parse_table_entry): Read comdat.
830 2008-08-21  Rafael Espindola  <espindola@google.com>
832         * Makefile.am: New.
833         * Makefile.in: New.
834         * acinclude.m4: New.
835         * aclocal.m4: New.
836         * configure: New.
837         * configure.ac: New.
838         * lto-symtab.c: New.