1 2010-01-11 Richard Guenther <rguenther@suse.de>
4 * Makefile.am: Disable dependencies.
5 * Makefile.in: Regenerated.
7 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
10 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
13 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
16 * configure: Regenerated.
17 * Makefile.in: Likewise.
19 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
22 * lto-plugin.c (claim_file_handler): Print offsets in hex.
24 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
26 * lto-plugin.c (write_resolution): Assume resolution_file is set.
27 Print the symbol name.
28 (all_symbols_read_handler): Create a resolution file.
30 (cleanup_handler): Remove the resolution file.
31 (process_option): Drop the -resolution option.
33 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
35 * lto-plugin.c (temp_obj_dir_name): Remove.
36 (arguments_file_name): New.
37 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
38 (exec_lto_wrapper): Create arguments file with make_temp_file.
39 (cleanup_handler): Don't remove the temporary directory. Remove the
41 (onload): Don't create the temporary directory.
43 2009-11-04 Richard Guenther <rguenther@suse.de>
44 Rafael Avila de Espindola <espindola@google.com>
46 * lto-plugin.c (plugin_file_info): Remove temp field.
47 (cleanup_handler): Don't delete temporary objects.
48 (claim_file_handler): Don't create temporary objects.
50 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
52 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
54 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
57 * lto-plugin.c (claim_file_handler): Close files that we created.
59 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
61 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
64 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
67 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
68 * configure: Regenerate.
70 2009-10-26 Richard Guenther <rguenther@suse.de>
72 * configure.ac: Use AM_MAINTAINER_MODE.
73 * acinclude.m4: Remove.
74 * configure: Re-generate.
75 * Makefile.in: Likewise.
76 * aclocal.m4: Likewise.
78 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
81 * configure: Regenerate.
82 * configure.ac: Add AC_TYPE_UINT64_T.
84 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
86 * lto-plugin.c (message): New variable.
87 (check): New function.
88 (parse_table_entry, translate, write_resolution,add_output_files,
89 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
91 (cleanup_handler): Use check instead of assert. Remove the arguments
94 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
96 * lto-plugin.c (resolution_file): New.
97 (free_1): Update comment.
98 (free_2): Free resolution_file.
99 (write_resolution): Write resolution to specified file. Use the
100 syms array from the symbol table.
101 (all_symbols_read_handler): Delay call to free_1 past call to
103 (process_option): Add a -resolution option.
105 2009-10-13 Richard Guenther <rguenther@suse.de>
107 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
109 * Makefile.in: Regenerated.
111 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
113 * lto-plugin.c (add_input_library): New.
114 (all_symbols_read_handler): Use add_input_library for items that
116 (process_option): Fit in 80 columns.
117 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
119 2009-10-02 Diego Novillo <dnovillo@google.com>
121 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
122 and -D_FILE_OFFSET_BITS=64.
123 * configure.ac: Add AC_SYS_LARGEFILE.
124 * configure: Regenerate.
125 * Makefile.in: Regenerate.
126 * lto-plugin.c: Fix copyright boilerplate.
128 2009-10-02 Diego Novillo <dnovillo@google.com>
130 * Makefile.am (ACLOCAL_AMFLAGS): Define.
131 * aclocal.m4: Regenerate with aclocal-2.64
132 * acinclude.m4: Remove.
133 * Makefile.in: Regenerate with automake-1.11
134 * configure.ac (AC_PREREQ): Update to 2.64.
135 * configure: Regenerate.
137 2009-10-02 Diego Novillo <dnovillo@google.com>
139 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
140 and -D_FILE_OFFSET_BITS=64.
141 * configure.ac: Add AC_SYS_LARGEFILE.
142 * configure: Regenerate.
143 * Makefile.in: Regenerate.
144 * lto-plugin.c: Fix copyright boilerplate.
146 2009-10-02 Diego Novillo <dnovillo@google.com>
148 * Makefile.am (ACLOCAL_AMFLAGS): Define.
149 * aclocal.m4: Regenerate with aclocal-2.64
150 * acinclude.m4: Remove.
151 * Makefile.in: Regenerate with automake-1.11
152 * configure.ac (AC_PREREQ): Update to 2.64.
153 * configure: Regenerate.
155 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
157 * Makefile.am (liblto_plugin_la_SOURCES): Remove
158 $(top_srcdir)/../gcc/lto/common.c
159 * Makefile.in: Regenerate.
161 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
163 * lto-plugin.c (pass_through_items): New.
164 (num_pass_through_items): New.
165 (all_symbols_read_handler): Update to use the -pass-through option.
166 (process_option): Replace -libgcc with -pass-through.
168 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
170 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
171 register_cleanup to be set.
173 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
175 * Makefile.am: Remove all reference to ltosymtab.
176 * Makefile.in: Regenerate.
177 * lto-symtab.c: Remove.
179 2009-05-21 Diego Novillo <dnovillo@google.com>
181 * configure.ac: Remove call to AC_CHECK_GELF.
182 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
183 * acinclude.m4: Do not include ../config/libelf.m4
184 * Makefile.am (LIBELFLIBS): Define.
186 (AM_CPPFLAGS): Add $(LIBELFINC).
187 (ltosymtab_LDADD): Add $(LIBELFLIBS).
188 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
189 * lto-plugin.c: Always include <gelf.h>
190 * lto-symtab.c: Likewise.
191 * configure: Regenerate.
192 * Makefile.in: Regenerate.
194 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
196 * lto-plugin.c (libgcc_filename): New.
197 (all_symbols_read_handler): Pass libgcc to the linker.
198 (all_symbols_read_handler): Parse -libgcc
200 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
202 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
203 * Makefile.in: Regenerate.
204 * lto-plugin.c (add_output_files): Argument is now a FILE.
205 (exec_lto_wrapper): Use writeargv and pex.
207 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
210 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
211 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
214 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
216 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
218 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
220 * lto-plugin.c: Include libiberty.h.
221 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
224 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
226 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
229 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
231 * lto-plugin.c (plugin_file_info): Remove fd and elf.
232 (parse_table_entry): strdup entry->name and entry->comdat_key.
233 (free_1): Free name and comdat_key. Don't close the file. Don't call
235 (claim_file_handler): Always call elf_end.
237 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
239 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
240 -D_FILE_OFFSET_BITS=64
241 * Makefile.in: Regenerate
243 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
245 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
246 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
247 * Makefile.in: Regenerate.
248 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
249 * configure: Regenerate.
250 * configure.ac: Add AC_SUBST(target_noncanonical).
252 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
254 * lto-plugin.c: Include stdbool.h.
255 (debug, nop): Declare as bool.
257 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
259 * lto-plugin.c (nop): New.
260 (use_original_files): New.
261 (all_symbols_read_handler): Call use_original_files if nop is true.
262 (process_option): Parse the -nop option.
264 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
266 * lto-plugin.c (debug): New.
267 (exec_lto_wrapper): Print argv if debug is true.
268 (process_option): Process the -debug command line option.
270 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
272 * lto-plugin.c (process_option): The argument is now a single option,
273 not a space separated list.
275 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
277 * lto-plugin.c: Include sys/types.h and sys/wait.h
278 (output_files, num_output_files, lto_wrapper_argv,
279 lto_wrapper_num_args): New.
280 (free_2): Free output_files.
281 (write_resolution): Disable.
282 (add_output_files): New.
283 (exec_lto_wrapper): New.
284 (all_symbols_read_handler): Run lto-wrapper.
285 (claim_file_handler): Free lto_file.name and call elf_end.
286 (process_option): New.
288 2008-11-26 Rafael Espindola <espindola@google.com>
290 * lto-plugin.c (add_input_file): New.
291 (get_section): Return NULL if get_section fails.
292 (write_resolution): New.
293 (all_symbols_read_handler): Call add_input_file.
294 (claim_file_handler): Unlink the correct file.
295 (onload): Record add_input_file.
297 2008-09-23 Rafael Espindola <espindola@google.com>
299 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
300 Update the location of common.c.
301 * Makefile.in: Regenerate.
302 * common.c: Moved to gcc/lto.
303 * common.h: Moved to gcc/lto.
304 * lto-plugin.c: Update the location of common.h.
305 * lto-symtab.c: Update the location of common.h.
307 2008-09-23 Rafael Espindola <espindola@google.com>
309 * common.c: Include common.h.
310 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
312 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
315 2008-09-23 Rafael Espindola <espindola@google.com>
317 * lto-plugin.c (plugin_file_info): Add temp.
318 (cleanup_handler): Only delete temporary files.
319 (claim_file_handler): Initialize lto_file.temp.
321 2008-09-23 Rafael Espindola <espindola@google.com>
323 * plugin-api.h: Moved to include.
325 2008-09-23 Rafael Espindola <espindola@google.com>
327 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
330 2008-09-22 Rafael Espindola <espindola@google.com>
332 * plugin-api.h: Copy from binutils' cvs.
334 2008-09-22 Rafael Espindola <espindola@google.com>
336 * lto-symtab.c (get_symbols, add_symbols): Update signature.
337 * plugin-api.h: Copy from binutils' cvs.
339 2008-09-22 Rafael Espindola <espindola@google.com>
341 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
344 2008-09-10 Rafael Espindola <espindola@google.com>
346 * lto-plugin.c (onload): add missing break statements and asserts.
347 * lto-symtab.c (claim_file_handler): Make it static.
348 (all_symbols_read_handler): Make it static.
349 (all_file_handles): Make it static.
350 (num_file_handles): Make it static.
351 (register_claim_file): Make it static.
352 (register_object): Indent properly.
354 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
356 * Makefile.am (ltosymtab_LDADD): Add -lelf.
357 * Makefiel.in: Regenerate.
358 * lto-plugin.c: Include ar.h.
359 (claim_file_handler): Handle file->offset != 0.
360 * lto-symtab.c: Include gelf.h.
361 (all_file_handles): Change type.
362 (register_object): New.
363 (register_file): Add support for archives.
364 (resolve): Update to new type of all_file_handles.
365 (print): Update to new type of all_file_handles.
366 (free_all): Update to new type of all_file_handles.
367 (main): Update to new type of all_file_handles.
369 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
371 * lto-plugin.c (get_string_table): Remove.
372 (get_section): Use elf_strptr instead of get_string_table.
374 2008-09-08 Doug Kwan <dougkwan@google.com>
376 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
377 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
379 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
381 * Makefile.am (ltosymtab_SOURCES): add common.c.
382 (ltosymtab_CFLAGS): New.
383 (liblto_plugin_la_SOURCES): Add common.c.
384 * Makefile.in: Regenerate.
387 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
388 (plugin_symtab): New.
389 (plugin_file_info): New.
390 (register_all_symbols_read): New.
392 (claimed_files): New.
393 (num_claimed_files): New.
394 (translate): Don't drop the slot number.
397 (all_symbols_read_handler): New.
398 (claim_file_handler): Record every claimed file.
399 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
401 * lto-symtab.c: Include stdlib.h, string.h and common.h.
402 (current_file_handle): Remove.
403 (ld_plugin_all_symbols_read_handler): New.
404 (plugin_handle): New.
406 (all_file_handles): New.
407 (num_file_handles): New.
409 (register_all_symbols_read): New.
410 (add_symbols): Don't print the symbols, just record them.
411 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
413 (load_plugin): Use plugin_handle.
414 (register_file): Add the file handle to all_file_handles.
417 (unload_plugin): New.
419 (main): Call all_symbols_read_handler and free resources.
421 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
423 * Makefile.am (AM_CFLAGS): New.
424 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
425 (lib_LTLIBRARIES): New.
426 (liblto_plugin_la_SOURCES): New.
427 (liblto_plugin_la_LIBADD): New.
428 * Makefile.in: Regenerate.
429 * acinclude.m4: Don't include ../config/acx.m4 and
430 ../config/no-executables.m4.
431 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
433 * aclocal.m4: Regenerate.
434 * configure: Regenerate.
435 * configure.ac: Use AM_PROG_LIBTOOL.
437 * lto-symtab.c: Rewrite to use the plugin.
440 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
442 * configure: Regenerate.
443 * configure.ac: Use AC_CHECK_GELF.
444 * lto-symtab.c: Include gelf.h.
445 (get_string_table): Use size independent API.
446 (printTable): Use lld to print 64 bit integers.
448 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
450 * lto-symtab.c (parse_table_entry): Assert entry->kind and
451 entry->visibility are valid.
453 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
454 * lto-symtab.c (table_entry): Add comdat.
455 (parse_table_entry): Read comdat.
457 2008-08-21 Rafael Espindola <espindola@google.com>