OSDN Git Service

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