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