1 2009-10-13 Richard Guenther <rguenther@suse.de>
3 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
5 * Makefile.in: Regenerated.
7 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
9 * lto-plugin.c (add_input_library): New.
10 (all_symbols_read_handler): Use add_input_library for items that
12 (process_option): Fit in 80 columns.
13 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
15 2009-10-02 Diego Novillo <dnovillo@google.com>
17 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
18 and -D_FILE_OFFSET_BITS=64.
19 * configure.ac: Add AC_SYS_LARGEFILE.
20 * configure: Regenerate.
21 * Makefile.in: Regenerate.
22 * lto-plugin.c: Fix copyright boilerplate.
24 2009-10-02 Diego Novillo <dnovillo@google.com>
26 * Makefile.am (ACLOCAL_AMFLAGS): Define.
27 * aclocal.m4: Regenerate with aclocal-2.64
28 * acinclude.m4: Remove.
29 * Makefile.in: Regenerate with automake-1.11
30 * configure.ac (AC_PREREQ): Update to 2.64.
31 * configure: Regenerate.
33 2009-10-02 Diego Novillo <dnovillo@google.com>
35 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
36 and -D_FILE_OFFSET_BITS=64.
37 * configure.ac: Add AC_SYS_LARGEFILE.
38 * configure: Regenerate.
39 * Makefile.in: Regenerate.
40 * lto-plugin.c: Fix copyright boilerplate.
42 2009-10-02 Diego Novillo <dnovillo@google.com>
44 * Makefile.am (ACLOCAL_AMFLAGS): Define.
45 * aclocal.m4: Regenerate with aclocal-2.64
46 * acinclude.m4: Remove.
47 * Makefile.in: Regenerate with automake-1.11
48 * configure.ac (AC_PREREQ): Update to 2.64.
49 * configure: Regenerate.
51 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
53 * Makefile.am (liblto_plugin_la_SOURCES): Remove
54 $(top_srcdir)/../gcc/lto/common.c
55 * Makefile.in: Regenerate.
57 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
59 * lto-plugin.c (pass_through_items): New.
60 (num_pass_through_items): New.
61 (all_symbols_read_handler): Update to use the -pass-through option.
62 (process_option): Replace -libgcc with -pass-through.
64 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
66 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
67 register_cleanup to be set.
69 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
71 * Makefile.am: Remove all reference to ltosymtab.
72 * Makefile.in: Regenerate.
73 * lto-symtab.c: Remove.
75 2009-05-21 Diego Novillo <dnovillo@google.com>
77 * configure.ac: Remove call to AC_CHECK_GELF.
78 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
79 * acinclude.m4: Do not include ../config/libelf.m4
80 * Makefile.am (LIBELFLIBS): Define.
82 (AM_CPPFLAGS): Add $(LIBELFINC).
83 (ltosymtab_LDADD): Add $(LIBELFLIBS).
84 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
85 * lto-plugin.c: Always include <gelf.h>
86 * lto-symtab.c: Likewise.
87 * configure: Regenerate.
88 * Makefile.in: Regenerate.
90 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
92 * lto-plugin.c (libgcc_filename): New.
93 (all_symbols_read_handler): Pass libgcc to the linker.
94 (all_symbols_read_handler): Parse -libgcc
96 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
98 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
99 * Makefile.in: Regenerate.
100 * lto-plugin.c (add_output_files): Argument is now a FILE.
101 (exec_lto_wrapper): Use writeargv and pex.
103 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
106 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
107 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
110 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
112 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
114 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
116 * lto-plugin.c: Include libiberty.h.
117 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
120 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
122 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
125 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
127 * lto-plugin.c (plugin_file_info): Remove fd and elf.
128 (parse_table_entry): strdup entry->name and entry->comdat_key.
129 (free_1): Free name and comdat_key. Don't close the file. Don't call
131 (claim_file_handler): Always call elf_end.
133 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
135 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
136 -D_FILE_OFFSET_BITS=64
137 * Makefile.in: Regenerate
139 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
141 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
142 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
143 * Makefile.in: Regenerate.
144 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
145 * configure: Regenerate.
146 * configure.ac: Add AC_SUBST(target_noncanonical).
148 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
150 * lto-plugin.c: Include stdbool.h.
151 (debug, nop): Declare as bool.
153 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
155 * lto-plugin.c (nop): New.
156 (use_original_files): New.
157 (all_symbols_read_handler): Call use_original_files if nop is true.
158 (process_option): Parse the -nop option.
160 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
162 * lto-plugin.c (debug): New.
163 (exec_lto_wrapper): Print argv if debug is true.
164 (process_option): Process the -debug command line option.
166 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
168 * lto-plugin.c (process_option): The argument is now a single option,
169 not a space separated list.
171 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
173 * lto-plugin.c: Include sys/types.h and sys/wait.h
174 (output_files, num_output_files, lto_wrapper_argv,
175 lto_wrapper_num_args): New.
176 (free_2): Free output_files.
177 (write_resolution): Disable.
178 (add_output_files): New.
179 (exec_lto_wrapper): New.
180 (all_symbols_read_handler): Run lto-wrapper.
181 (claim_file_handler): Free lto_file.name and call elf_end.
182 (process_option): New.
184 2008-11-26 Rafael Espindola <espindola@google.com>
186 * lto-plugin.c (add_input_file): New.
187 (get_section): Return NULL if get_section fails.
188 (write_resolution): New.
189 (all_symbols_read_handler): Call add_input_file.
190 (claim_file_handler): Unlink the correct file.
191 (onload): Record add_input_file.
193 2008-09-23 Rafael Espindola <espindola@google.com>
195 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
196 Update the location of common.c.
197 * Makefile.in: Regenerate.
198 * common.c: Moved to gcc/lto.
199 * common.h: Moved to gcc/lto.
200 * lto-plugin.c: Update the location of common.h.
201 * lto-symtab.c: Update the location of common.h.
203 2008-09-23 Rafael Espindola <espindola@google.com>
205 * common.c: Include common.h.
206 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
208 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
211 2008-09-23 Rafael Espindola <espindola@google.com>
213 * lto-plugin.c (plugin_file_info): Add temp.
214 (cleanup_handler): Only delete temporary files.
215 (claim_file_handler): Initialize lto_file.temp.
217 2008-09-23 Rafael Espindola <espindola@google.com>
219 * plugin-api.h: Moved to include.
221 2008-09-23 Rafael Espindola <espindola@google.com>
223 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
226 2008-09-22 Rafael Espindola <espindola@google.com>
228 * plugin-api.h: Copy from binutils' cvs.
230 2008-09-22 Rafael Espindola <espindola@google.com>
232 * lto-symtab.c (get_symbols, add_symbols): Update signature.
233 * plugin-api.h: Copy from binutils' cvs.
235 2008-09-22 Rafael Espindola <espindola@google.com>
237 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
240 2008-09-10 Rafael Espindola <espindola@google.com>
242 * lto-plugin.c (onload): add missing break statements and asserts.
243 * lto-symtab.c (claim_file_handler): Make it static.
244 (all_symbols_read_handler): Make it static.
245 (all_file_handles): Make it static.
246 (num_file_handles): Make it static.
247 (register_claim_file): Make it static.
248 (register_object): Indent properly.
250 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
252 * Makefile.am (ltosymtab_LDADD): Add -lelf.
253 * Makefiel.in: Regenerate.
254 * lto-plugin.c: Include ar.h.
255 (claim_file_handler): Handle file->offset != 0.
256 * lto-symtab.c: Include gelf.h.
257 (all_file_handles): Change type.
258 (register_object): New.
259 (register_file): Add support for archives.
260 (resolve): Update to new type of all_file_handles.
261 (print): Update to new type of all_file_handles.
262 (free_all): Update to new type of all_file_handles.
263 (main): Update to new type of all_file_handles.
265 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
267 * lto-plugin.c (get_string_table): Remove.
268 (get_section): Use elf_strptr instead of get_string_table.
270 2008-09-08 Doug Kwan <dougkwan@google.com>
272 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
273 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
275 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
277 * Makefile.am (ltosymtab_SOURCES): add common.c.
278 (ltosymtab_CFLAGS): New.
279 (liblto_plugin_la_SOURCES): Add common.c.
280 * Makefile.in: Regenerate.
283 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
284 (plugin_symtab): New.
285 (plugin_file_info): New.
286 (register_all_symbols_read): New.
288 (claimed_files): New.
289 (num_claimed_files): New.
290 (translate): Don't drop the slot number.
293 (all_symbols_read_handler): New.
294 (claim_file_handler): Record every claimed file.
295 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
297 * lto-symtab.c: Include stdlib.h, string.h and common.h.
298 (current_file_handle): Remove.
299 (ld_plugin_all_symbols_read_handler): New.
300 (plugin_handle): New.
302 (all_file_handles): New.
303 (num_file_handles): New.
305 (register_all_symbols_read): New.
306 (add_symbols): Don't print the symbols, just record them.
307 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
309 (load_plugin): Use plugin_handle.
310 (register_file): Add the file handle to all_file_handles.
313 (unload_plugin): New.
315 (main): Call all_symbols_read_handler and free resources.
317 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
319 * Makefile.am (AM_CFLAGS): New.
320 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
321 (lib_LTLIBRARIES): New.
322 (liblto_plugin_la_SOURCES): New.
323 (liblto_plugin_la_LIBADD): New.
324 * Makefile.in: Regenerate.
325 * acinclude.m4: Don't include ../config/acx.m4 and
326 ../config/no-executables.m4.
327 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
329 * aclocal.m4: Regenerate.
330 * configure: Regenerate.
331 * configure.ac: Use AM_PROG_LIBTOOL.
333 * lto-symtab.c: Rewrite to use the plugin.
336 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
338 * configure: Regenerate.
339 * configure.ac: Use AC_CHECK_GELF.
340 * lto-symtab.c: Include gelf.h.
341 (get_string_table): Use size independent API.
342 (printTable): Use lld to print 64 bit integers.
344 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
346 * lto-symtab.c (parse_table_entry): Assert entry->kind and
347 entry->visibility are valid.
349 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
350 * lto-symtab.c (table_entry): Add comdat.
351 (parse_table_entry): Read comdat.
353 2008-08-21 Rafael Espindola <espindola@google.com>