OSDN Git Service

2010-02-24 Andrew Haley <aph@redhat.com>
[pf3gnuchains/gcc-fork.git] / lto-plugin / ChangeLog
1 2010-01-11  Richard Guenther  <rguenther@suse.de>
2
3         PR lto/41569
4         * Makefile.am: Disable dependencies.
5         * Makefile.in: Regenerated.
6
7 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
8
9         PR lto/42520
10         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
11         if -v is passed.
12
13 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
14
15         PR bootstrap/42306
16         * configure: Regenerated.
17         * Makefile.in: Likewise.
18
19 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
20
21         PR bootstrap/42096
22         * lto-plugin.c (claim_file_handler): Print offsets in hex.
23
24 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
25
26         * lto-plugin.c (write_resolution): Assume resolution_file is set.
27         Print the symbol name.
28         (all_symbols_read_handler): Create a resolution file.
29         Pass it to gcc.
30         (cleanup_handler): Remove the resolution file.
31         (process_option): Drop the -resolution option.
32
33 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
34
35         * lto-plugin.c (temp_obj_dir_name): Remove.
36         (arguments_file_name): New.
37         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
38         (exec_lto_wrapper):  Create arguments file with make_temp_file.
39         (cleanup_handler): Don't remove the temporary directory. Remove the
40         arguments file.
41         (onload): Don't create the temporary directory.
42
43 2009-11-04  Richard Guenther  <rguenther@suse.de>
44             Rafael Avila de Espindola  <espindola@google.com>
45
46         * lto-plugin.c (plugin_file_info): Remove temp field.
47         (cleanup_handler): Don't delete temporary objects.
48         (claim_file_handler): Don't create temporary objects.
49
50 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
51
52         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
53
54 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
55
56         PR41871
57         * lto-plugin.c (claim_file_handler): Close files that we created.
58
59 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
60
61         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
62         LDPL_ERROR
63
64 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
65
66         PR lto/41652
67         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
68         * configure: Regenerate.
69
70 2009-10-26  Richard Guenther  <rguenther@suse.de>
71
72         * configure.ac: Use AM_MAINTAINER_MODE.
73         * acinclude.m4: Remove.
74         * configure: Re-generate.
75         * Makefile.in: Likewise.
76         * aclocal.m4: Likewise.
77
78 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
79     
80         PR40790
81         * configure: Regenerate.
82         * configure.ac: Add AC_TYPE_UINT64_T.
83
84 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
85
86         * lto-plugin.c (message): New variable.
87         (check): New function.
88         (parse_table_entry, translate, write_resolution,add_output_files,
89         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
90         assert.
91         (cleanup_handler): Use check instead of assert. Remove the arguments
92         file if it exists.
93
94 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
95
96         * lto-plugin.c (resolution_file): New.
97         (free_1): Update comment.
98         (free_2): Free resolution_file.
99         (write_resolution): Write resolution to specified file. Use the
100         syms array from the symbol table.
101         (all_symbols_read_handler): Delay call to free_1 past call to
102         write_resolution.
103         (process_option): Add a -resolution option.
104
105 2009-10-13  Richard Guenther  <rguenther@suse.de>
106
107         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
108         correct libiberty.
109         * Makefile.in: Regenerated.
110
111 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
112
113         * lto-plugin.c (add_input_library): New.
114         (all_symbols_read_handler): Use add_input_library for items that
115         start with -l.
116         (process_option): Fit in 80 columns.
117         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
118
119 2009-10-02  Diego Novillo  <dnovillo@google.com>
120
121         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
122         and -D_FILE_OFFSET_BITS=64.
123         * configure.ac: Add AC_SYS_LARGEFILE.
124         * configure: Regenerate.
125         * Makefile.in: Regenerate.
126         * lto-plugin.c: Fix copyright boilerplate.
127
128 2009-10-02  Diego Novillo  <dnovillo@google.com>
129
130         * Makefile.am (ACLOCAL_AMFLAGS): Define.
131         * aclocal.m4: Regenerate with aclocal-2.64
132         * acinclude.m4: Remove.
133         * Makefile.in: Regenerate with automake-1.11
134         * configure.ac (AC_PREREQ): Update to 2.64.
135         * configure: Regenerate.
136
137 2009-10-02  Diego Novillo  <dnovillo@google.com>
138
139         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
140         and -D_FILE_OFFSET_BITS=64.
141         * configure.ac: Add AC_SYS_LARGEFILE.
142         * configure: Regenerate.
143         * Makefile.in: Regenerate.
144         * lto-plugin.c: Fix copyright boilerplate.
145
146 2009-10-02  Diego Novillo  <dnovillo@google.com>
147
148         * Makefile.am (ACLOCAL_AMFLAGS): Define.
149         * aclocal.m4: Regenerate with aclocal-2.64
150         * acinclude.m4: Remove.
151         * Makefile.in: Regenerate with automake-1.11
152         * configure.ac (AC_PREREQ): Update to 2.64.
153         * configure: Regenerate.
154
155 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
156
157         * Makefile.am (liblto_plugin_la_SOURCES): Remove
158         $(top_srcdir)/../gcc/lto/common.c
159         * Makefile.in: Regenerate.
160
161 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
162
163         * lto-plugin.c (pass_through_items): New.
164         (num_pass_through_items): New.
165         (all_symbols_read_handler): Update to use the -pass-through option.
166         (process_option): Replace -libgcc with -pass-through.
167         
168 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
169
170         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
171         register_cleanup to be set.
172
173 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
174
175         * Makefile.am: Remove all reference to ltosymtab.
176         * Makefile.in: Regenerate.
177         * lto-symtab.c: Remove.
178
179 2009-05-21  Diego Novillo  <dnovillo@google.com>
180
181         * configure.ac: Remove call to AC_CHECK_GELF.
182         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
183         * acinclude.m4: Do not include ../config/libelf.m4
184         * Makefile.am (LIBELFLIBS): Define.
185         (LIBELFINC): Define.
186         (AM_CPPFLAGS): Add $(LIBELFINC).
187         (ltosymtab_LDADD): Add $(LIBELFLIBS).
188         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
189         * lto-plugin.c: Always include <gelf.h>
190         * lto-symtab.c: Likewise.
191         * configure: Regenerate.
192         * Makefile.in: Regenerate.
193
194 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
195
196         * lto-plugin.c (libgcc_filename): New.
197         (all_symbols_read_handler): Pass libgcc to the linker.
198         (all_symbols_read_handler): Parse -libgcc
199
200 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
201
202         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
203         * Makefile.in: Regenerate.
204         * lto-plugin.c (add_output_files): Argument is now a FILE.
205         (exec_lto_wrapper): Use writeargv and pex.
206
207 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
208
209         Revert:
210         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
211         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
212
213
214 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
215
216         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
217
218 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
219
220         * lto-plugin.c: Include libiberty.h.
221         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
222         snprintf.
223
224 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
225
226         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
227         file to lto-wrapper.
228
229 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
230
231         * lto-plugin.c (plugin_file_info): Remove fd and elf.
232         (parse_table_entry): strdup entry->name and entry->comdat_key.
233         (free_1): Free name and comdat_key. Don't close the file. Don't call
234         elf_end.
235         (claim_file_handler): Always call elf_end.
236
237 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
238
239         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
240         -D_FILE_OFFSET_BITS=64
241         * Makefile.in: Regenerate
242
243 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
244
245         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
246         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
247         * Makefile.in: Regenerate.
248         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
249         * configure: Regenerate.
250         * configure.ac: Add AC_SUBST(target_noncanonical).
251
252 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
253
254         * lto-plugin.c: Include stdbool.h.
255         (debug, nop): Declare as bool.
256
257 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
258
259         * lto-plugin.c (nop): New.
260         (use_original_files): New.
261         (all_symbols_read_handler): Call use_original_files if nop is true.
262         (process_option): Parse the -nop option.
263
264 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
265
266         * lto-plugin.c (debug): New.
267         (exec_lto_wrapper): Print argv if debug is true.
268         (process_option): Process the -debug command line option.
269
270 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
271
272         * lto-plugin.c (process_option): The argument is now a single option,
273         not a space separated list.
274
275 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
276
277         * lto-plugin.c: Include sys/types.h and sys/wait.h
278         (output_files, num_output_files, lto_wrapper_argv,
279         lto_wrapper_num_args): New.
280         (free_2): Free output_files.
281         (write_resolution): Disable.
282         (add_output_files): New.
283         (exec_lto_wrapper): New.
284         (all_symbols_read_handler): Run lto-wrapper.
285         (claim_file_handler): Free lto_file.name and call elf_end.
286         (process_option): New.
287
288 2008-11-26  Rafael Espindola  <espindola@google.com>
289
290         * lto-plugin.c (add_input_file): New.
291         (get_section): Return NULL if get_section fails.
292         (write_resolution): New.
293         (all_symbols_read_handler): Call add_input_file.
294         (claim_file_handler): Unlink the correct file.
295         (onload): Record add_input_file.
296
297 2008-09-23 Rafael Espindola  <espindola@google.com>
298
299         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
300         Update the location of common.c.
301         * Makefile.in: Regenerate.
302         * common.c: Moved to gcc/lto.
303         * common.h: Moved to gcc/lto.
304         * lto-plugin.c: Update the location of common.h.
305         * lto-symtab.c: Update the location of common.h.
306
307 2008-09-23 Rafael Espindola  <espindola@google.com>
308
309         * common.c: Include common.h.
310         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
311         sizes.
312         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
313         explicit sizes.
314
315 2008-09-23 Rafael Espindola  <espindola@google.com>
316
317         * lto-plugin.c (plugin_file_info): Add temp.
318         (cleanup_handler): Only delete temporary files.
319         (claim_file_handler): Initialize lto_file.temp.
320
321 2008-09-23  Rafael Espindola  <espindola@google.com>
322
323         * plugin-api.h: Moved to include.
324
325 2008-09-23 Rafael Espindola  <espindola@google.com>
326
327         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
328         format.
329
330 2008-09-22 Rafael Espindola  <espindola@google.com>
331
332         * plugin-api.h: Copy from binutils' cvs.
333
334 2008-09-22 Rafael Espindola  <espindola@google.com>
335
336         * lto-symtab.c (get_symbols, add_symbols): Update signature.
337         * plugin-api.h: Copy from binutils' cvs.
338
339 2008-09-22 Rafael Espindola  <espindola@google.com>
340
341         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
342         Make extern
343
344 2008-09-10 Rafael Espindola  <espindola@google.com>
345
346         * lto-plugin.c (onload): add missing break statements and asserts.
347         * lto-symtab.c (claim_file_handler): Make it static.
348         (all_symbols_read_handler): Make it static.
349         (all_file_handles): Make it static.
350         (num_file_handles): Make it static.
351         (register_claim_file): Make it static.
352         (register_object): Indent properly.
353
354 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
355
356         * Makefile.am (ltosymtab_LDADD): Add -lelf.
357         * Makefiel.in: Regenerate.
358         * lto-plugin.c: Include ar.h.
359         (claim_file_handler): Handle file->offset != 0.
360         * lto-symtab.c: Include gelf.h.
361         (all_file_handles): Change type.
362         (register_object): New.
363         (register_file): Add support for archives.
364         (resolve): Update to new type of all_file_handles.
365         (print): Update to new type of all_file_handles.
366         (free_all): Update to new type of all_file_handles.
367         (main): Update to new type of all_file_handles.
368
369 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
370
371         * lto-plugin.c (get_string_table): Remove.
372         (get_section): Use elf_strptr instead of get_string_table.
373
374 2008-09-08  Doug Kwan  <dougkwan@google.com>
375
376         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
377         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
378
379 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
380
381         * Makefile.am (ltosymtab_SOURCES): add common.c.
382         (ltosymtab_CFLAGS): New.
383         (liblto_plugin_la_SOURCES): Add common.c.
384         * Makefile.in: Regenerate.
385         * common.c: New.
386         * common.h: New.
387         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
388         (plugin_symtab): New.
389         (plugin_file_info): New.
390         (register_all_symbols_read): New.
391         (get_symbols): New.
392         (claimed_files): New.
393         (num_claimed_files): New.
394         (translate): Don't drop the slot number.
395         (free_1): New.
396         (free_2): New.
397         (all_symbols_read_handler): New.
398         (claim_file_handler): Record every claimed file.
399         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
400         LDPT_GET_SYMBOLS.
401         * lto-symtab.c: Include stdlib.h, string.h and common.h.
402         (current_file_handle): Remove.
403         (ld_plugin_all_symbols_read_handler): New.
404         (plugin_handle): New.
405         (file_handle): New.
406         (all_file_handles): New.
407         (num_file_handles): New.
408         (get_symbols): New.
409         (register_all_symbols_read): New.
410         (add_symbols): Don't print the symbols, just record them.
411         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
412         LDPT_GET_SYMBOLS.
413         (load_plugin): Use plugin_handle.
414         (register_file): Add the file handle to all_file_handles.
415         (resolve): New.
416         (print): New.
417         (unload_plugin): New.
418         (free_all): New.
419         (main): Call all_symbols_read_handler and free resources.
420
421 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
422
423         * Makefile.am (AM_CFLAGS): New.
424         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
425         (lib_LTLIBRARIES): New.
426         (liblto_plugin_la_SOURCES): New.
427         (liblto_plugin_la_LIBADD): New.
428         * Makefile.in: Regenerate.
429         * acinclude.m4: Don't include ../config/acx.m4 and
430         ../config/no-executables.m4.
431         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
432         ../libtool.m4.
433         * aclocal.m4: Regenerate.
434         * configure: Regenerate.
435         * configure.ac: Use AM_PROG_LIBTOOL.
436         * lto-plugin.c: New.
437         * lto-symtab.c: Rewrite to use the plugin.
438         * plugin-api.h: New.
439
440 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
441
442         * configure: Regenerate.
443         * configure.ac: Use AC_CHECK_GELF.
444         * lto-symtab.c: Include gelf.h.
445         (get_string_table): Use size independent API.
446         (printTable): Use lld to print 64 bit integers.
447
448 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
449
450         * lto-symtab.c (parse_table_entry): Assert entry->kind and
451         entry->visibility are valid.
452
453 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
454         * lto-symtab.c (table_entry): Add comdat.
455         (parse_table_entry): Read comdat.
456
457 2008-08-21  Rafael Espindola  <espindola@google.com>
458
459         * Makefile.am: New.
460         * Makefile.in: New.
461         * acinclude.m4: New.
462         * aclocal.m4: New.
463         * configure: New.
464         * configure.ac: New.
465         * lto-symtab.c: New.