1 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
5 * Makefile.in: Regenerate.
7 2010-04-23 Richard Guenther <rguenther@suse.de>
10 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
11 (translate): Likewise.
12 (all_symbols_read_handler): Likewise.
13 (claim_file_handler): Likewise.
14 (process_option): Likewise.
15 (add_output_files): Likewise. Remove filename length limit.
17 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19 * Makefile.in: Regenerate.
20 * aclocal.m4: Regenerate.
22 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
25 * lto-plugin.c (cleanup_handler): Delete temporary output files.
27 2010-01-11 Richard Guenther <rguenther@suse.de>
30 * Makefile.am: Disable dependencies.
31 * Makefile.in: Regenerated.
33 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
36 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
39 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
42 * configure: Regenerated.
43 * Makefile.in: Likewise.
45 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
48 * lto-plugin.c (claim_file_handler): Print offsets in hex.
50 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
52 * lto-plugin.c (write_resolution): Assume resolution_file is set.
53 Print the symbol name.
54 (all_symbols_read_handler): Create a resolution file.
56 (cleanup_handler): Remove the resolution file.
57 (process_option): Drop the -resolution option.
59 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
61 * lto-plugin.c (temp_obj_dir_name): Remove.
62 (arguments_file_name): New.
63 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
64 (exec_lto_wrapper): Create arguments file with make_temp_file.
65 (cleanup_handler): Don't remove the temporary directory. Remove the
67 (onload): Don't create the temporary directory.
69 2009-11-04 Richard Guenther <rguenther@suse.de>
70 Rafael Avila de Espindola <espindola@google.com>
72 * lto-plugin.c (plugin_file_info): Remove temp field.
73 (cleanup_handler): Don't delete temporary objects.
74 (claim_file_handler): Don't create temporary objects.
76 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
78 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
80 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
83 * lto-plugin.c (claim_file_handler): Close files that we created.
85 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
87 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
90 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
93 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
94 * configure: Regenerate.
96 2009-10-26 Richard Guenther <rguenther@suse.de>
98 * configure.ac: Use AM_MAINTAINER_MODE.
99 * acinclude.m4: Remove.
100 * configure: Re-generate.
101 * Makefile.in: Likewise.
102 * aclocal.m4: Likewise.
104 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
107 * configure: Regenerate.
108 * configure.ac: Add AC_TYPE_UINT64_T.
110 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
112 * lto-plugin.c (message): New variable.
113 (check): New function.
114 (parse_table_entry, translate, write_resolution,add_output_files,
115 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
117 (cleanup_handler): Use check instead of assert. Remove the arguments
120 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
122 * lto-plugin.c (resolution_file): New.
123 (free_1): Update comment.
124 (free_2): Free resolution_file.
125 (write_resolution): Write resolution to specified file. Use the
126 syms array from the symbol table.
127 (all_symbols_read_handler): Delay call to free_1 past call to
129 (process_option): Add a -resolution option.
131 2009-10-13 Richard Guenther <rguenther@suse.de>
133 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
135 * Makefile.in: Regenerated.
137 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
139 * lto-plugin.c (add_input_library): New.
140 (all_symbols_read_handler): Use add_input_library for items that
142 (process_option): Fit in 80 columns.
143 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
145 2009-10-02 Diego Novillo <dnovillo@google.com>
147 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
148 and -D_FILE_OFFSET_BITS=64.
149 * configure.ac: Add AC_SYS_LARGEFILE.
150 * configure: Regenerate.
151 * Makefile.in: Regenerate.
152 * lto-plugin.c: Fix copyright boilerplate.
154 2009-10-02 Diego Novillo <dnovillo@google.com>
156 * Makefile.am (ACLOCAL_AMFLAGS): Define.
157 * aclocal.m4: Regenerate with aclocal-2.64
158 * acinclude.m4: Remove.
159 * Makefile.in: Regenerate with automake-1.11
160 * configure.ac (AC_PREREQ): Update to 2.64.
161 * configure: Regenerate.
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 Rafael Avila de Espindola <espindola@google.com>
183 * Makefile.am (liblto_plugin_la_SOURCES): Remove
184 $(top_srcdir)/../gcc/lto/common.c
185 * Makefile.in: Regenerate.
187 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
189 * lto-plugin.c (pass_through_items): New.
190 (num_pass_through_items): New.
191 (all_symbols_read_handler): Update to use the -pass-through option.
192 (process_option): Replace -libgcc with -pass-through.
194 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
196 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
197 register_cleanup to be set.
199 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
201 * Makefile.am: Remove all reference to ltosymtab.
202 * Makefile.in: Regenerate.
203 * lto-symtab.c: Remove.
205 2009-05-21 Diego Novillo <dnovillo@google.com>
207 * configure.ac: Remove call to AC_CHECK_GELF.
208 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
209 * acinclude.m4: Do not include ../config/libelf.m4
210 * Makefile.am (LIBELFLIBS): Define.
212 (AM_CPPFLAGS): Add $(LIBELFINC).
213 (ltosymtab_LDADD): Add $(LIBELFLIBS).
214 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
215 * lto-plugin.c: Always include <gelf.h>
216 * lto-symtab.c: Likewise.
217 * configure: Regenerate.
218 * Makefile.in: Regenerate.
220 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
222 * lto-plugin.c (libgcc_filename): New.
223 (all_symbols_read_handler): Pass libgcc to the linker.
224 (all_symbols_read_handler): Parse -libgcc
226 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
228 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
229 * Makefile.in: Regenerate.
230 * lto-plugin.c (add_output_files): Argument is now a FILE.
231 (exec_lto_wrapper): Use writeargv and pex.
233 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
236 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
237 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
240 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
242 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
244 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
246 * lto-plugin.c: Include libiberty.h.
247 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
250 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
252 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
255 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
257 * lto-plugin.c (plugin_file_info): Remove fd and elf.
258 (parse_table_entry): strdup entry->name and entry->comdat_key.
259 (free_1): Free name and comdat_key. Don't close the file. Don't call
261 (claim_file_handler): Always call elf_end.
263 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
265 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
266 -D_FILE_OFFSET_BITS=64
267 * Makefile.in: Regenerate
269 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
271 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
272 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
273 * Makefile.in: Regenerate.
274 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
275 * configure: Regenerate.
276 * configure.ac: Add AC_SUBST(target_noncanonical).
278 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
280 * lto-plugin.c: Include stdbool.h.
281 (debug, nop): Declare as bool.
283 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
285 * lto-plugin.c (nop): New.
286 (use_original_files): New.
287 (all_symbols_read_handler): Call use_original_files if nop is true.
288 (process_option): Parse the -nop option.
290 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
292 * lto-plugin.c (debug): New.
293 (exec_lto_wrapper): Print argv if debug is true.
294 (process_option): Process the -debug command line option.
296 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
298 * lto-plugin.c (process_option): The argument is now a single option,
299 not a space separated list.
301 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
303 * lto-plugin.c: Include sys/types.h and sys/wait.h
304 (output_files, num_output_files, lto_wrapper_argv,
305 lto_wrapper_num_args): New.
306 (free_2): Free output_files.
307 (write_resolution): Disable.
308 (add_output_files): New.
309 (exec_lto_wrapper): New.
310 (all_symbols_read_handler): Run lto-wrapper.
311 (claim_file_handler): Free lto_file.name and call elf_end.
312 (process_option): New.
314 2008-11-26 Rafael Espindola <espindola@google.com>
316 * lto-plugin.c (add_input_file): New.
317 (get_section): Return NULL if get_section fails.
318 (write_resolution): New.
319 (all_symbols_read_handler): Call add_input_file.
320 (claim_file_handler): Unlink the correct file.
321 (onload): Record add_input_file.
323 2008-09-23 Rafael Espindola <espindola@google.com>
325 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
326 Update the location of common.c.
327 * Makefile.in: Regenerate.
328 * common.c: Moved to gcc/lto.
329 * common.h: Moved to gcc/lto.
330 * lto-plugin.c: Update the location of common.h.
331 * lto-symtab.c: Update the location of common.h.
333 2008-09-23 Rafael Espindola <espindola@google.com>
335 * common.c: Include common.h.
336 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
338 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
341 2008-09-23 Rafael Espindola <espindola@google.com>
343 * lto-plugin.c (plugin_file_info): Add temp.
344 (cleanup_handler): Only delete temporary files.
345 (claim_file_handler): Initialize lto_file.temp.
347 2008-09-23 Rafael Espindola <espindola@google.com>
349 * plugin-api.h: Moved to include.
351 2008-09-23 Rafael Espindola <espindola@google.com>
353 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
356 2008-09-22 Rafael Espindola <espindola@google.com>
358 * plugin-api.h: Copy from binutils' cvs.
360 2008-09-22 Rafael Espindola <espindola@google.com>
362 * lto-symtab.c (get_symbols, add_symbols): Update signature.
363 * plugin-api.h: Copy from binutils' cvs.
365 2008-09-22 Rafael Espindola <espindola@google.com>
367 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
370 2008-09-10 Rafael Espindola <espindola@google.com>
372 * lto-plugin.c (onload): add missing break statements and asserts.
373 * lto-symtab.c (claim_file_handler): Make it static.
374 (all_symbols_read_handler): Make it static.
375 (all_file_handles): Make it static.
376 (num_file_handles): Make it static.
377 (register_claim_file): Make it static.
378 (register_object): Indent properly.
380 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
382 * Makefile.am (ltosymtab_LDADD): Add -lelf.
383 * Makefiel.in: Regenerate.
384 * lto-plugin.c: Include ar.h.
385 (claim_file_handler): Handle file->offset != 0.
386 * lto-symtab.c: Include gelf.h.
387 (all_file_handles): Change type.
388 (register_object): New.
389 (register_file): Add support for archives.
390 (resolve): Update to new type of all_file_handles.
391 (print): Update to new type of all_file_handles.
392 (free_all): Update to new type of all_file_handles.
393 (main): Update to new type of all_file_handles.
395 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
397 * lto-plugin.c (get_string_table): Remove.
398 (get_section): Use elf_strptr instead of get_string_table.
400 2008-09-08 Doug Kwan <dougkwan@google.com>
402 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
403 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
405 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
407 * Makefile.am (ltosymtab_SOURCES): add common.c.
408 (ltosymtab_CFLAGS): New.
409 (liblto_plugin_la_SOURCES): Add common.c.
410 * Makefile.in: Regenerate.
413 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
414 (plugin_symtab): New.
415 (plugin_file_info): New.
416 (register_all_symbols_read): New.
418 (claimed_files): New.
419 (num_claimed_files): New.
420 (translate): Don't drop the slot number.
423 (all_symbols_read_handler): New.
424 (claim_file_handler): Record every claimed file.
425 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
427 * lto-symtab.c: Include stdlib.h, string.h and common.h.
428 (current_file_handle): Remove.
429 (ld_plugin_all_symbols_read_handler): New.
430 (plugin_handle): New.
432 (all_file_handles): New.
433 (num_file_handles): New.
435 (register_all_symbols_read): New.
436 (add_symbols): Don't print the symbols, just record them.
437 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
439 (load_plugin): Use plugin_handle.
440 (register_file): Add the file handle to all_file_handles.
443 (unload_plugin): New.
445 (main): Call all_symbols_read_handler and free resources.
447 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
449 * Makefile.am (AM_CFLAGS): New.
450 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
451 (lib_LTLIBRARIES): New.
452 (liblto_plugin_la_SOURCES): New.
453 (liblto_plugin_la_LIBADD): New.
454 * Makefile.in: Regenerate.
455 * acinclude.m4: Don't include ../config/acx.m4 and
456 ../config/no-executables.m4.
457 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
459 * aclocal.m4: Regenerate.
460 * configure: Regenerate.
461 * configure.ac: Use AM_PROG_LIBTOOL.
463 * lto-symtab.c: Rewrite to use the plugin.
466 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
468 * configure: Regenerate.
469 * configure.ac: Use AC_CHECK_GELF.
470 * lto-symtab.c: Include gelf.h.
471 (get_string_table): Use size independent API.
472 (printTable): Use lld to print 64 bit integers.
474 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
476 * lto-symtab.c (parse_table_entry): Assert entry->kind and
477 entry->visibility are valid.
479 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
480 * lto-symtab.c (table_entry): Add comdat.
481 (parse_table_entry): Read comdat.
483 2008-08-21 Rafael Espindola <espindola@google.com>