OSDN Git Service

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