1 2010-07-22 Richard Guenther <rguenther@suse.de>
3 * Makefile.am: New copy_lto_plugin rule to install the plugin
5 * Makefile.in: Regenerated.
7 2010-05-21 Richard Guenther <rguenther@suse.de>
9 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
11 2010-05-07 Richard Guenther <rguenther@suse.de>
13 * lto-plugin.c (free_2): Do not free resolution_file.
14 (write_resolution): Check that we were passed a resolution file.
15 (all_symbols_read_handler): Adjust.
16 (cleanup_handler): Do not remove the resolution file.
17 (process_option): Handle -fresolution=.
19 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
23 * Makefile.in: Regenerate.
25 2010-04-23 Richard Guenther <rguenther@suse.de>
28 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
29 (translate): Likewise.
30 (all_symbols_read_handler): Likewise.
31 (claim_file_handler): Likewise.
32 (process_option): Likewise.
33 (add_output_files): Likewise. Remove filename length limit.
35 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37 * Makefile.in: Regenerate.
38 * aclocal.m4: Regenerate.
40 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
43 * lto-plugin.c (cleanup_handler): Delete temporary output files.
45 2010-01-11 Richard Guenther <rguenther@suse.de>
48 * Makefile.am: Disable dependencies.
49 * Makefile.in: Regenerated.
51 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
54 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
57 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
60 * configure: Regenerated.
61 * Makefile.in: Likewise.
63 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
66 * lto-plugin.c (claim_file_handler): Print offsets in hex.
68 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
70 * lto-plugin.c (write_resolution): Assume resolution_file is set.
71 Print the symbol name.
72 (all_symbols_read_handler): Create a resolution file.
74 (cleanup_handler): Remove the resolution file.
75 (process_option): Drop the -resolution option.
77 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
79 * lto-plugin.c (temp_obj_dir_name): Remove.
80 (arguments_file_name): New.
81 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
82 (exec_lto_wrapper): Create arguments file with make_temp_file.
83 (cleanup_handler): Don't remove the temporary directory. Remove the
85 (onload): Don't create the temporary directory.
87 2009-11-04 Richard Guenther <rguenther@suse.de>
88 Rafael Avila de Espindola <espindola@google.com>
90 * lto-plugin.c (plugin_file_info): Remove temp field.
91 (cleanup_handler): Don't delete temporary objects.
92 (claim_file_handler): Don't create temporary objects.
94 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
96 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
98 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
101 * lto-plugin.c (claim_file_handler): Close files that we created.
103 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
105 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
108 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
111 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
112 * configure: Regenerate.
114 2009-10-26 Richard Guenther <rguenther@suse.de>
116 * configure.ac: Use AM_MAINTAINER_MODE.
117 * acinclude.m4: Remove.
118 * configure: Re-generate.
119 * Makefile.in: Likewise.
120 * aclocal.m4: Likewise.
122 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
125 * configure: Regenerate.
126 * configure.ac: Add AC_TYPE_UINT64_T.
128 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
130 * lto-plugin.c (message): New variable.
131 (check): New function.
132 (parse_table_entry, translate, write_resolution,add_output_files,
133 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
135 (cleanup_handler): Use check instead of assert. Remove the arguments
138 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
140 * lto-plugin.c (resolution_file): New.
141 (free_1): Update comment.
142 (free_2): Free resolution_file.
143 (write_resolution): Write resolution to specified file. Use the
144 syms array from the symbol table.
145 (all_symbols_read_handler): Delay call to free_1 past call to
147 (process_option): Add a -resolution option.
149 2009-10-13 Richard Guenther <rguenther@suse.de>
151 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
153 * Makefile.in: Regenerated.
155 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
157 * lto-plugin.c (add_input_library): New.
158 (all_symbols_read_handler): Use add_input_library for items that
160 (process_option): Fit in 80 columns.
161 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
163 2009-10-02 Diego Novillo <dnovillo@google.com>
165 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
166 and -D_FILE_OFFSET_BITS=64.
167 * configure.ac: Add AC_SYS_LARGEFILE.
168 * configure: Regenerate.
169 * Makefile.in: Regenerate.
170 * lto-plugin.c: Fix copyright boilerplate.
172 2009-10-02 Diego Novillo <dnovillo@google.com>
174 * Makefile.am (ACLOCAL_AMFLAGS): Define.
175 * aclocal.m4: Regenerate with aclocal-2.64
176 * acinclude.m4: Remove.
177 * Makefile.in: Regenerate with automake-1.11
178 * configure.ac (AC_PREREQ): Update to 2.64.
179 * configure: Regenerate.
181 2009-10-02 Diego Novillo <dnovillo@google.com>
183 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
184 and -D_FILE_OFFSET_BITS=64.
185 * configure.ac: Add AC_SYS_LARGEFILE.
186 * configure: Regenerate.
187 * Makefile.in: Regenerate.
188 * lto-plugin.c: Fix copyright boilerplate.
190 2009-10-02 Diego Novillo <dnovillo@google.com>
192 * Makefile.am (ACLOCAL_AMFLAGS): Define.
193 * aclocal.m4: Regenerate with aclocal-2.64
194 * acinclude.m4: Remove.
195 * Makefile.in: Regenerate with automake-1.11
196 * configure.ac (AC_PREREQ): Update to 2.64.
197 * configure: Regenerate.
199 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
201 * Makefile.am (liblto_plugin_la_SOURCES): Remove
202 $(top_srcdir)/../gcc/lto/common.c
203 * Makefile.in: Regenerate.
205 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
207 * lto-plugin.c (pass_through_items): New.
208 (num_pass_through_items): New.
209 (all_symbols_read_handler): Update to use the -pass-through option.
210 (process_option): Replace -libgcc with -pass-through.
212 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
214 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
215 register_cleanup to be set.
217 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
219 * Makefile.am: Remove all reference to ltosymtab.
220 * Makefile.in: Regenerate.
221 * lto-symtab.c: Remove.
223 2009-05-21 Diego Novillo <dnovillo@google.com>
225 * configure.ac: Remove call to AC_CHECK_GELF.
226 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
227 * acinclude.m4: Do not include ../config/libelf.m4
228 * Makefile.am (LIBELFLIBS): Define.
230 (AM_CPPFLAGS): Add $(LIBELFINC).
231 (ltosymtab_LDADD): Add $(LIBELFLIBS).
232 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
233 * lto-plugin.c: Always include <gelf.h>
234 * lto-symtab.c: Likewise.
235 * configure: Regenerate.
236 * Makefile.in: Regenerate.
238 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
240 * lto-plugin.c (libgcc_filename): New.
241 (all_symbols_read_handler): Pass libgcc to the linker.
242 (all_symbols_read_handler): Parse -libgcc
244 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
246 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
247 * Makefile.in: Regenerate.
248 * lto-plugin.c (add_output_files): Argument is now a FILE.
249 (exec_lto_wrapper): Use writeargv and pex.
251 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
254 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
255 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
258 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
260 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
262 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
264 * lto-plugin.c: Include libiberty.h.
265 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
268 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
270 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
273 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
275 * lto-plugin.c (plugin_file_info): Remove fd and elf.
276 (parse_table_entry): strdup entry->name and entry->comdat_key.
277 (free_1): Free name and comdat_key. Don't close the file. Don't call
279 (claim_file_handler): Always call elf_end.
281 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
283 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
284 -D_FILE_OFFSET_BITS=64
285 * Makefile.in: Regenerate
287 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
289 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
290 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
291 * Makefile.in: Regenerate.
292 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
293 * configure: Regenerate.
294 * configure.ac: Add AC_SUBST(target_noncanonical).
296 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
298 * lto-plugin.c: Include stdbool.h.
299 (debug, nop): Declare as bool.
301 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
303 * lto-plugin.c (nop): New.
304 (use_original_files): New.
305 (all_symbols_read_handler): Call use_original_files if nop is true.
306 (process_option): Parse the -nop option.
308 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
310 * lto-plugin.c (debug): New.
311 (exec_lto_wrapper): Print argv if debug is true.
312 (process_option): Process the -debug command line option.
314 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
316 * lto-plugin.c (process_option): The argument is now a single option,
317 not a space separated list.
319 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
321 * lto-plugin.c: Include sys/types.h and sys/wait.h
322 (output_files, num_output_files, lto_wrapper_argv,
323 lto_wrapper_num_args): New.
324 (free_2): Free output_files.
325 (write_resolution): Disable.
326 (add_output_files): New.
327 (exec_lto_wrapper): New.
328 (all_symbols_read_handler): Run lto-wrapper.
329 (claim_file_handler): Free lto_file.name and call elf_end.
330 (process_option): New.
332 2008-11-26 Rafael Espindola <espindola@google.com>
334 * lto-plugin.c (add_input_file): New.
335 (get_section): Return NULL if get_section fails.
336 (write_resolution): New.
337 (all_symbols_read_handler): Call add_input_file.
338 (claim_file_handler): Unlink the correct file.
339 (onload): Record add_input_file.
341 2008-09-23 Rafael Espindola <espindola@google.com>
343 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
344 Update the location of common.c.
345 * Makefile.in: Regenerate.
346 * common.c: Moved to gcc/lto.
347 * common.h: Moved to gcc/lto.
348 * lto-plugin.c: Update the location of common.h.
349 * lto-symtab.c: Update the location of common.h.
351 2008-09-23 Rafael Espindola <espindola@google.com>
353 * common.c: Include common.h.
354 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
356 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
359 2008-09-23 Rafael Espindola <espindola@google.com>
361 * lto-plugin.c (plugin_file_info): Add temp.
362 (cleanup_handler): Only delete temporary files.
363 (claim_file_handler): Initialize lto_file.temp.
365 2008-09-23 Rafael Espindola <espindola@google.com>
367 * plugin-api.h: Moved to include.
369 2008-09-23 Rafael Espindola <espindola@google.com>
371 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
374 2008-09-22 Rafael Espindola <espindola@google.com>
376 * plugin-api.h: Copy from binutils' cvs.
378 2008-09-22 Rafael Espindola <espindola@google.com>
380 * lto-symtab.c (get_symbols, add_symbols): Update signature.
381 * plugin-api.h: Copy from binutils' cvs.
383 2008-09-22 Rafael Espindola <espindola@google.com>
385 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
388 2008-09-10 Rafael Espindola <espindola@google.com>
390 * lto-plugin.c (onload): add missing break statements and asserts.
391 * lto-symtab.c (claim_file_handler): Make it static.
392 (all_symbols_read_handler): Make it static.
393 (all_file_handles): Make it static.
394 (num_file_handles): Make it static.
395 (register_claim_file): Make it static.
396 (register_object): Indent properly.
398 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
400 * Makefile.am (ltosymtab_LDADD): Add -lelf.
401 * Makefiel.in: Regenerate.
402 * lto-plugin.c: Include ar.h.
403 (claim_file_handler): Handle file->offset != 0.
404 * lto-symtab.c: Include gelf.h.
405 (all_file_handles): Change type.
406 (register_object): New.
407 (register_file): Add support for archives.
408 (resolve): Update to new type of all_file_handles.
409 (print): Update to new type of all_file_handles.
410 (free_all): Update to new type of all_file_handles.
411 (main): Update to new type of all_file_handles.
413 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
415 * lto-plugin.c (get_string_table): Remove.
416 (get_section): Use elf_strptr instead of get_string_table.
418 2008-09-08 Doug Kwan <dougkwan@google.com>
420 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
421 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
423 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
425 * Makefile.am (ltosymtab_SOURCES): add common.c.
426 (ltosymtab_CFLAGS): New.
427 (liblto_plugin_la_SOURCES): Add common.c.
428 * Makefile.in: Regenerate.
431 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
432 (plugin_symtab): New.
433 (plugin_file_info): New.
434 (register_all_symbols_read): New.
436 (claimed_files): New.
437 (num_claimed_files): New.
438 (translate): Don't drop the slot number.
441 (all_symbols_read_handler): New.
442 (claim_file_handler): Record every claimed file.
443 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
445 * lto-symtab.c: Include stdlib.h, string.h and common.h.
446 (current_file_handle): Remove.
447 (ld_plugin_all_symbols_read_handler): New.
448 (plugin_handle): New.
450 (all_file_handles): New.
451 (num_file_handles): New.
453 (register_all_symbols_read): New.
454 (add_symbols): Don't print the symbols, just record them.
455 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
457 (load_plugin): Use plugin_handle.
458 (register_file): Add the file handle to all_file_handles.
461 (unload_plugin): New.
463 (main): Call all_symbols_read_handler and free resources.
465 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
467 * Makefile.am (AM_CFLAGS): New.
468 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
469 (lib_LTLIBRARIES): New.
470 (liblto_plugin_la_SOURCES): New.
471 (liblto_plugin_la_LIBADD): New.
472 * Makefile.in: Regenerate.
473 * acinclude.m4: Don't include ../config/acx.m4 and
474 ../config/no-executables.m4.
475 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
477 * aclocal.m4: Regenerate.
478 * configure: Regenerate.
479 * configure.ac: Use AM_PROG_LIBTOOL.
481 * lto-symtab.c: Rewrite to use the plugin.
484 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
486 * configure: Regenerate.
487 * configure.ac: Use AC_CHECK_GELF.
488 * lto-symtab.c: Include gelf.h.
489 (get_string_table): Use size independent API.
490 (printTable): Use lld to print 64 bit integers.
492 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
494 * lto-symtab.c (parse_table_entry): Assert entry->kind and
495 entry->visibility are valid.
497 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
498 * lto-symtab.c (table_entry): Add comdat.
499 (parse_table_entry): Read comdat.
501 2008-08-21 Rafael Espindola <espindola@google.com>