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