1 2010-07-27 Andi Kleen <ak@linux.intel.com>
3 * lto-plugin.c (translate): Remove debug fprintf.
5 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
8 * lto-plugin.c (translate): Cast to unsigned long.
10 2010-07-23 Andi Kleen <ak@linux.intel.com>
13 * lto-plugin.c (sym_aux): Add.
14 (plugin_symtab): Remove slots. Add aux and id.
15 (parse_table_entry): Change to use aux instead of slots.
16 (LTO_SECTION_PREFIX): Add.
17 (translate): Improve buffer allocation. Change to append
18 symbols to existing out buffer.
19 (get_section): Remove.
20 (process_symtab): Add.
21 (free_2): Free symtab->aux.
22 (write_resolution): Handle aux instead of slots.
23 Print sub id to resolution file.
24 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
25 calls with call to process_symtab.
27 2010-07-22 Richard Guenther <rguenther@suse.de>
29 * Makefile.am: New copy_lto_plugin rule to install the plugin
31 * Makefile.in: Regenerated.
33 2010-05-21 Richard Guenther <rguenther@suse.de>
35 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
37 2010-05-07 Richard Guenther <rguenther@suse.de>
39 * lto-plugin.c (free_2): Do not free resolution_file.
40 (write_resolution): Check that we were passed a resolution file.
41 (all_symbols_read_handler): Adjust.
42 (cleanup_handler): Do not remove the resolution file.
43 (process_option): Handle -fresolution=.
45 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
49 * Makefile.in: Regenerate.
51 2010-04-23 Richard Guenther <rguenther@suse.de>
54 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
55 (translate): Likewise.
56 (all_symbols_read_handler): Likewise.
57 (claim_file_handler): Likewise.
58 (process_option): Likewise.
59 (add_output_files): Likewise. Remove filename length limit.
61 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63 * Makefile.in: Regenerate.
64 * aclocal.m4: Regenerate.
66 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
69 * lto-plugin.c (cleanup_handler): Delete temporary output files.
71 2010-01-11 Richard Guenther <rguenther@suse.de>
74 * Makefile.am: Disable dependencies.
75 * Makefile.in: Regenerated.
77 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
80 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
83 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
86 * configure: Regenerated.
87 * Makefile.in: Likewise.
89 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
92 * lto-plugin.c (claim_file_handler): Print offsets in hex.
94 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
96 * lto-plugin.c (write_resolution): Assume resolution_file is set.
97 Print the symbol name.
98 (all_symbols_read_handler): Create a resolution file.
100 (cleanup_handler): Remove the resolution file.
101 (process_option): Drop the -resolution option.
103 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
105 * lto-plugin.c (temp_obj_dir_name): Remove.
106 (arguments_file_name): New.
107 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
108 (exec_lto_wrapper): Create arguments file with make_temp_file.
109 (cleanup_handler): Don't remove the temporary directory. Remove the
111 (onload): Don't create the temporary directory.
113 2009-11-04 Richard Guenther <rguenther@suse.de>
114 Rafael Avila de Espindola <espindola@google.com>
116 * lto-plugin.c (plugin_file_info): Remove temp field.
117 (cleanup_handler): Don't delete temporary objects.
118 (claim_file_handler): Don't create temporary objects.
120 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
122 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
124 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
127 * lto-plugin.c (claim_file_handler): Close files that we created.
129 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
131 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
134 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
137 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
138 * configure: Regenerate.
140 2009-10-26 Richard Guenther <rguenther@suse.de>
142 * configure.ac: Use AM_MAINTAINER_MODE.
143 * acinclude.m4: Remove.
144 * configure: Re-generate.
145 * Makefile.in: Likewise.
146 * aclocal.m4: Likewise.
148 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
151 * configure: Regenerate.
152 * configure.ac: Add AC_TYPE_UINT64_T.
154 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
156 * lto-plugin.c (message): New variable.
157 (check): New function.
158 (parse_table_entry, translate, write_resolution,add_output_files,
159 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
161 (cleanup_handler): Use check instead of assert. Remove the arguments
164 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
166 * lto-plugin.c (resolution_file): New.
167 (free_1): Update comment.
168 (free_2): Free resolution_file.
169 (write_resolution): Write resolution to specified file. Use the
170 syms array from the symbol table.
171 (all_symbols_read_handler): Delay call to free_1 past call to
173 (process_option): Add a -resolution option.
175 2009-10-13 Richard Guenther <rguenther@suse.de>
177 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
179 * Makefile.in: Regenerated.
181 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
183 * lto-plugin.c (add_input_library): New.
184 (all_symbols_read_handler): Use add_input_library for items that
186 (process_option): Fit in 80 columns.
187 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
189 2009-10-02 Diego Novillo <dnovillo@google.com>
191 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
192 and -D_FILE_OFFSET_BITS=64.
193 * configure.ac: Add AC_SYS_LARGEFILE.
194 * configure: Regenerate.
195 * Makefile.in: Regenerate.
196 * lto-plugin.c: Fix copyright boilerplate.
198 2009-10-02 Diego Novillo <dnovillo@google.com>
200 * Makefile.am (ACLOCAL_AMFLAGS): Define.
201 * aclocal.m4: Regenerate with aclocal-2.64
202 * acinclude.m4: Remove.
203 * Makefile.in: Regenerate with automake-1.11
204 * configure.ac (AC_PREREQ): Update to 2.64.
205 * configure: Regenerate.
207 2009-10-02 Diego Novillo <dnovillo@google.com>
209 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
210 and -D_FILE_OFFSET_BITS=64.
211 * configure.ac: Add AC_SYS_LARGEFILE.
212 * configure: Regenerate.
213 * Makefile.in: Regenerate.
214 * lto-plugin.c: Fix copyright boilerplate.
216 2009-10-02 Diego Novillo <dnovillo@google.com>
218 * Makefile.am (ACLOCAL_AMFLAGS): Define.
219 * aclocal.m4: Regenerate with aclocal-2.64
220 * acinclude.m4: Remove.
221 * Makefile.in: Regenerate with automake-1.11
222 * configure.ac (AC_PREREQ): Update to 2.64.
223 * configure: Regenerate.
225 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
227 * Makefile.am (liblto_plugin_la_SOURCES): Remove
228 $(top_srcdir)/../gcc/lto/common.c
229 * Makefile.in: Regenerate.
231 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
233 * lto-plugin.c (pass_through_items): New.
234 (num_pass_through_items): New.
235 (all_symbols_read_handler): Update to use the -pass-through option.
236 (process_option): Replace -libgcc with -pass-through.
238 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
240 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
241 register_cleanup to be set.
243 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
245 * Makefile.am: Remove all reference to ltosymtab.
246 * Makefile.in: Regenerate.
247 * lto-symtab.c: Remove.
249 2009-05-21 Diego Novillo <dnovillo@google.com>
251 * configure.ac: Remove call to AC_CHECK_GELF.
252 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
253 * acinclude.m4: Do not include ../config/libelf.m4
254 * Makefile.am (LIBELFLIBS): Define.
256 (AM_CPPFLAGS): Add $(LIBELFINC).
257 (ltosymtab_LDADD): Add $(LIBELFLIBS).
258 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
259 * lto-plugin.c: Always include <gelf.h>
260 * lto-symtab.c: Likewise.
261 * configure: Regenerate.
262 * Makefile.in: Regenerate.
264 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
266 * lto-plugin.c (libgcc_filename): New.
267 (all_symbols_read_handler): Pass libgcc to the linker.
268 (all_symbols_read_handler): Parse -libgcc
270 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
272 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
273 * Makefile.in: Regenerate.
274 * lto-plugin.c (add_output_files): Argument is now a FILE.
275 (exec_lto_wrapper): Use writeargv and pex.
277 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
280 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
281 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
284 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
286 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
288 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
290 * lto-plugin.c: Include libiberty.h.
291 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
294 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
296 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
299 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
301 * lto-plugin.c (plugin_file_info): Remove fd and elf.
302 (parse_table_entry): strdup entry->name and entry->comdat_key.
303 (free_1): Free name and comdat_key. Don't close the file. Don't call
305 (claim_file_handler): Always call elf_end.
307 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
309 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
310 -D_FILE_OFFSET_BITS=64
311 * Makefile.in: Regenerate
313 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
315 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
316 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
317 * Makefile.in: Regenerate.
318 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
319 * configure: Regenerate.
320 * configure.ac: Add AC_SUBST(target_noncanonical).
322 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
324 * lto-plugin.c: Include stdbool.h.
325 (debug, nop): Declare as bool.
327 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
329 * lto-plugin.c (nop): New.
330 (use_original_files): New.
331 (all_symbols_read_handler): Call use_original_files if nop is true.
332 (process_option): Parse the -nop option.
334 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
336 * lto-plugin.c (debug): New.
337 (exec_lto_wrapper): Print argv if debug is true.
338 (process_option): Process the -debug command line option.
340 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
342 * lto-plugin.c (process_option): The argument is now a single option,
343 not a space separated list.
345 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
347 * lto-plugin.c: Include sys/types.h and sys/wait.h
348 (output_files, num_output_files, lto_wrapper_argv,
349 lto_wrapper_num_args): New.
350 (free_2): Free output_files.
351 (write_resolution): Disable.
352 (add_output_files): New.
353 (exec_lto_wrapper): New.
354 (all_symbols_read_handler): Run lto-wrapper.
355 (claim_file_handler): Free lto_file.name and call elf_end.
356 (process_option): New.
358 2008-11-26 Rafael Espindola <espindola@google.com>
360 * lto-plugin.c (add_input_file): New.
361 (get_section): Return NULL if get_section fails.
362 (write_resolution): New.
363 (all_symbols_read_handler): Call add_input_file.
364 (claim_file_handler): Unlink the correct file.
365 (onload): Record add_input_file.
367 2008-09-23 Rafael Espindola <espindola@google.com>
369 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
370 Update the location of common.c.
371 * Makefile.in: Regenerate.
372 * common.c: Moved to gcc/lto.
373 * common.h: Moved to gcc/lto.
374 * lto-plugin.c: Update the location of common.h.
375 * lto-symtab.c: Update the location of common.h.
377 2008-09-23 Rafael Espindola <espindola@google.com>
379 * common.c: Include common.h.
380 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
382 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
385 2008-09-23 Rafael Espindola <espindola@google.com>
387 * lto-plugin.c (plugin_file_info): Add temp.
388 (cleanup_handler): Only delete temporary files.
389 (claim_file_handler): Initialize lto_file.temp.
391 2008-09-23 Rafael Espindola <espindola@google.com>
393 * plugin-api.h: Moved to include.
395 2008-09-23 Rafael Espindola <espindola@google.com>
397 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
400 2008-09-22 Rafael Espindola <espindola@google.com>
402 * plugin-api.h: Copy from binutils' cvs.
404 2008-09-22 Rafael Espindola <espindola@google.com>
406 * lto-symtab.c (get_symbols, add_symbols): Update signature.
407 * plugin-api.h: Copy from binutils' cvs.
409 2008-09-22 Rafael Espindola <espindola@google.com>
411 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
414 2008-09-10 Rafael Espindola <espindola@google.com>
416 * lto-plugin.c (onload): add missing break statements and asserts.
417 * lto-symtab.c (claim_file_handler): Make it static.
418 (all_symbols_read_handler): Make it static.
419 (all_file_handles): Make it static.
420 (num_file_handles): Make it static.
421 (register_claim_file): Make it static.
422 (register_object): Indent properly.
424 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
426 * Makefile.am (ltosymtab_LDADD): Add -lelf.
427 * Makefiel.in: Regenerate.
428 * lto-plugin.c: Include ar.h.
429 (claim_file_handler): Handle file->offset != 0.
430 * lto-symtab.c: Include gelf.h.
431 (all_file_handles): Change type.
432 (register_object): New.
433 (register_file): Add support for archives.
434 (resolve): Update to new type of all_file_handles.
435 (print): Update to new type of all_file_handles.
436 (free_all): Update to new type of all_file_handles.
437 (main): Update to new type of all_file_handles.
439 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
441 * lto-plugin.c (get_string_table): Remove.
442 (get_section): Use elf_strptr instead of get_string_table.
444 2008-09-08 Doug Kwan <dougkwan@google.com>
446 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
447 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
449 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
451 * Makefile.am (ltosymtab_SOURCES): add common.c.
452 (ltosymtab_CFLAGS): New.
453 (liblto_plugin_la_SOURCES): Add common.c.
454 * Makefile.in: Regenerate.
457 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
458 (plugin_symtab): New.
459 (plugin_file_info): New.
460 (register_all_symbols_read): New.
462 (claimed_files): New.
463 (num_claimed_files): New.
464 (translate): Don't drop the slot number.
467 (all_symbols_read_handler): New.
468 (claim_file_handler): Record every claimed file.
469 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
471 * lto-symtab.c: Include stdlib.h, string.h and common.h.
472 (current_file_handle): Remove.
473 (ld_plugin_all_symbols_read_handler): New.
474 (plugin_handle): New.
476 (all_file_handles): New.
477 (num_file_handles): New.
479 (register_all_symbols_read): New.
480 (add_symbols): Don't print the symbols, just record them.
481 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
483 (load_plugin): Use plugin_handle.
484 (register_file): Add the file handle to all_file_handles.
487 (unload_plugin): New.
489 (main): Call all_symbols_read_handler and free resources.
491 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
493 * Makefile.am (AM_CFLAGS): New.
494 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
495 (lib_LTLIBRARIES): New.
496 (liblto_plugin_la_SOURCES): New.
497 (liblto_plugin_la_LIBADD): New.
498 * Makefile.in: Regenerate.
499 * acinclude.m4: Don't include ../config/acx.m4 and
500 ../config/no-executables.m4.
501 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
503 * aclocal.m4: Regenerate.
504 * configure: Regenerate.
505 * configure.ac: Use AM_PROG_LIBTOOL.
507 * lto-symtab.c: Rewrite to use the plugin.
510 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
512 * configure: Regenerate.
513 * configure.ac: Use AC_CHECK_GELF.
514 * lto-symtab.c: Include gelf.h.
515 (get_string_table): Use size independent API.
516 (printTable): Use lld to print 64 bit integers.
518 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
520 * lto-symtab.c (parse_table_entry): Assert entry->kind and
521 entry->visibility are valid.
523 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
524 * lto-symtab.c (table_entry): Add comdat.
525 (parse_table_entry): Read comdat.
527 2008-08-21 Rafael Espindola <espindola@google.com>