OSDN Git Service

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