OSDN Git Service

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