OSDN Git Service

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