OSDN Git Service

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