OSDN Git Service

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