OSDN Git Service

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