OSDN Git Service

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