OSDN Git Service

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