OSDN Git Service

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