OSDN Git Service

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