OSDN Git Service

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