OSDN Git Service

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