OSDN Git Service

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