1 2009-11-04 Richard Guenther <rguenther@suse.de>
2 Rafael Avila de Espindola <espindola@google.com>
4 * lto-plugin.c (plugin_file_info): Remove temp field.
5 (cleanup_handler): Don't delete temporary objects.
6 (claim_file_handler): Don't create temporary objects.
8 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
10 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
12 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
15 * lto-plugin.c (claim_file_handler): Close files that we created.
17 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
19 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
22 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
25 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
26 * configure: Regenerate.
28 2009-10-26 Richard Guenther <rguenther@suse.de>
30 * configure.ac: Use AM_MAINTAINER_MODE.
31 * acinclude.m4: Remove.
32 * configure: Re-generate.
33 * Makefile.in: Likewise.
34 * aclocal.m4: Likewise.
36 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
39 * configure: Regenerate.
40 * configure.ac: Add AC_TYPE_UINT64_T.
42 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
44 * lto-plugin.c (message): New variable.
45 (check): New function.
46 (parse_table_entry, translate, write_resolution,add_output_files,
47 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
49 (cleanup_handler): Use check instead of assert. Remove the arguments
52 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
54 * lto-plugin.c (resolution_file): New.
55 (free_1): Update comment.
56 (free_2): Free resolution_file.
57 (write_resolution): Write resolution to specified file. Use the
58 syms array from the symbol table.
59 (all_symbols_read_handler): Delay call to free_1 past call to
61 (process_option): Add a -resolution option.
63 2009-10-13 Richard Guenther <rguenther@suse.de>
65 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
67 * Makefile.in: Regenerated.
69 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
71 * lto-plugin.c (add_input_library): New.
72 (all_symbols_read_handler): Use add_input_library for items that
74 (process_option): Fit in 80 columns.
75 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
77 2009-10-02 Diego Novillo <dnovillo@google.com>
79 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
80 and -D_FILE_OFFSET_BITS=64.
81 * configure.ac: Add AC_SYS_LARGEFILE.
82 * configure: Regenerate.
83 * Makefile.in: Regenerate.
84 * lto-plugin.c: Fix copyright boilerplate.
86 2009-10-02 Diego Novillo <dnovillo@google.com>
88 * Makefile.am (ACLOCAL_AMFLAGS): Define.
89 * aclocal.m4: Regenerate with aclocal-2.64
90 * acinclude.m4: Remove.
91 * Makefile.in: Regenerate with automake-1.11
92 * configure.ac (AC_PREREQ): Update to 2.64.
93 * configure: Regenerate.
95 2009-10-02 Diego Novillo <dnovillo@google.com>
97 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
98 and -D_FILE_OFFSET_BITS=64.
99 * configure.ac: Add AC_SYS_LARGEFILE.
100 * configure: Regenerate.
101 * Makefile.in: Regenerate.
102 * lto-plugin.c: Fix copyright boilerplate.
104 2009-10-02 Diego Novillo <dnovillo@google.com>
106 * Makefile.am (ACLOCAL_AMFLAGS): Define.
107 * aclocal.m4: Regenerate with aclocal-2.64
108 * acinclude.m4: Remove.
109 * Makefile.in: Regenerate with automake-1.11
110 * configure.ac (AC_PREREQ): Update to 2.64.
111 * configure: Regenerate.
113 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
115 * Makefile.am (liblto_plugin_la_SOURCES): Remove
116 $(top_srcdir)/../gcc/lto/common.c
117 * Makefile.in: Regenerate.
119 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
121 * lto-plugin.c (pass_through_items): New.
122 (num_pass_through_items): New.
123 (all_symbols_read_handler): Update to use the -pass-through option.
124 (process_option): Replace -libgcc with -pass-through.
126 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
128 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
129 register_cleanup to be set.
131 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
133 * Makefile.am: Remove all reference to ltosymtab.
134 * Makefile.in: Regenerate.
135 * lto-symtab.c: Remove.
137 2009-05-21 Diego Novillo <dnovillo@google.com>
139 * configure.ac: Remove call to AC_CHECK_GELF.
140 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
141 * acinclude.m4: Do not include ../config/libelf.m4
142 * Makefile.am (LIBELFLIBS): Define.
144 (AM_CPPFLAGS): Add $(LIBELFINC).
145 (ltosymtab_LDADD): Add $(LIBELFLIBS).
146 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
147 * lto-plugin.c: Always include <gelf.h>
148 * lto-symtab.c: Likewise.
149 * configure: Regenerate.
150 * Makefile.in: Regenerate.
152 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
154 * lto-plugin.c (libgcc_filename): New.
155 (all_symbols_read_handler): Pass libgcc to the linker.
156 (all_symbols_read_handler): Parse -libgcc
158 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
160 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
161 * Makefile.in: Regenerate.
162 * lto-plugin.c (add_output_files): Argument is now a FILE.
163 (exec_lto_wrapper): Use writeargv and pex.
165 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
168 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
169 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
172 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
174 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
176 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
178 * lto-plugin.c: Include libiberty.h.
179 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
182 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
184 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
187 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
189 * lto-plugin.c (plugin_file_info): Remove fd and elf.
190 (parse_table_entry): strdup entry->name and entry->comdat_key.
191 (free_1): Free name and comdat_key. Don't close the file. Don't call
193 (claim_file_handler): Always call elf_end.
195 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
197 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
198 -D_FILE_OFFSET_BITS=64
199 * Makefile.in: Regenerate
201 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
203 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
204 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
205 * Makefile.in: Regenerate.
206 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
207 * configure: Regenerate.
208 * configure.ac: Add AC_SUBST(target_noncanonical).
210 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
212 * lto-plugin.c: Include stdbool.h.
213 (debug, nop): Declare as bool.
215 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
217 * lto-plugin.c (nop): New.
218 (use_original_files): New.
219 (all_symbols_read_handler): Call use_original_files if nop is true.
220 (process_option): Parse the -nop option.
222 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
224 * lto-plugin.c (debug): New.
225 (exec_lto_wrapper): Print argv if debug is true.
226 (process_option): Process the -debug command line option.
228 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
230 * lto-plugin.c (process_option): The argument is now a single option,
231 not a space separated list.
233 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
235 * lto-plugin.c: Include sys/types.h and sys/wait.h
236 (output_files, num_output_files, lto_wrapper_argv,
237 lto_wrapper_num_args): New.
238 (free_2): Free output_files.
239 (write_resolution): Disable.
240 (add_output_files): New.
241 (exec_lto_wrapper): New.
242 (all_symbols_read_handler): Run lto-wrapper.
243 (claim_file_handler): Free lto_file.name and call elf_end.
244 (process_option): New.
246 2008-11-26 Rafael Espindola <espindola@google.com>
248 * lto-plugin.c (add_input_file): New.
249 (get_section): Return NULL if get_section fails.
250 (write_resolution): New.
251 (all_symbols_read_handler): Call add_input_file.
252 (claim_file_handler): Unlink the correct file.
253 (onload): Record add_input_file.
255 2008-09-23 Rafael Espindola <espindola@google.com>
257 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
258 Update the location of common.c.
259 * Makefile.in: Regenerate.
260 * common.c: Moved to gcc/lto.
261 * common.h: Moved to gcc/lto.
262 * lto-plugin.c: Update the location of common.h.
263 * lto-symtab.c: Update the location of common.h.
265 2008-09-23 Rafael Espindola <espindola@google.com>
267 * common.c: Include common.h.
268 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
270 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
273 2008-09-23 Rafael Espindola <espindola@google.com>
275 * lto-plugin.c (plugin_file_info): Add temp.
276 (cleanup_handler): Only delete temporary files.
277 (claim_file_handler): Initialize lto_file.temp.
279 2008-09-23 Rafael Espindola <espindola@google.com>
281 * plugin-api.h: Moved to include.
283 2008-09-23 Rafael Espindola <espindola@google.com>
285 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
288 2008-09-22 Rafael Espindola <espindola@google.com>
290 * plugin-api.h: Copy from binutils' cvs.
292 2008-09-22 Rafael Espindola <espindola@google.com>
294 * lto-symtab.c (get_symbols, add_symbols): Update signature.
295 * plugin-api.h: Copy from binutils' cvs.
297 2008-09-22 Rafael Espindola <espindola@google.com>
299 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
302 2008-09-10 Rafael Espindola <espindola@google.com>
304 * lto-plugin.c (onload): add missing break statements and asserts.
305 * lto-symtab.c (claim_file_handler): Make it static.
306 (all_symbols_read_handler): Make it static.
307 (all_file_handles): Make it static.
308 (num_file_handles): Make it static.
309 (register_claim_file): Make it static.
310 (register_object): Indent properly.
312 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
314 * Makefile.am (ltosymtab_LDADD): Add -lelf.
315 * Makefiel.in: Regenerate.
316 * lto-plugin.c: Include ar.h.
317 (claim_file_handler): Handle file->offset != 0.
318 * lto-symtab.c: Include gelf.h.
319 (all_file_handles): Change type.
320 (register_object): New.
321 (register_file): Add support for archives.
322 (resolve): Update to new type of all_file_handles.
323 (print): Update to new type of all_file_handles.
324 (free_all): Update to new type of all_file_handles.
325 (main): Update to new type of all_file_handles.
327 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
329 * lto-plugin.c (get_string_table): Remove.
330 (get_section): Use elf_strptr instead of get_string_table.
332 2008-09-08 Doug Kwan <dougkwan@google.com>
334 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
335 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
337 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
339 * Makefile.am (ltosymtab_SOURCES): add common.c.
340 (ltosymtab_CFLAGS): New.
341 (liblto_plugin_la_SOURCES): Add common.c.
342 * Makefile.in: Regenerate.
345 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
346 (plugin_symtab): New.
347 (plugin_file_info): New.
348 (register_all_symbols_read): New.
350 (claimed_files): New.
351 (num_claimed_files): New.
352 (translate): Don't drop the slot number.
355 (all_symbols_read_handler): New.
356 (claim_file_handler): Record every claimed file.
357 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
359 * lto-symtab.c: Include stdlib.h, string.h and common.h.
360 (current_file_handle): Remove.
361 (ld_plugin_all_symbols_read_handler): New.
362 (plugin_handle): New.
364 (all_file_handles): New.
365 (num_file_handles): New.
367 (register_all_symbols_read): New.
368 (add_symbols): Don't print the symbols, just record them.
369 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
371 (load_plugin): Use plugin_handle.
372 (register_file): Add the file handle to all_file_handles.
375 (unload_plugin): New.
377 (main): Call all_symbols_read_handler and free resources.
379 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
381 * Makefile.am (AM_CFLAGS): New.
382 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
383 (lib_LTLIBRARIES): New.
384 (liblto_plugin_la_SOURCES): New.
385 (liblto_plugin_la_LIBADD): New.
386 * Makefile.in: Regenerate.
387 * acinclude.m4: Don't include ../config/acx.m4 and
388 ../config/no-executables.m4.
389 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
391 * aclocal.m4: Regenerate.
392 * configure: Regenerate.
393 * configure.ac: Use AM_PROG_LIBTOOL.
395 * lto-symtab.c: Rewrite to use the plugin.
398 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
400 * configure: Regenerate.
401 * configure.ac: Use AC_CHECK_GELF.
402 * lto-symtab.c: Include gelf.h.
403 (get_string_table): Use size independent API.
404 (printTable): Use lld to print 64 bit integers.
406 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
408 * lto-symtab.c (parse_table_entry): Assert entry->kind and
409 entry->visibility are valid.
411 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
412 * lto-symtab.c (table_entry): Add comdat.
413 (parse_table_entry): Read comdat.
415 2008-08-21 Rafael Espindola <espindola@google.com>