OSDN Git Service

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