1 2010-05-21 Richard Guenther <rguenther@suse.de>
3 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
5 2010-05-07 Richard Guenther <rguenther@suse.de>
7 * lto-plugin.c (free_2): Do not free resolution_file.
8 (write_resolution): Check that we were passed a resolution file.
9 (all_symbols_read_handler): Adjust.
10 (cleanup_handler): Do not remove the resolution file.
11 (process_option): Handle -fresolution=.
13 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17 * Makefile.in: Regenerate.
19 2010-04-23 Richard Guenther <rguenther@suse.de>
22 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
23 (translate): Likewise.
24 (all_symbols_read_handler): Likewise.
25 (claim_file_handler): Likewise.
26 (process_option): Likewise.
27 (add_output_files): Likewise. Remove filename length limit.
29 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31 * Makefile.in: Regenerate.
32 * aclocal.m4: Regenerate.
34 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
37 * lto-plugin.c (cleanup_handler): Delete temporary output files.
39 2010-01-11 Richard Guenther <rguenther@suse.de>
42 * Makefile.am: Disable dependencies.
43 * Makefile.in: Regenerated.
45 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
48 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
51 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
54 * configure: Regenerated.
55 * Makefile.in: Likewise.
57 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
60 * lto-plugin.c (claim_file_handler): Print offsets in hex.
62 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
64 * lto-plugin.c (write_resolution): Assume resolution_file is set.
65 Print the symbol name.
66 (all_symbols_read_handler): Create a resolution file.
68 (cleanup_handler): Remove the resolution file.
69 (process_option): Drop the -resolution option.
71 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
73 * lto-plugin.c (temp_obj_dir_name): Remove.
74 (arguments_file_name): New.
75 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
76 (exec_lto_wrapper): Create arguments file with make_temp_file.
77 (cleanup_handler): Don't remove the temporary directory. Remove the
79 (onload): Don't create the temporary directory.
81 2009-11-04 Richard Guenther <rguenther@suse.de>
82 Rafael Avila de Espindola <espindola@google.com>
84 * lto-plugin.c (plugin_file_info): Remove temp field.
85 (cleanup_handler): Don't delete temporary objects.
86 (claim_file_handler): Don't create temporary objects.
88 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
90 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
92 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
95 * lto-plugin.c (claim_file_handler): Close files that we created.
97 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
99 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
102 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
105 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
106 * configure: Regenerate.
108 2009-10-26 Richard Guenther <rguenther@suse.de>
110 * configure.ac: Use AM_MAINTAINER_MODE.
111 * acinclude.m4: Remove.
112 * configure: Re-generate.
113 * Makefile.in: Likewise.
114 * aclocal.m4: Likewise.
116 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
119 * configure: Regenerate.
120 * configure.ac: Add AC_TYPE_UINT64_T.
122 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
124 * lto-plugin.c (message): New variable.
125 (check): New function.
126 (parse_table_entry, translate, write_resolution,add_output_files,
127 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
129 (cleanup_handler): Use check instead of assert. Remove the arguments
132 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
134 * lto-plugin.c (resolution_file): New.
135 (free_1): Update comment.
136 (free_2): Free resolution_file.
137 (write_resolution): Write resolution to specified file. Use the
138 syms array from the symbol table.
139 (all_symbols_read_handler): Delay call to free_1 past call to
141 (process_option): Add a -resolution option.
143 2009-10-13 Richard Guenther <rguenther@suse.de>
145 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
147 * Makefile.in: Regenerated.
149 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
151 * lto-plugin.c (add_input_library): New.
152 (all_symbols_read_handler): Use add_input_library for items that
154 (process_option): Fit in 80 columns.
155 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
157 2009-10-02 Diego Novillo <dnovillo@google.com>
159 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
160 and -D_FILE_OFFSET_BITS=64.
161 * configure.ac: Add AC_SYS_LARGEFILE.
162 * configure: Regenerate.
163 * Makefile.in: Regenerate.
164 * lto-plugin.c: Fix copyright boilerplate.
166 2009-10-02 Diego Novillo <dnovillo@google.com>
168 * Makefile.am (ACLOCAL_AMFLAGS): Define.
169 * aclocal.m4: Regenerate with aclocal-2.64
170 * acinclude.m4: Remove.
171 * Makefile.in: Regenerate with automake-1.11
172 * configure.ac (AC_PREREQ): Update to 2.64.
173 * configure: Regenerate.
175 2009-10-02 Diego Novillo <dnovillo@google.com>
177 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
178 and -D_FILE_OFFSET_BITS=64.
179 * configure.ac: Add AC_SYS_LARGEFILE.
180 * configure: Regenerate.
181 * Makefile.in: Regenerate.
182 * lto-plugin.c: Fix copyright boilerplate.
184 2009-10-02 Diego Novillo <dnovillo@google.com>
186 * Makefile.am (ACLOCAL_AMFLAGS): Define.
187 * aclocal.m4: Regenerate with aclocal-2.64
188 * acinclude.m4: Remove.
189 * Makefile.in: Regenerate with automake-1.11
190 * configure.ac (AC_PREREQ): Update to 2.64.
191 * configure: Regenerate.
193 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
195 * Makefile.am (liblto_plugin_la_SOURCES): Remove
196 $(top_srcdir)/../gcc/lto/common.c
197 * Makefile.in: Regenerate.
199 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
201 * lto-plugin.c (pass_through_items): New.
202 (num_pass_through_items): New.
203 (all_symbols_read_handler): Update to use the -pass-through option.
204 (process_option): Replace -libgcc with -pass-through.
206 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
208 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
209 register_cleanup to be set.
211 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
213 * Makefile.am: Remove all reference to ltosymtab.
214 * Makefile.in: Regenerate.
215 * lto-symtab.c: Remove.
217 2009-05-21 Diego Novillo <dnovillo@google.com>
219 * configure.ac: Remove call to AC_CHECK_GELF.
220 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
221 * acinclude.m4: Do not include ../config/libelf.m4
222 * Makefile.am (LIBELFLIBS): Define.
224 (AM_CPPFLAGS): Add $(LIBELFINC).
225 (ltosymtab_LDADD): Add $(LIBELFLIBS).
226 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
227 * lto-plugin.c: Always include <gelf.h>
228 * lto-symtab.c: Likewise.
229 * configure: Regenerate.
230 * Makefile.in: Regenerate.
232 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
234 * lto-plugin.c (libgcc_filename): New.
235 (all_symbols_read_handler): Pass libgcc to the linker.
236 (all_symbols_read_handler): Parse -libgcc
238 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
240 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
241 * Makefile.in: Regenerate.
242 * lto-plugin.c (add_output_files): Argument is now a FILE.
243 (exec_lto_wrapper): Use writeargv and pex.
245 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
248 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
249 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
252 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
254 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
256 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
258 * lto-plugin.c: Include libiberty.h.
259 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
262 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
264 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
267 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
269 * lto-plugin.c (plugin_file_info): Remove fd and elf.
270 (parse_table_entry): strdup entry->name and entry->comdat_key.
271 (free_1): Free name and comdat_key. Don't close the file. Don't call
273 (claim_file_handler): Always call elf_end.
275 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
277 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
278 -D_FILE_OFFSET_BITS=64
279 * Makefile.in: Regenerate
281 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
283 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
284 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
285 * Makefile.in: Regenerate.
286 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
287 * configure: Regenerate.
288 * configure.ac: Add AC_SUBST(target_noncanonical).
290 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
292 * lto-plugin.c: Include stdbool.h.
293 (debug, nop): Declare as bool.
295 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
297 * lto-plugin.c (nop): New.
298 (use_original_files): New.
299 (all_symbols_read_handler): Call use_original_files if nop is true.
300 (process_option): Parse the -nop option.
302 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
304 * lto-plugin.c (debug): New.
305 (exec_lto_wrapper): Print argv if debug is true.
306 (process_option): Process the -debug command line option.
308 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
310 * lto-plugin.c (process_option): The argument is now a single option,
311 not a space separated list.
313 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
315 * lto-plugin.c: Include sys/types.h and sys/wait.h
316 (output_files, num_output_files, lto_wrapper_argv,
317 lto_wrapper_num_args): New.
318 (free_2): Free output_files.
319 (write_resolution): Disable.
320 (add_output_files): New.
321 (exec_lto_wrapper): New.
322 (all_symbols_read_handler): Run lto-wrapper.
323 (claim_file_handler): Free lto_file.name and call elf_end.
324 (process_option): New.
326 2008-11-26 Rafael Espindola <espindola@google.com>
328 * lto-plugin.c (add_input_file): New.
329 (get_section): Return NULL if get_section fails.
330 (write_resolution): New.
331 (all_symbols_read_handler): Call add_input_file.
332 (claim_file_handler): Unlink the correct file.
333 (onload): Record add_input_file.
335 2008-09-23 Rafael Espindola <espindola@google.com>
337 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
338 Update the location of common.c.
339 * Makefile.in: Regenerate.
340 * common.c: Moved to gcc/lto.
341 * common.h: Moved to gcc/lto.
342 * lto-plugin.c: Update the location of common.h.
343 * lto-symtab.c: Update the location of common.h.
345 2008-09-23 Rafael Espindola <espindola@google.com>
347 * common.c: Include common.h.
348 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
350 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
353 2008-09-23 Rafael Espindola <espindola@google.com>
355 * lto-plugin.c (plugin_file_info): Add temp.
356 (cleanup_handler): Only delete temporary files.
357 (claim_file_handler): Initialize lto_file.temp.
359 2008-09-23 Rafael Espindola <espindola@google.com>
361 * plugin-api.h: Moved to include.
363 2008-09-23 Rafael Espindola <espindola@google.com>
365 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
368 2008-09-22 Rafael Espindola <espindola@google.com>
370 * plugin-api.h: Copy from binutils' cvs.
372 2008-09-22 Rafael Espindola <espindola@google.com>
374 * lto-symtab.c (get_symbols, add_symbols): Update signature.
375 * plugin-api.h: Copy from binutils' cvs.
377 2008-09-22 Rafael Espindola <espindola@google.com>
379 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
382 2008-09-10 Rafael Espindola <espindola@google.com>
384 * lto-plugin.c (onload): add missing break statements and asserts.
385 * lto-symtab.c (claim_file_handler): Make it static.
386 (all_symbols_read_handler): Make it static.
387 (all_file_handles): Make it static.
388 (num_file_handles): Make it static.
389 (register_claim_file): Make it static.
390 (register_object): Indent properly.
392 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
394 * Makefile.am (ltosymtab_LDADD): Add -lelf.
395 * Makefiel.in: Regenerate.
396 * lto-plugin.c: Include ar.h.
397 (claim_file_handler): Handle file->offset != 0.
398 * lto-symtab.c: Include gelf.h.
399 (all_file_handles): Change type.
400 (register_object): New.
401 (register_file): Add support for archives.
402 (resolve): Update to new type of all_file_handles.
403 (print): Update to new type of all_file_handles.
404 (free_all): Update to new type of all_file_handles.
405 (main): Update to new type of all_file_handles.
407 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
409 * lto-plugin.c (get_string_table): Remove.
410 (get_section): Use elf_strptr instead of get_string_table.
412 2008-09-08 Doug Kwan <dougkwan@google.com>
414 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
415 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
417 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
419 * Makefile.am (ltosymtab_SOURCES): add common.c.
420 (ltosymtab_CFLAGS): New.
421 (liblto_plugin_la_SOURCES): Add common.c.
422 * Makefile.in: Regenerate.
425 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
426 (plugin_symtab): New.
427 (plugin_file_info): New.
428 (register_all_symbols_read): New.
430 (claimed_files): New.
431 (num_claimed_files): New.
432 (translate): Don't drop the slot number.
435 (all_symbols_read_handler): New.
436 (claim_file_handler): Record every claimed file.
437 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
439 * lto-symtab.c: Include stdlib.h, string.h and common.h.
440 (current_file_handle): Remove.
441 (ld_plugin_all_symbols_read_handler): New.
442 (plugin_handle): New.
444 (all_file_handles): New.
445 (num_file_handles): New.
447 (register_all_symbols_read): New.
448 (add_symbols): Don't print the symbols, just record them.
449 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
451 (load_plugin): Use plugin_handle.
452 (register_file): Add the file handle to all_file_handles.
455 (unload_plugin): New.
457 (main): Call all_symbols_read_handler and free resources.
459 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
461 * Makefile.am (AM_CFLAGS): New.
462 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
463 (lib_LTLIBRARIES): New.
464 (liblto_plugin_la_SOURCES): New.
465 (liblto_plugin_la_LIBADD): New.
466 * Makefile.in: Regenerate.
467 * acinclude.m4: Don't include ../config/acx.m4 and
468 ../config/no-executables.m4.
469 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
471 * aclocal.m4: Regenerate.
472 * configure: Regenerate.
473 * configure.ac: Use AM_PROG_LIBTOOL.
475 * lto-symtab.c: Rewrite to use the plugin.
478 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
480 * configure: Regenerate.
481 * configure.ac: Use AC_CHECK_GELF.
482 * lto-symtab.c: Include gelf.h.
483 (get_string_table): Use size independent API.
484 (printTable): Use lld to print 64 bit integers.
486 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
488 * lto-symtab.c (parse_table_entry): Assert entry->kind and
489 entry->visibility are valid.
491 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
492 * lto-symtab.c (table_entry): Add comdat.
493 (parse_table_entry): Read comdat.
495 2008-08-21 Rafael Espindola <espindola@google.com>