1 2010-04-23 Richard Guenther <rguenther@suse.de>
4 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
6 (all_symbols_read_handler): Likewise.
7 (claim_file_handler): Likewise.
8 (process_option): Likewise.
9 (add_output_files): Likewise. Remove filename length limit.
11 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 * Makefile.in: Regenerate.
14 * aclocal.m4: Regenerate.
16 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
19 * lto-plugin.c (cleanup_handler): Delete temporary output files.
21 2010-01-11 Richard Guenther <rguenther@suse.de>
24 * Makefile.am: Disable dependencies.
25 * Makefile.in: Regenerated.
27 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
30 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
33 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
36 * configure: Regenerated.
37 * Makefile.in: Likewise.
39 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
42 * lto-plugin.c (claim_file_handler): Print offsets in hex.
44 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
46 * lto-plugin.c (write_resolution): Assume resolution_file is set.
47 Print the symbol name.
48 (all_symbols_read_handler): Create a resolution file.
50 (cleanup_handler): Remove the resolution file.
51 (process_option): Drop the -resolution option.
53 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
55 * lto-plugin.c (temp_obj_dir_name): Remove.
56 (arguments_file_name): New.
57 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
58 (exec_lto_wrapper): Create arguments file with make_temp_file.
59 (cleanup_handler): Don't remove the temporary directory. Remove the
61 (onload): Don't create the temporary directory.
63 2009-11-04 Richard Guenther <rguenther@suse.de>
64 Rafael Avila de Espindola <espindola@google.com>
66 * lto-plugin.c (plugin_file_info): Remove temp field.
67 (cleanup_handler): Don't delete temporary objects.
68 (claim_file_handler): Don't create temporary objects.
70 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
72 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
74 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
77 * lto-plugin.c (claim_file_handler): Close files that we created.
79 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
81 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
84 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
87 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
88 * configure: Regenerate.
90 2009-10-26 Richard Guenther <rguenther@suse.de>
92 * configure.ac: Use AM_MAINTAINER_MODE.
93 * acinclude.m4: Remove.
94 * configure: Re-generate.
95 * Makefile.in: Likewise.
96 * aclocal.m4: Likewise.
98 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
101 * configure: Regenerate.
102 * configure.ac: Add AC_TYPE_UINT64_T.
104 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
106 * lto-plugin.c (message): New variable.
107 (check): New function.
108 (parse_table_entry, translate, write_resolution,add_output_files,
109 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
111 (cleanup_handler): Use check instead of assert. Remove the arguments
114 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
116 * lto-plugin.c (resolution_file): New.
117 (free_1): Update comment.
118 (free_2): Free resolution_file.
119 (write_resolution): Write resolution to specified file. Use the
120 syms array from the symbol table.
121 (all_symbols_read_handler): Delay call to free_1 past call to
123 (process_option): Add a -resolution option.
125 2009-10-13 Richard Guenther <rguenther@suse.de>
127 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
129 * Makefile.in: Regenerated.
131 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
133 * lto-plugin.c (add_input_library): New.
134 (all_symbols_read_handler): Use add_input_library for items that
136 (process_option): Fit in 80 columns.
137 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
139 2009-10-02 Diego Novillo <dnovillo@google.com>
141 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
142 and -D_FILE_OFFSET_BITS=64.
143 * configure.ac: Add AC_SYS_LARGEFILE.
144 * configure: Regenerate.
145 * Makefile.in: Regenerate.
146 * lto-plugin.c: Fix copyright boilerplate.
148 2009-10-02 Diego Novillo <dnovillo@google.com>
150 * Makefile.am (ACLOCAL_AMFLAGS): Define.
151 * aclocal.m4: Regenerate with aclocal-2.64
152 * acinclude.m4: Remove.
153 * Makefile.in: Regenerate with automake-1.11
154 * configure.ac (AC_PREREQ): Update to 2.64.
155 * configure: Regenerate.
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 Rafael Avila de Espindola <espindola@google.com>
177 * Makefile.am (liblto_plugin_la_SOURCES): Remove
178 $(top_srcdir)/../gcc/lto/common.c
179 * Makefile.in: Regenerate.
181 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
183 * lto-plugin.c (pass_through_items): New.
184 (num_pass_through_items): New.
185 (all_symbols_read_handler): Update to use the -pass-through option.
186 (process_option): Replace -libgcc with -pass-through.
188 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
190 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
191 register_cleanup to be set.
193 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
195 * Makefile.am: Remove all reference to ltosymtab.
196 * Makefile.in: Regenerate.
197 * lto-symtab.c: Remove.
199 2009-05-21 Diego Novillo <dnovillo@google.com>
201 * configure.ac: Remove call to AC_CHECK_GELF.
202 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
203 * acinclude.m4: Do not include ../config/libelf.m4
204 * Makefile.am (LIBELFLIBS): Define.
206 (AM_CPPFLAGS): Add $(LIBELFINC).
207 (ltosymtab_LDADD): Add $(LIBELFLIBS).
208 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
209 * lto-plugin.c: Always include <gelf.h>
210 * lto-symtab.c: Likewise.
211 * configure: Regenerate.
212 * Makefile.in: Regenerate.
214 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
216 * lto-plugin.c (libgcc_filename): New.
217 (all_symbols_read_handler): Pass libgcc to the linker.
218 (all_symbols_read_handler): Parse -libgcc
220 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
222 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
223 * Makefile.in: Regenerate.
224 * lto-plugin.c (add_output_files): Argument is now a FILE.
225 (exec_lto_wrapper): Use writeargv and pex.
227 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
230 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
231 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
234 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
236 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
238 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
240 * lto-plugin.c: Include libiberty.h.
241 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
244 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
246 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
249 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
251 * lto-plugin.c (plugin_file_info): Remove fd and elf.
252 (parse_table_entry): strdup entry->name and entry->comdat_key.
253 (free_1): Free name and comdat_key. Don't close the file. Don't call
255 (claim_file_handler): Always call elf_end.
257 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
259 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
260 -D_FILE_OFFSET_BITS=64
261 * Makefile.in: Regenerate
263 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
265 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
266 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
267 * Makefile.in: Regenerate.
268 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
269 * configure: Regenerate.
270 * configure.ac: Add AC_SUBST(target_noncanonical).
272 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
274 * lto-plugin.c: Include stdbool.h.
275 (debug, nop): Declare as bool.
277 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
279 * lto-plugin.c (nop): New.
280 (use_original_files): New.
281 (all_symbols_read_handler): Call use_original_files if nop is true.
282 (process_option): Parse the -nop option.
284 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
286 * lto-plugin.c (debug): New.
287 (exec_lto_wrapper): Print argv if debug is true.
288 (process_option): Process the -debug command line option.
290 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
292 * lto-plugin.c (process_option): The argument is now a single option,
293 not a space separated list.
295 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
297 * lto-plugin.c: Include sys/types.h and sys/wait.h
298 (output_files, num_output_files, lto_wrapper_argv,
299 lto_wrapper_num_args): New.
300 (free_2): Free output_files.
301 (write_resolution): Disable.
302 (add_output_files): New.
303 (exec_lto_wrapper): New.
304 (all_symbols_read_handler): Run lto-wrapper.
305 (claim_file_handler): Free lto_file.name and call elf_end.
306 (process_option): New.
308 2008-11-26 Rafael Espindola <espindola@google.com>
310 * lto-plugin.c (add_input_file): New.
311 (get_section): Return NULL if get_section fails.
312 (write_resolution): New.
313 (all_symbols_read_handler): Call add_input_file.
314 (claim_file_handler): Unlink the correct file.
315 (onload): Record add_input_file.
317 2008-09-23 Rafael Espindola <espindola@google.com>
319 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
320 Update the location of common.c.
321 * Makefile.in: Regenerate.
322 * common.c: Moved to gcc/lto.
323 * common.h: Moved to gcc/lto.
324 * lto-plugin.c: Update the location of common.h.
325 * lto-symtab.c: Update the location of common.h.
327 2008-09-23 Rafael Espindola <espindola@google.com>
329 * common.c: Include common.h.
330 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
332 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
335 2008-09-23 Rafael Espindola <espindola@google.com>
337 * lto-plugin.c (plugin_file_info): Add temp.
338 (cleanup_handler): Only delete temporary files.
339 (claim_file_handler): Initialize lto_file.temp.
341 2008-09-23 Rafael Espindola <espindola@google.com>
343 * plugin-api.h: Moved to include.
345 2008-09-23 Rafael Espindola <espindola@google.com>
347 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
350 2008-09-22 Rafael Espindola <espindola@google.com>
352 * plugin-api.h: Copy from binutils' cvs.
354 2008-09-22 Rafael Espindola <espindola@google.com>
356 * lto-symtab.c (get_symbols, add_symbols): Update signature.
357 * plugin-api.h: Copy from binutils' cvs.
359 2008-09-22 Rafael Espindola <espindola@google.com>
361 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
364 2008-09-10 Rafael Espindola <espindola@google.com>
366 * lto-plugin.c (onload): add missing break statements and asserts.
367 * lto-symtab.c (claim_file_handler): Make it static.
368 (all_symbols_read_handler): Make it static.
369 (all_file_handles): Make it static.
370 (num_file_handles): Make it static.
371 (register_claim_file): Make it static.
372 (register_object): Indent properly.
374 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
376 * Makefile.am (ltosymtab_LDADD): Add -lelf.
377 * Makefiel.in: Regenerate.
378 * lto-plugin.c: Include ar.h.
379 (claim_file_handler): Handle file->offset != 0.
380 * lto-symtab.c: Include gelf.h.
381 (all_file_handles): Change type.
382 (register_object): New.
383 (register_file): Add support for archives.
384 (resolve): Update to new type of all_file_handles.
385 (print): Update to new type of all_file_handles.
386 (free_all): Update to new type of all_file_handles.
387 (main): Update to new type of all_file_handles.
389 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
391 * lto-plugin.c (get_string_table): Remove.
392 (get_section): Use elf_strptr instead of get_string_table.
394 2008-09-08 Doug Kwan <dougkwan@google.com>
396 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
397 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
399 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
401 * Makefile.am (ltosymtab_SOURCES): add common.c.
402 (ltosymtab_CFLAGS): New.
403 (liblto_plugin_la_SOURCES): Add common.c.
404 * Makefile.in: Regenerate.
407 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
408 (plugin_symtab): New.
409 (plugin_file_info): New.
410 (register_all_symbols_read): New.
412 (claimed_files): New.
413 (num_claimed_files): New.
414 (translate): Don't drop the slot number.
417 (all_symbols_read_handler): New.
418 (claim_file_handler): Record every claimed file.
419 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
421 * lto-symtab.c: Include stdlib.h, string.h and common.h.
422 (current_file_handle): Remove.
423 (ld_plugin_all_symbols_read_handler): New.
424 (plugin_handle): New.
426 (all_file_handles): New.
427 (num_file_handles): New.
429 (register_all_symbols_read): New.
430 (add_symbols): Don't print the symbols, just record them.
431 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
433 (load_plugin): Use plugin_handle.
434 (register_file): Add the file handle to all_file_handles.
437 (unload_plugin): New.
439 (main): Call all_symbols_read_handler and free resources.
441 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
443 * Makefile.am (AM_CFLAGS): New.
444 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
445 (lib_LTLIBRARIES): New.
446 (liblto_plugin_la_SOURCES): New.
447 (liblto_plugin_la_LIBADD): New.
448 * Makefile.in: Regenerate.
449 * acinclude.m4: Don't include ../config/acx.m4 and
450 ../config/no-executables.m4.
451 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
453 * aclocal.m4: Regenerate.
454 * configure: Regenerate.
455 * configure.ac: Use AM_PROG_LIBTOOL.
457 * lto-symtab.c: Rewrite to use the plugin.
460 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
462 * configure: Regenerate.
463 * configure.ac: Use AC_CHECK_GELF.
464 * lto-symtab.c: Include gelf.h.
465 (get_string_table): Use size independent API.
466 (printTable): Use lld to print 64 bit integers.
468 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
470 * lto-symtab.c (parse_table_entry): Assert entry->kind and
471 entry->visibility are valid.
473 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
474 * lto-symtab.c (table_entry): Add comdat.
475 (parse_table_entry): Read comdat.
477 2008-08-21 Rafael Espindola <espindola@google.com>