1 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
3 * lto-plugin.c (write_resolution): Assume resolution_file is set.
5 (all_symbols_read_handler): Create a resolution file.
7 (cleanup_handler): Remove the resolution file.
8 (process_option): Drop the -resolution option.
10 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
12 * lto-plugin.c (temp_obj_dir_name): Remove.
13 (arguments_file_name): New.
14 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
15 (exec_lto_wrapper): Create arguments file with make_temp_file.
16 (cleanup_handler): Don't remove the temporary directory. Remove the
18 (onload): Don't create the temporary directory.
20 2009-11-04 Richard Guenther <rguenther@suse.de>
21 Rafael Avila de Espindola <espindola@google.com>
23 * lto-plugin.c (plugin_file_info): Remove temp field.
24 (cleanup_handler): Don't delete temporary objects.
25 (claim_file_handler): Don't create temporary objects.
27 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
29 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
31 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
34 * lto-plugin.c (claim_file_handler): Close files that we created.
36 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
38 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
41 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
44 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
45 * configure: Regenerate.
47 2009-10-26 Richard Guenther <rguenther@suse.de>
49 * configure.ac: Use AM_MAINTAINER_MODE.
50 * acinclude.m4: Remove.
51 * configure: Re-generate.
52 * Makefile.in: Likewise.
53 * aclocal.m4: Likewise.
55 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
58 * configure: Regenerate.
59 * configure.ac: Add AC_TYPE_UINT64_T.
61 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
63 * lto-plugin.c (message): New variable.
64 (check): New function.
65 (parse_table_entry, translate, write_resolution,add_output_files,
66 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
68 (cleanup_handler): Use check instead of assert. Remove the arguments
71 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
73 * lto-plugin.c (resolution_file): New.
74 (free_1): Update comment.
75 (free_2): Free resolution_file.
76 (write_resolution): Write resolution to specified file. Use the
77 syms array from the symbol table.
78 (all_symbols_read_handler): Delay call to free_1 past call to
80 (process_option): Add a -resolution option.
82 2009-10-13 Richard Guenther <rguenther@suse.de>
84 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
86 * Makefile.in: Regenerated.
88 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
90 * lto-plugin.c (add_input_library): New.
91 (all_symbols_read_handler): Use add_input_library for items that
93 (process_option): Fit in 80 columns.
94 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
96 2009-10-02 Diego Novillo <dnovillo@google.com>
98 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
99 and -D_FILE_OFFSET_BITS=64.
100 * configure.ac: Add AC_SYS_LARGEFILE.
101 * configure: Regenerate.
102 * Makefile.in: Regenerate.
103 * lto-plugin.c: Fix copyright boilerplate.
105 2009-10-02 Diego Novillo <dnovillo@google.com>
107 * Makefile.am (ACLOCAL_AMFLAGS): Define.
108 * aclocal.m4: Regenerate with aclocal-2.64
109 * acinclude.m4: Remove.
110 * Makefile.in: Regenerate with automake-1.11
111 * configure.ac (AC_PREREQ): Update to 2.64.
112 * configure: Regenerate.
114 2009-10-02 Diego Novillo <dnovillo@google.com>
116 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
117 and -D_FILE_OFFSET_BITS=64.
118 * configure.ac: Add AC_SYS_LARGEFILE.
119 * configure: Regenerate.
120 * Makefile.in: Regenerate.
121 * lto-plugin.c: Fix copyright boilerplate.
123 2009-10-02 Diego Novillo <dnovillo@google.com>
125 * Makefile.am (ACLOCAL_AMFLAGS): Define.
126 * aclocal.m4: Regenerate with aclocal-2.64
127 * acinclude.m4: Remove.
128 * Makefile.in: Regenerate with automake-1.11
129 * configure.ac (AC_PREREQ): Update to 2.64.
130 * configure: Regenerate.
132 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
134 * Makefile.am (liblto_plugin_la_SOURCES): Remove
135 $(top_srcdir)/../gcc/lto/common.c
136 * Makefile.in: Regenerate.
138 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
140 * lto-plugin.c (pass_through_items): New.
141 (num_pass_through_items): New.
142 (all_symbols_read_handler): Update to use the -pass-through option.
143 (process_option): Replace -libgcc with -pass-through.
145 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
147 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
148 register_cleanup to be set.
150 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
152 * Makefile.am: Remove all reference to ltosymtab.
153 * Makefile.in: Regenerate.
154 * lto-symtab.c: Remove.
156 2009-05-21 Diego Novillo <dnovillo@google.com>
158 * configure.ac: Remove call to AC_CHECK_GELF.
159 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
160 * acinclude.m4: Do not include ../config/libelf.m4
161 * Makefile.am (LIBELFLIBS): Define.
163 (AM_CPPFLAGS): Add $(LIBELFINC).
164 (ltosymtab_LDADD): Add $(LIBELFLIBS).
165 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
166 * lto-plugin.c: Always include <gelf.h>
167 * lto-symtab.c: Likewise.
168 * configure: Regenerate.
169 * Makefile.in: Regenerate.
171 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
173 * lto-plugin.c (libgcc_filename): New.
174 (all_symbols_read_handler): Pass libgcc to the linker.
175 (all_symbols_read_handler): Parse -libgcc
177 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
179 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
180 * Makefile.in: Regenerate.
181 * lto-plugin.c (add_output_files): Argument is now a FILE.
182 (exec_lto_wrapper): Use writeargv and pex.
184 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
187 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
188 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
191 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
193 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
195 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
197 * lto-plugin.c: Include libiberty.h.
198 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
201 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
203 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
206 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
208 * lto-plugin.c (plugin_file_info): Remove fd and elf.
209 (parse_table_entry): strdup entry->name and entry->comdat_key.
210 (free_1): Free name and comdat_key. Don't close the file. Don't call
212 (claim_file_handler): Always call elf_end.
214 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
216 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
217 -D_FILE_OFFSET_BITS=64
218 * Makefile.in: Regenerate
220 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
222 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
223 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
224 * Makefile.in: Regenerate.
225 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
226 * configure: Regenerate.
227 * configure.ac: Add AC_SUBST(target_noncanonical).
229 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
231 * lto-plugin.c: Include stdbool.h.
232 (debug, nop): Declare as bool.
234 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
236 * lto-plugin.c (nop): New.
237 (use_original_files): New.
238 (all_symbols_read_handler): Call use_original_files if nop is true.
239 (process_option): Parse the -nop option.
241 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
243 * lto-plugin.c (debug): New.
244 (exec_lto_wrapper): Print argv if debug is true.
245 (process_option): Process the -debug command line option.
247 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
249 * lto-plugin.c (process_option): The argument is now a single option,
250 not a space separated list.
252 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
254 * lto-plugin.c: Include sys/types.h and sys/wait.h
255 (output_files, num_output_files, lto_wrapper_argv,
256 lto_wrapper_num_args): New.
257 (free_2): Free output_files.
258 (write_resolution): Disable.
259 (add_output_files): New.
260 (exec_lto_wrapper): New.
261 (all_symbols_read_handler): Run lto-wrapper.
262 (claim_file_handler): Free lto_file.name and call elf_end.
263 (process_option): New.
265 2008-11-26 Rafael Espindola <espindola@google.com>
267 * lto-plugin.c (add_input_file): New.
268 (get_section): Return NULL if get_section fails.
269 (write_resolution): New.
270 (all_symbols_read_handler): Call add_input_file.
271 (claim_file_handler): Unlink the correct file.
272 (onload): Record add_input_file.
274 2008-09-23 Rafael Espindola <espindola@google.com>
276 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
277 Update the location of common.c.
278 * Makefile.in: Regenerate.
279 * common.c: Moved to gcc/lto.
280 * common.h: Moved to gcc/lto.
281 * lto-plugin.c: Update the location of common.h.
282 * lto-symtab.c: Update the location of common.h.
284 2008-09-23 Rafael Espindola <espindola@google.com>
286 * common.c: Include common.h.
287 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
289 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
292 2008-09-23 Rafael Espindola <espindola@google.com>
294 * lto-plugin.c (plugin_file_info): Add temp.
295 (cleanup_handler): Only delete temporary files.
296 (claim_file_handler): Initialize lto_file.temp.
298 2008-09-23 Rafael Espindola <espindola@google.com>
300 * plugin-api.h: Moved to include.
302 2008-09-23 Rafael Espindola <espindola@google.com>
304 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
307 2008-09-22 Rafael Espindola <espindola@google.com>
309 * plugin-api.h: Copy from binutils' cvs.
311 2008-09-22 Rafael Espindola <espindola@google.com>
313 * lto-symtab.c (get_symbols, add_symbols): Update signature.
314 * plugin-api.h: Copy from binutils' cvs.
316 2008-09-22 Rafael Espindola <espindola@google.com>
318 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
321 2008-09-10 Rafael Espindola <espindola@google.com>
323 * lto-plugin.c (onload): add missing break statements and asserts.
324 * lto-symtab.c (claim_file_handler): Make it static.
325 (all_symbols_read_handler): Make it static.
326 (all_file_handles): Make it static.
327 (num_file_handles): Make it static.
328 (register_claim_file): Make it static.
329 (register_object): Indent properly.
331 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
333 * Makefile.am (ltosymtab_LDADD): Add -lelf.
334 * Makefiel.in: Regenerate.
335 * lto-plugin.c: Include ar.h.
336 (claim_file_handler): Handle file->offset != 0.
337 * lto-symtab.c: Include gelf.h.
338 (all_file_handles): Change type.
339 (register_object): New.
340 (register_file): Add support for archives.
341 (resolve): Update to new type of all_file_handles.
342 (print): Update to new type of all_file_handles.
343 (free_all): Update to new type of all_file_handles.
344 (main): Update to new type of all_file_handles.
346 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
348 * lto-plugin.c (get_string_table): Remove.
349 (get_section): Use elf_strptr instead of get_string_table.
351 2008-09-08 Doug Kwan <dougkwan@google.com>
353 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
354 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
356 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
358 * Makefile.am (ltosymtab_SOURCES): add common.c.
359 (ltosymtab_CFLAGS): New.
360 (liblto_plugin_la_SOURCES): Add common.c.
361 * Makefile.in: Regenerate.
364 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
365 (plugin_symtab): New.
366 (plugin_file_info): New.
367 (register_all_symbols_read): New.
369 (claimed_files): New.
370 (num_claimed_files): New.
371 (translate): Don't drop the slot number.
374 (all_symbols_read_handler): New.
375 (claim_file_handler): Record every claimed file.
376 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
378 * lto-symtab.c: Include stdlib.h, string.h and common.h.
379 (current_file_handle): Remove.
380 (ld_plugin_all_symbols_read_handler): New.
381 (plugin_handle): New.
383 (all_file_handles): New.
384 (num_file_handles): New.
386 (register_all_symbols_read): New.
387 (add_symbols): Don't print the symbols, just record them.
388 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
390 (load_plugin): Use plugin_handle.
391 (register_file): Add the file handle to all_file_handles.
394 (unload_plugin): New.
396 (main): Call all_symbols_read_handler and free resources.
398 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
400 * Makefile.am (AM_CFLAGS): New.
401 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
402 (lib_LTLIBRARIES): New.
403 (liblto_plugin_la_SOURCES): New.
404 (liblto_plugin_la_LIBADD): New.
405 * Makefile.in: Regenerate.
406 * acinclude.m4: Don't include ../config/acx.m4 and
407 ../config/no-executables.m4.
408 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
410 * aclocal.m4: Regenerate.
411 * configure: Regenerate.
412 * configure.ac: Use AM_PROG_LIBTOOL.
414 * lto-symtab.c: Rewrite to use the plugin.
417 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
419 * configure: Regenerate.
420 * configure.ac: Use AC_CHECK_GELF.
421 * lto-symtab.c: Include gelf.h.
422 (get_string_table): Use size independent API.
423 (printTable): Use lld to print 64 bit integers.
425 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
427 * lto-symtab.c (parse_table_entry): Assert entry->kind and
428 entry->visibility are valid.
430 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
431 * lto-symtab.c (table_entry): Add comdat.
432 (parse_table_entry): Read comdat.
434 2008-08-21 Rafael Espindola <espindola@google.com>