OSDN Git Service

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