2011-02-15 Tobias Burnus <burnus@net-b.de>
[official-gcc.git] / lto-plugin / ChangeLog
blobe4a19cd812439850419b8cfad8dfe9e780e03f7f
1 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3         * Makefile.in: Regenerate.
4         * aclocal.m4: Regenerate.
5         * configure: Regenerate.
7 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9         * Makefile.am (all-local): Rename from 'all'.
10         * Makefile.in: Regenerate.
12 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
14         PR lto/47225
15         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
16         (liblto_plugin_la_LDFLAGS): Add -module.
17         (copy_lto_plugin): Renamed to...
18         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
19         of static modules.
20         * Makefile.in: Rebuild.
22 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
24         PR lto/47225
25         * Makefile.am (Wc): New helper for encoding -Wc,.
26         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
27         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
28         * Makefile.in: Regenerated.
30 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
32         Revert:
34         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
36         PR lto/47225
37         * Makefile.am (Wl): New helper for encoding -Wl,.
38         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
39         * Makefile.in: Regenerated.
41 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
43         PR lto/47225
44         * Makefile.am (Wl): New helper for encoding -Wl,.
45         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
46         * Makefile.in: Regenerated.
48 2011-01-25  Ian Lance Taylor  <iant@google.com>
50         * lto-plugin.c (gold_version): New static variable.
51         (all_symbols_read_handler): Don't check pass_through_items if
52         using gold 1.11 or later.
53         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
55 2011-01-12  Richard Guenther  <rguenther@suse.de>
57         PR lto/47264
58         * lto-plugin.c (parse_table_entry): Use memcpy to access
59         unaligned fields.
61 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
63         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
64         * Makefile.in: Regenerate.
66 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
68         Revert last change.
70 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
72         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
73         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
74         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
75         * Makefile.in: Regenerate.
77 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
79         PR middle-end/46674
80         PR lto/43157
81         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
82         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
83         * configure: Regenerate.
84         * config.h.in: Likewise.
86 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
88         PR target/40125
89         PR lto/46695
90         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
91         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
92         override -bindir setting.
93         * aclocal.m4: Regenerate.
94         * configure: Regenerate.
95         * Makefile.in: Regenerate.
97 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
99         * config.h.in: Regenerated.
100         * configure: Regenerated.
101         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
102         * lto-plugin.c (WIFEXITED): Define default.
103         (WEXITSTATUS): Likeiwse.
105 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
107         * config.h.in: Regenerated.
108         * configure: Regenerated.
109         * Makefile.in: Regenerated.
110         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
111         * lto-plugin.c:  Include sys/wait.h conditionally.
112         * aclocal.m4: Regenerated.
114 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
116         * lto-plugin.c (add_output_files): Fix memory leak.
118 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
120         PR bootstrap/46397
121         PR bootstrap/46362
122         * configure.ac: Add AC_TYPE_INT64_T test.
123         * config.h.in: Regenerate.
124         * configure: Likewise.
125         * lto-plugin.c (debug): Use char not bool.
126         (nop): Likewise.
127         (check_1): Rename from check, and use int not bool for gate argument.
128         (check): Macro wrapper for the above to coerce gate argument into
129         boolean-valued integer in case it has pointer type.
130         (parse_table_entry): Use 0 not false.
131         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
132         into two 32-bit parts and printing as hex ints.
134 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
136         PR lto/46291
137         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
139 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
141         PR lto/46273
142         * lto-plugin.h: Delete.
143         * lto-plugin-elf.c: Likewise.
144         * lto-plugin-coff.c: Likewise.
145         * configure.ac: Don't use libelf, don't source config.gcc.
146         (LIBELFLIBS): Delete.
147         (LIBELFINC): Delete.
148         (LTO_FORMAT): Delete.
149         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
150         (config.h): Add AC_CONFIG_HEADERS directive.
151         * Makefile.am (LIBELFLIBS): Delete.
152         (LIBELFINC): Delete.
153         (LTO_FORMAT): Delete.
154         (DEFS): Import.
155         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
156         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
157         any object-format-specific source file in the link.
158         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
159         * config.h.in: Generate.
160         * configure: Regenerate.
161         * Makefile.in: Likewise.
162         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
163         (LTO_SEGMENT_NAME): New definition.
164         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
165         (LTO_SECTION_PREFIX_LEN): New definition.
166         (struct sym_aux): Struct definition moved here from lto-plugin.h.
167         (struct plugin_symtab): Likewise.
168         (struct plugin_objfile): Likewise.
169         (struct plugin_objfile): New struct def.
170         (enum symbol_style): New enum type.
171         (add_symbols): Make static.
172         (claimed_files): Likewise.
173         (num_claimed_files): Likewise.
174         (sym_style): New global.
175         (check): Make static.
176         (parse_table_entry): Likewise.  Respect sym_style when extracting
177         symbol from symtab entry.
178         (translate): Make static.
179         (resolve_conflicts): Likewise.
180         (process_symtab): New function, per-section callback version of
181         old object-format-specific handling from deleted lto-plugin-elf.c.
182         (claim_file_handler): Convert ELF-specific version from deleted
183         lto-plugin-elf.c to simple_object interface and move here.
184         (process_options): Allow new '-sym-style=' option.
185         (onload): Don't call deleted onload_format_checks hook.
187 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
189         * lto-plugin.c (dump_symtab): Correct printf argument type.
190         (finish_conflict_resolution): Initialize resolution.
192 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
194         PR bootstrap/45951
195         * configure.ac: Add AC_CANONICAL_SYSTEM.
196         * configure: Regenerated.
198 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
200         * configure.ac: Source config.gcc to determine lto_binary_reader.
201         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
202         * Makefile.am (LTO_FORMAT): Import.
203         (liblto_plugin_la_SOURCES): Add object format dependent module
204         defined by LTO_FORMAT.
205         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
206         and work around libtool warning.
207         * configure: Regenerate.
208         * Makefile.in: Likewise.
209         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
210         (struct sym_aux): Likewise.
211         (struct plugin_symtab): Likewise.
212         (struct plugin_file_info): Likewise.
213         (LTO_SECTION_PREFIX): Likewise.
214         (add_symbols):  Make non-static.
215         (claimed_files): Likewise.
216         (num_claimed_files): Likewise.
217         (check): Likewise.
218         (parse_table_entry): Likewise.
219         (translate): Likewise.
220         (resolve_conflicts): Likewise.
221         (process_symtab): Move to new lto-plugin-elf.c object format dependent
222         source file.
223         (claim_file_handler): Likewise, and make non-static.
224         (onload): Call new onload_format_checks function.
225         * lto-plugin.h: New file.
226         (LTO_SECTION_PREFIX): Move here.
227         (struct sym_aux): Likewise.
228         (struct plugin_symtab): Likewise.
229         (struct plugin_file_info): Likewise.
230         (claim_file_handler): Add new function prototype.
231         (onload_format_checks): Likewise.
232         (check): Declare extern.
233         (translate): Likewise.
234         (parse_table_entry): Likewise.
235         (resolve_conflicts): Likewise.
236         (add_symbols):  Likewise.
237         (claimed_files): Likewise.
238         (num_claimed_files): Likewise.
239         * lto-plugin-elf.c (process_symtab): Move here.
240         (claim_file_handler): Likewise, and make non-static.
241         (onload_format_checks): New function factored out from onload.
242         * lto-plugin-coff.c (claim_file_handler): New function stub.
243         (onload_format_checks): Likewise.
245 2010-08-05  Andi Kleen  <ak@linux.intel.com>
247         * lto-plugin.c: Include <hashtab.h>
248         (sym_aux): Add next_conflict field to save conflict chains.
249         (plugin_file_info): Add conflicts symtab.
250         (parse_table_entry): Initialize aux->next_conflict.
251         (process_symtab): Increment found.
252         (dump_symtab): Add.
253         (finish_conflict_resolution): Add.
254         (free_symtab): Add.
255         (write_resolution): Remove symbols loop and move into
256         dump_symtab. Call dump_symtab for main symbol and conflicts table.
257         Call free_symtab to free conflicts table.
258         (SWAP): Add.
259         (eq_sym): Add.
260         (hash_sym): Add.
261         (symbol_strength): Add.
262         (resolve_conflicts): Add.
263         (claim_file_handler): Add n variable. Check return value of
264         process_symtab. Call resolve_conflicts.
266 2010-07-27  Andi Kleen <ak@linux.intel.com>
268         * lto-plugin.c (translate): Remove debug fprintf.
270 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
272         PR bootstrap/45042
273         * lto-plugin.c (translate): Cast to unsigned long.
275 2010-07-23   Andi Kleen <ak@linux.intel.com>
277         PR lto/44992
278         * lto-plugin.c (sym_aux): Add.
279         (plugin_symtab): Remove slots. Add aux and id.
280         (parse_table_entry): Change to use aux instead of slots.
281         (LTO_SECTION_PREFIX): Add.
282         (translate): Improve buffer allocation. Change to append
283         symbols to existing out buffer.
284         (get_section): Remove.
285         (process_symtab): Add.
286         (free_2): Free symtab->aux.
287         (write_resolution): Handle aux instead of slots.
288         Print sub id to resolution file.
289         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
290         calls with call to process_symtab.
292 2010-07-22  Richard Guenther  <rguenther@suse.de>
294         * Makefile.am: New copy_lto_plugin rule to install the plugin
295         into ../gcc.
296         * Makefile.in: Regenerated.
298 2010-05-21  Richard Guenther  <rguenther@suse.de>
300         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
302 2010-05-07  Richard Guenther <rguenther@suse.de>
304         * lto-plugin.c (free_2): Do not free resolution_file.
305         (write_resolution): Check that we were passed a resolution file.
306         (all_symbols_read_handler): Adjust.
307         (cleanup_handler): Do not remove the resolution file.
308         (process_option): Handle -fresolution=.
310 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
312         PR other/43620
313         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
314         * Makefile.in: Regenerate.
316 2010-04-23  Richard Guenther  <rguenther@suse.de>
318         PR lto/41550
319         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
320         (translate): Likewise.
321         (all_symbols_read_handler): Likewise.
322         (claim_file_handler): Likewise.
323         (process_option): Likewise.
324         (add_output_files): Likewise.  Remove filename length limit.
326 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
328         * Makefile.in: Regenerate.
329         * aclocal.m4: Regenerate.
331 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
333         PR lto/43336
334         * lto-plugin.c (cleanup_handler): Delete temporary output files.
336 2010-01-11  Richard Guenther  <rguenther@suse.de>
338         PR lto/41569
339         * Makefile.am: Disable dependencies.
340         * Makefile.in: Regenerated.
342 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
344         PR lto/42520
345         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
346         if -v is passed.
348 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
350         PR bootstrap/42306
351         * configure: Regenerated.
352         * Makefile.in: Likewise.
354 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
356         PR bootstrap/42096
357         * lto-plugin.c (claim_file_handler): Print offsets in hex.
359 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
361         * lto-plugin.c (write_resolution): Assume resolution_file is set.
362         Print the symbol name.
363         (all_symbols_read_handler): Create a resolution file.
364         Pass it to gcc.
365         (cleanup_handler): Remove the resolution file.
366         (process_option): Drop the -resolution option.
368 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
370         * lto-plugin.c (temp_obj_dir_name): Remove.
371         (arguments_file_name): New.
372         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
373         (exec_lto_wrapper):  Create arguments file with make_temp_file.
374         (cleanup_handler): Don't remove the temporary directory. Remove the
375         arguments file.
376         (onload): Don't create the temporary directory.
378 2009-11-04  Richard Guenther  <rguenther@suse.de>
379             Rafael Avila de Espindola  <espindola@google.com>
381         * lto-plugin.c (plugin_file_info): Remove temp field.
382         (cleanup_handler): Don't delete temporary objects.
383         (claim_file_handler): Don't create temporary objects.
385 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
387         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
389 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
391         PR41871
392         * lto-plugin.c (claim_file_handler): Close files that we created.
394 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
396         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
397         LDPL_ERROR
399 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
401         PR lto/41652
402         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
403         * configure: Regenerate.
405 2009-10-26  Richard Guenther  <rguenther@suse.de>
407         * configure.ac: Use AM_MAINTAINER_MODE.
408         * acinclude.m4: Remove.
409         * configure: Re-generate.
410         * Makefile.in: Likewise.
411         * aclocal.m4: Likewise.
413 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
414     
415         PR40790
416         * configure: Regenerate.
417         * configure.ac: Add AC_TYPE_UINT64_T.
419 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
421         * lto-plugin.c (message): New variable.
422         (check): New function.
423         (parse_table_entry, translate, write_resolution,add_output_files,
424         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
425         assert.
426         (cleanup_handler): Use check instead of assert. Remove the arguments
427         file if it exists.
429 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
431         * lto-plugin.c (resolution_file): New.
432         (free_1): Update comment.
433         (free_2): Free resolution_file.
434         (write_resolution): Write resolution to specified file. Use the
435         syms array from the symbol table.
436         (all_symbols_read_handler): Delay call to free_1 past call to
437         write_resolution.
438         (process_option): Add a -resolution option.
440 2009-10-13  Richard Guenther  <rguenther@suse.de>
442         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
443         correct libiberty.
444         * Makefile.in: Regenerated.
446 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
448         * lto-plugin.c (add_input_library): New.
449         (all_symbols_read_handler): Use add_input_library for items that
450         start with -l.
451         (process_option): Fit in 80 columns.
452         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
454 2009-10-02  Diego Novillo  <dnovillo@google.com>
456         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
457         and -D_FILE_OFFSET_BITS=64.
458         * configure.ac: Add AC_SYS_LARGEFILE.
459         * configure: Regenerate.
460         * Makefile.in: Regenerate.
461         * lto-plugin.c: Fix copyright boilerplate.
463 2009-10-02  Diego Novillo  <dnovillo@google.com>
465         * Makefile.am (ACLOCAL_AMFLAGS): Define.
466         * aclocal.m4: Regenerate with aclocal-2.64
467         * acinclude.m4: Remove.
468         * Makefile.in: Regenerate with automake-1.11
469         * configure.ac (AC_PREREQ): Update to 2.64.
470         * configure: Regenerate.
472 2009-10-02  Diego Novillo  <dnovillo@google.com>
474         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
475         and -D_FILE_OFFSET_BITS=64.
476         * configure.ac: Add AC_SYS_LARGEFILE.
477         * configure: Regenerate.
478         * Makefile.in: Regenerate.
479         * lto-plugin.c: Fix copyright boilerplate.
481 2009-10-02  Diego Novillo  <dnovillo@google.com>
483         * Makefile.am (ACLOCAL_AMFLAGS): Define.
484         * aclocal.m4: Regenerate with aclocal-2.64
485         * acinclude.m4: Remove.
486         * Makefile.in: Regenerate with automake-1.11
487         * configure.ac (AC_PREREQ): Update to 2.64.
488         * configure: Regenerate.
490 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
492         * Makefile.am (liblto_plugin_la_SOURCES): Remove
493         $(top_srcdir)/../gcc/lto/common.c
494         * Makefile.in: Regenerate.
496 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
498         * lto-plugin.c (pass_through_items): New.
499         (num_pass_through_items): New.
500         (all_symbols_read_handler): Update to use the -pass-through option.
501         (process_option): Replace -libgcc with -pass-through.
502         
503 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
505         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
506         register_cleanup to be set.
508 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
510         * Makefile.am: Remove all reference to ltosymtab.
511         * Makefile.in: Regenerate.
512         * lto-symtab.c: Remove.
514 2009-05-21  Diego Novillo  <dnovillo@google.com>
516         * configure.ac: Remove call to AC_CHECK_GELF.
517         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
518         * acinclude.m4: Do not include ../config/libelf.m4
519         * Makefile.am (LIBELFLIBS): Define.
520         (LIBELFINC): Define.
521         (AM_CPPFLAGS): Add $(LIBELFINC).
522         (ltosymtab_LDADD): Add $(LIBELFLIBS).
523         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
524         * lto-plugin.c: Always include <gelf.h>
525         * lto-symtab.c: Likewise.
526         * configure: Regenerate.
527         * Makefile.in: Regenerate.
529 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
531         * lto-plugin.c (libgcc_filename): New.
532         (all_symbols_read_handler): Pass libgcc to the linker.
533         (all_symbols_read_handler): Parse -libgcc
535 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
537         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
538         * Makefile.in: Regenerate.
539         * lto-plugin.c (add_output_files): Argument is now a FILE.
540         (exec_lto_wrapper): Use writeargv and pex.
542 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
544         Revert:
545         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
546         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
549 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
551         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
553 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
555         * lto-plugin.c: Include libiberty.h.
556         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
557         snprintf.
559 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
561         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
562         file to lto-wrapper.
564 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
566         * lto-plugin.c (plugin_file_info): Remove fd and elf.
567         (parse_table_entry): strdup entry->name and entry->comdat_key.
568         (free_1): Free name and comdat_key. Don't close the file. Don't call
569         elf_end.
570         (claim_file_handler): Always call elf_end.
572 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
574         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
575         -D_FILE_OFFSET_BITS=64
576         * Makefile.in: Regenerate
578 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
580         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
581         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
582         * Makefile.in: Regenerate.
583         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
584         * configure: Regenerate.
585         * configure.ac: Add AC_SUBST(target_noncanonical).
587 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
589         * lto-plugin.c: Include stdbool.h.
590         (debug, nop): Declare as bool.
592 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
594         * lto-plugin.c (nop): New.
595         (use_original_files): New.
596         (all_symbols_read_handler): Call use_original_files if nop is true.
597         (process_option): Parse the -nop option.
599 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
601         * lto-plugin.c (debug): New.
602         (exec_lto_wrapper): Print argv if debug is true.
603         (process_option): Process the -debug command line option.
605 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
607         * lto-plugin.c (process_option): The argument is now a single option,
608         not a space separated list.
610 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
612         * lto-plugin.c: Include sys/types.h and sys/wait.h
613         (output_files, num_output_files, lto_wrapper_argv,
614         lto_wrapper_num_args): New.
615         (free_2): Free output_files.
616         (write_resolution): Disable.
617         (add_output_files): New.
618         (exec_lto_wrapper): New.
619         (all_symbols_read_handler): Run lto-wrapper.
620         (claim_file_handler): Free lto_file.name and call elf_end.
621         (process_option): New.
623 2008-11-26  Rafael Espindola  <espindola@google.com>
625         * lto-plugin.c (add_input_file): New.
626         (get_section): Return NULL if get_section fails.
627         (write_resolution): New.
628         (all_symbols_read_handler): Call add_input_file.
629         (claim_file_handler): Unlink the correct file.
630         (onload): Record add_input_file.
632 2008-09-23 Rafael Espindola  <espindola@google.com>
634         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
635         Update the location of common.c.
636         * Makefile.in: Regenerate.
637         * common.c: Moved to gcc/lto.
638         * common.h: Moved to gcc/lto.
639         * lto-plugin.c: Update the location of common.h.
640         * lto-symtab.c: Update the location of common.h.
642 2008-09-23 Rafael Espindola  <espindola@google.com>
644         * common.c: Include common.h.
645         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
646         sizes.
647         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
648         explicit sizes.
650 2008-09-23 Rafael Espindola  <espindola@google.com>
652         * lto-plugin.c (plugin_file_info): Add temp.
653         (cleanup_handler): Only delete temporary files.
654         (claim_file_handler): Initialize lto_file.temp.
656 2008-09-23  Rafael Espindola  <espindola@google.com>
658         * plugin-api.h: Moved to include.
660 2008-09-23 Rafael Espindola  <espindola@google.com>
662         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
663         format.
665 2008-09-22 Rafael Espindola  <espindola@google.com>
667         * plugin-api.h: Copy from binutils' cvs.
669 2008-09-22 Rafael Espindola  <espindola@google.com>
671         * lto-symtab.c (get_symbols, add_symbols): Update signature.
672         * plugin-api.h: Copy from binutils' cvs.
674 2008-09-22 Rafael Espindola  <espindola@google.com>
676         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
677         Make extern
679 2008-09-10 Rafael Espindola  <espindola@google.com>
681         * lto-plugin.c (onload): add missing break statements and asserts.
682         * lto-symtab.c (claim_file_handler): Make it static.
683         (all_symbols_read_handler): Make it static.
684         (all_file_handles): Make it static.
685         (num_file_handles): Make it static.
686         (register_claim_file): Make it static.
687         (register_object): Indent properly.
689 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
691         * Makefile.am (ltosymtab_LDADD): Add -lelf.
692         * Makefiel.in: Regenerate.
693         * lto-plugin.c: Include ar.h.
694         (claim_file_handler): Handle file->offset != 0.
695         * lto-symtab.c: Include gelf.h.
696         (all_file_handles): Change type.
697         (register_object): New.
698         (register_file): Add support for archives.
699         (resolve): Update to new type of all_file_handles.
700         (print): Update to new type of all_file_handles.
701         (free_all): Update to new type of all_file_handles.
702         (main): Update to new type of all_file_handles.
704 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
706         * lto-plugin.c (get_string_table): Remove.
707         (get_section): Use elf_strptr instead of get_string_table.
709 2008-09-08  Doug Kwan  <dougkwan@google.com>
711         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
712         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
714 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
716         * Makefile.am (ltosymtab_SOURCES): add common.c.
717         (ltosymtab_CFLAGS): New.
718         (liblto_plugin_la_SOURCES): Add common.c.
719         * Makefile.in: Regenerate.
720         * common.c: New.
721         * common.h: New.
722         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
723         (plugin_symtab): New.
724         (plugin_file_info): New.
725         (register_all_symbols_read): New.
726         (get_symbols): New.
727         (claimed_files): New.
728         (num_claimed_files): New.
729         (translate): Don't drop the slot number.
730         (free_1): New.
731         (free_2): New.
732         (all_symbols_read_handler): New.
733         (claim_file_handler): Record every claimed file.
734         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
735         LDPT_GET_SYMBOLS.
736         * lto-symtab.c: Include stdlib.h, string.h and common.h.
737         (current_file_handle): Remove.
738         (ld_plugin_all_symbols_read_handler): New.
739         (plugin_handle): New.
740         (file_handle): New.
741         (all_file_handles): New.
742         (num_file_handles): New.
743         (get_symbols): New.
744         (register_all_symbols_read): New.
745         (add_symbols): Don't print the symbols, just record them.
746         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
747         LDPT_GET_SYMBOLS.
748         (load_plugin): Use plugin_handle.
749         (register_file): Add the file handle to all_file_handles.
750         (resolve): New.
751         (print): New.
752         (unload_plugin): New.
753         (free_all): New.
754         (main): Call all_symbols_read_handler and free resources.
756 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
758         * Makefile.am (AM_CFLAGS): New.
759         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
760         (lib_LTLIBRARIES): New.
761         (liblto_plugin_la_SOURCES): New.
762         (liblto_plugin_la_LIBADD): New.
763         * Makefile.in: Regenerate.
764         * acinclude.m4: Don't include ../config/acx.m4 and
765         ../config/no-executables.m4.
766         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
767         ../libtool.m4.
768         * aclocal.m4: Regenerate.
769         * configure: Regenerate.
770         * configure.ac: Use AM_PROG_LIBTOOL.
771         * lto-plugin.c: New.
772         * lto-symtab.c: Rewrite to use the plugin.
773         * plugin-api.h: New.
775 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
777         * configure: Regenerate.
778         * configure.ac: Use AC_CHECK_GELF.
779         * lto-symtab.c: Include gelf.h.
780         (get_string_table): Use size independent API.
781         (printTable): Use lld to print 64 bit integers.
783 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
785         * lto-symtab.c (parse_table_entry): Assert entry->kind and
786         entry->visibility are valid.
788 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
789         * lto-symtab.c (table_entry): Add comdat.
790         (parse_table_entry): Read comdat.
792 2008-08-21  Rafael Espindola  <espindola@google.com>
794         * Makefile.am: New.
795         * Makefile.in: New.
796         * acinclude.m4: New.
797         * aclocal.m4: New.
798         * configure: New.
799         * configure.ac: New.
800         * lto-symtab.c: New.