1 2010-05-07 Richard Guenther <rguenther@suse.de>
3 * lto-plugin.c (free_2): Do not free resolution_file.
4 (write_resolution): Check that we were passed a resolution file.
5 (all_symbols_read_handler): Adjust.
6 (cleanup_handler): Do not remove the resolution file.
7 (process_option): Handle -fresolution=.
9 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
13 * Makefile.in: Regenerate.
15 2010-04-23 Richard Guenther <rguenther@suse.de>
18 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
19 (translate): Likewise.
20 (all_symbols_read_handler): Likewise.
21 (claim_file_handler): Likewise.
22 (process_option): Likewise.
23 (add_output_files): Likewise. Remove filename length limit.
25 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27 * Makefile.in: Regenerate.
28 * aclocal.m4: Regenerate.
30 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
33 * lto-plugin.c (cleanup_handler): Delete temporary output files.
35 2010-01-11 Richard Guenther <rguenther@suse.de>
38 * Makefile.am: Disable dependencies.
39 * Makefile.in: Regenerated.
41 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
44 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
47 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
50 * configure: Regenerated.
51 * Makefile.in: Likewise.
53 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
56 * lto-plugin.c (claim_file_handler): Print offsets in hex.
58 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
60 * lto-plugin.c (write_resolution): Assume resolution_file is set.
61 Print the symbol name.
62 (all_symbols_read_handler): Create a resolution file.
64 (cleanup_handler): Remove the resolution file.
65 (process_option): Drop the -resolution option.
67 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
69 * lto-plugin.c (temp_obj_dir_name): Remove.
70 (arguments_file_name): New.
71 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
72 (exec_lto_wrapper): Create arguments file with make_temp_file.
73 (cleanup_handler): Don't remove the temporary directory. Remove the
75 (onload): Don't create the temporary directory.
77 2009-11-04 Richard Guenther <rguenther@suse.de>
78 Rafael Avila de Espindola <espindola@google.com>
80 * lto-plugin.c (plugin_file_info): Remove temp field.
81 (cleanup_handler): Don't delete temporary objects.
82 (claim_file_handler): Don't create temporary objects.
84 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
86 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
88 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
91 * lto-plugin.c (claim_file_handler): Close files that we created.
93 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
95 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
98 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
101 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
102 * configure: Regenerate.
104 2009-10-26 Richard Guenther <rguenther@suse.de>
106 * configure.ac: Use AM_MAINTAINER_MODE.
107 * acinclude.m4: Remove.
108 * configure: Re-generate.
109 * Makefile.in: Likewise.
110 * aclocal.m4: Likewise.
112 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
115 * configure: Regenerate.
116 * configure.ac: Add AC_TYPE_UINT64_T.
118 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
120 * lto-plugin.c (message): New variable.
121 (check): New function.
122 (parse_table_entry, translate, write_resolution,add_output_files,
123 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
125 (cleanup_handler): Use check instead of assert. Remove the arguments
128 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
130 * lto-plugin.c (resolution_file): New.
131 (free_1): Update comment.
132 (free_2): Free resolution_file.
133 (write_resolution): Write resolution to specified file. Use the
134 syms array from the symbol table.
135 (all_symbols_read_handler): Delay call to free_1 past call to
137 (process_option): Add a -resolution option.
139 2009-10-13 Richard Guenther <rguenther@suse.de>
141 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
143 * Makefile.in: Regenerated.
145 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
147 * lto-plugin.c (add_input_library): New.
148 (all_symbols_read_handler): Use add_input_library for items that
150 (process_option): Fit in 80 columns.
151 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
153 2009-10-02 Diego Novillo <dnovillo@google.com>
155 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
156 and -D_FILE_OFFSET_BITS=64.
157 * configure.ac: Add AC_SYS_LARGEFILE.
158 * configure: Regenerate.
159 * Makefile.in: Regenerate.
160 * lto-plugin.c: Fix copyright boilerplate.
162 2009-10-02 Diego Novillo <dnovillo@google.com>
164 * Makefile.am (ACLOCAL_AMFLAGS): Define.
165 * aclocal.m4: Regenerate with aclocal-2.64
166 * acinclude.m4: Remove.
167 * Makefile.in: Regenerate with automake-1.11
168 * configure.ac (AC_PREREQ): Update to 2.64.
169 * configure: Regenerate.
171 2009-10-02 Diego Novillo <dnovillo@google.com>
173 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
174 and -D_FILE_OFFSET_BITS=64.
175 * configure.ac: Add AC_SYS_LARGEFILE.
176 * configure: Regenerate.
177 * Makefile.in: Regenerate.
178 * lto-plugin.c: Fix copyright boilerplate.
180 2009-10-02 Diego Novillo <dnovillo@google.com>
182 * Makefile.am (ACLOCAL_AMFLAGS): Define.
183 * aclocal.m4: Regenerate with aclocal-2.64
184 * acinclude.m4: Remove.
185 * Makefile.in: Regenerate with automake-1.11
186 * configure.ac (AC_PREREQ): Update to 2.64.
187 * configure: Regenerate.
189 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
191 * Makefile.am (liblto_plugin_la_SOURCES): Remove
192 $(top_srcdir)/../gcc/lto/common.c
193 * Makefile.in: Regenerate.
195 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
197 * lto-plugin.c (pass_through_items): New.
198 (num_pass_through_items): New.
199 (all_symbols_read_handler): Update to use the -pass-through option.
200 (process_option): Replace -libgcc with -pass-through.
202 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
204 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
205 register_cleanup to be set.
207 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
209 * Makefile.am: Remove all reference to ltosymtab.
210 * Makefile.in: Regenerate.
211 * lto-symtab.c: Remove.
213 2009-05-21 Diego Novillo <dnovillo@google.com>
215 * configure.ac: Remove call to AC_CHECK_GELF.
216 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
217 * acinclude.m4: Do not include ../config/libelf.m4
218 * Makefile.am (LIBELFLIBS): Define.
220 (AM_CPPFLAGS): Add $(LIBELFINC).
221 (ltosymtab_LDADD): Add $(LIBELFLIBS).
222 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
223 * lto-plugin.c: Always include <gelf.h>
224 * lto-symtab.c: Likewise.
225 * configure: Regenerate.
226 * Makefile.in: Regenerate.
228 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
230 * lto-plugin.c (libgcc_filename): New.
231 (all_symbols_read_handler): Pass libgcc to the linker.
232 (all_symbols_read_handler): Parse -libgcc
234 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
236 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
237 * Makefile.in: Regenerate.
238 * lto-plugin.c (add_output_files): Argument is now a FILE.
239 (exec_lto_wrapper): Use writeargv and pex.
241 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
244 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
245 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
248 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
250 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
252 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
254 * lto-plugin.c: Include libiberty.h.
255 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
258 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
260 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
263 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
265 * lto-plugin.c (plugin_file_info): Remove fd and elf.
266 (parse_table_entry): strdup entry->name and entry->comdat_key.
267 (free_1): Free name and comdat_key. Don't close the file. Don't call
269 (claim_file_handler): Always call elf_end.
271 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
273 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
274 -D_FILE_OFFSET_BITS=64
275 * Makefile.in: Regenerate
277 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
279 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
280 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
281 * Makefile.in: Regenerate.
282 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
283 * configure: Regenerate.
284 * configure.ac: Add AC_SUBST(target_noncanonical).
286 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
288 * lto-plugin.c: Include stdbool.h.
289 (debug, nop): Declare as bool.
291 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
293 * lto-plugin.c (nop): New.
294 (use_original_files): New.
295 (all_symbols_read_handler): Call use_original_files if nop is true.
296 (process_option): Parse the -nop option.
298 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
300 * lto-plugin.c (debug): New.
301 (exec_lto_wrapper): Print argv if debug is true.
302 (process_option): Process the -debug command line option.
304 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
306 * lto-plugin.c (process_option): The argument is now a single option,
307 not a space separated list.
309 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
311 * lto-plugin.c: Include sys/types.h and sys/wait.h
312 (output_files, num_output_files, lto_wrapper_argv,
313 lto_wrapper_num_args): New.
314 (free_2): Free output_files.
315 (write_resolution): Disable.
316 (add_output_files): New.
317 (exec_lto_wrapper): New.
318 (all_symbols_read_handler): Run lto-wrapper.
319 (claim_file_handler): Free lto_file.name and call elf_end.
320 (process_option): New.
322 2008-11-26 Rafael Espindola <espindola@google.com>
324 * lto-plugin.c (add_input_file): New.
325 (get_section): Return NULL if get_section fails.
326 (write_resolution): New.
327 (all_symbols_read_handler): Call add_input_file.
328 (claim_file_handler): Unlink the correct file.
329 (onload): Record add_input_file.
331 2008-09-23 Rafael Espindola <espindola@google.com>
333 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
334 Update the location of common.c.
335 * Makefile.in: Regenerate.
336 * common.c: Moved to gcc/lto.
337 * common.h: Moved to gcc/lto.
338 * lto-plugin.c: Update the location of common.h.
339 * lto-symtab.c: Update the location of common.h.
341 2008-09-23 Rafael Espindola <espindola@google.com>
343 * common.c: Include common.h.
344 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
346 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
349 2008-09-23 Rafael Espindola <espindola@google.com>
351 * lto-plugin.c (plugin_file_info): Add temp.
352 (cleanup_handler): Only delete temporary files.
353 (claim_file_handler): Initialize lto_file.temp.
355 2008-09-23 Rafael Espindola <espindola@google.com>
357 * plugin-api.h: Moved to include.
359 2008-09-23 Rafael Espindola <espindola@google.com>
361 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
364 2008-09-22 Rafael Espindola <espindola@google.com>
366 * plugin-api.h: Copy from binutils' cvs.
368 2008-09-22 Rafael Espindola <espindola@google.com>
370 * lto-symtab.c (get_symbols, add_symbols): Update signature.
371 * plugin-api.h: Copy from binutils' cvs.
373 2008-09-22 Rafael Espindola <espindola@google.com>
375 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
378 2008-09-10 Rafael Espindola <espindola@google.com>
380 * lto-plugin.c (onload): add missing break statements and asserts.
381 * lto-symtab.c (claim_file_handler): Make it static.
382 (all_symbols_read_handler): Make it static.
383 (all_file_handles): Make it static.
384 (num_file_handles): Make it static.
385 (register_claim_file): Make it static.
386 (register_object): Indent properly.
388 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
390 * Makefile.am (ltosymtab_LDADD): Add -lelf.
391 * Makefiel.in: Regenerate.
392 * lto-plugin.c: Include ar.h.
393 (claim_file_handler): Handle file->offset != 0.
394 * lto-symtab.c: Include gelf.h.
395 (all_file_handles): Change type.
396 (register_object): New.
397 (register_file): Add support for archives.
398 (resolve): Update to new type of all_file_handles.
399 (print): Update to new type of all_file_handles.
400 (free_all): Update to new type of all_file_handles.
401 (main): Update to new type of all_file_handles.
403 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
405 * lto-plugin.c (get_string_table): Remove.
406 (get_section): Use elf_strptr instead of get_string_table.
408 2008-09-08 Doug Kwan <dougkwan@google.com>
410 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
411 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
413 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
415 * Makefile.am (ltosymtab_SOURCES): add common.c.
416 (ltosymtab_CFLAGS): New.
417 (liblto_plugin_la_SOURCES): Add common.c.
418 * Makefile.in: Regenerate.
421 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
422 (plugin_symtab): New.
423 (plugin_file_info): New.
424 (register_all_symbols_read): New.
426 (claimed_files): New.
427 (num_claimed_files): New.
428 (translate): Don't drop the slot number.
431 (all_symbols_read_handler): New.
432 (claim_file_handler): Record every claimed file.
433 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
435 * lto-symtab.c: Include stdlib.h, string.h and common.h.
436 (current_file_handle): Remove.
437 (ld_plugin_all_symbols_read_handler): New.
438 (plugin_handle): New.
440 (all_file_handles): New.
441 (num_file_handles): New.
443 (register_all_symbols_read): New.
444 (add_symbols): Don't print the symbols, just record them.
445 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
447 (load_plugin): Use plugin_handle.
448 (register_file): Add the file handle to all_file_handles.
451 (unload_plugin): New.
453 (main): Call all_symbols_read_handler and free resources.
455 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
457 * Makefile.am (AM_CFLAGS): New.
458 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
459 (lib_LTLIBRARIES): New.
460 (liblto_plugin_la_SOURCES): New.
461 (liblto_plugin_la_LIBADD): New.
462 * Makefile.in: Regenerate.
463 * acinclude.m4: Don't include ../config/acx.m4 and
464 ../config/no-executables.m4.
465 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
467 * aclocal.m4: Regenerate.
468 * configure: Regenerate.
469 * configure.ac: Use AM_PROG_LIBTOOL.
471 * lto-symtab.c: Rewrite to use the plugin.
474 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
476 * configure: Regenerate.
477 * configure.ac: Use AC_CHECK_GELF.
478 * lto-symtab.c: Include gelf.h.
479 (get_string_table): Use size independent API.
480 (printTable): Use lld to print 64 bit integers.
482 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
484 * lto-symtab.c (parse_table_entry): Assert entry->kind and
485 entry->visibility are valid.
487 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
488 * lto-symtab.c (table_entry): Add comdat.
489 (parse_table_entry): Read comdat.
491 2008-08-21 Rafael Espindola <espindola@google.com>