1 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
3 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
6 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
9 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
10 * configure: Regenerate.
12 2009-10-26 Richard Guenther <rguenther@suse.de>
14 * configure.ac: Use AM_MAINTAINER_MODE.
15 * acinclude.m4: Remove.
16 * configure: Re-generate.
17 * Makefile.in: Likewise.
18 * aclocal.m4: Likewise.
20 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
23 * configure: Regenerate.
24 * configure.ac: Add AC_TYPE_UINT64_T.
26 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
28 * lto-plugin.c (message): New variable.
29 (check): New function.
30 (parse_table_entry, translate, write_resolution,add_output_files,
31 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
33 (cleanup_handler): Use check instead of assert. Remove the arguments
36 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
38 * lto-plugin.c (resolution_file): New.
39 (free_1): Update comment.
40 (free_2): Free resolution_file.
41 (write_resolution): Write resolution to specified file. Use the
42 syms array from the symbol table.
43 (all_symbols_read_handler): Delay call to free_1 past call to
45 (process_option): Add a -resolution option.
47 2009-10-13 Richard Guenther <rguenther@suse.de>
49 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
51 * Makefile.in: Regenerated.
53 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
55 * lto-plugin.c (add_input_library): New.
56 (all_symbols_read_handler): Use add_input_library for items that
58 (process_option): Fit in 80 columns.
59 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
61 2009-10-02 Diego Novillo <dnovillo@google.com>
63 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
64 and -D_FILE_OFFSET_BITS=64.
65 * configure.ac: Add AC_SYS_LARGEFILE.
66 * configure: Regenerate.
67 * Makefile.in: Regenerate.
68 * lto-plugin.c: Fix copyright boilerplate.
70 2009-10-02 Diego Novillo <dnovillo@google.com>
72 * Makefile.am (ACLOCAL_AMFLAGS): Define.
73 * aclocal.m4: Regenerate with aclocal-2.64
74 * acinclude.m4: Remove.
75 * Makefile.in: Regenerate with automake-1.11
76 * configure.ac (AC_PREREQ): Update to 2.64.
77 * configure: Regenerate.
79 2009-10-02 Diego Novillo <dnovillo@google.com>
81 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
82 and -D_FILE_OFFSET_BITS=64.
83 * configure.ac: Add AC_SYS_LARGEFILE.
84 * configure: Regenerate.
85 * Makefile.in: Regenerate.
86 * lto-plugin.c: Fix copyright boilerplate.
88 2009-10-02 Diego Novillo <dnovillo@google.com>
90 * Makefile.am (ACLOCAL_AMFLAGS): Define.
91 * aclocal.m4: Regenerate with aclocal-2.64
92 * acinclude.m4: Remove.
93 * Makefile.in: Regenerate with automake-1.11
94 * configure.ac (AC_PREREQ): Update to 2.64.
95 * configure: Regenerate.
97 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
99 * Makefile.am (liblto_plugin_la_SOURCES): Remove
100 $(top_srcdir)/../gcc/lto/common.c
101 * Makefile.in: Regenerate.
103 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
105 * lto-plugin.c (pass_through_items): New.
106 (num_pass_through_items): New.
107 (all_symbols_read_handler): Update to use the -pass-through option.
108 (process_option): Replace -libgcc with -pass-through.
110 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
112 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
113 register_cleanup to be set.
115 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
117 * Makefile.am: Remove all reference to ltosymtab.
118 * Makefile.in: Regenerate.
119 * lto-symtab.c: Remove.
121 2009-05-21 Diego Novillo <dnovillo@google.com>
123 * configure.ac: Remove call to AC_CHECK_GELF.
124 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
125 * acinclude.m4: Do not include ../config/libelf.m4
126 * Makefile.am (LIBELFLIBS): Define.
128 (AM_CPPFLAGS): Add $(LIBELFINC).
129 (ltosymtab_LDADD): Add $(LIBELFLIBS).
130 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
131 * lto-plugin.c: Always include <gelf.h>
132 * lto-symtab.c: Likewise.
133 * configure: Regenerate.
134 * Makefile.in: Regenerate.
136 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
138 * lto-plugin.c (libgcc_filename): New.
139 (all_symbols_read_handler): Pass libgcc to the linker.
140 (all_symbols_read_handler): Parse -libgcc
142 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
144 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
145 * Makefile.in: Regenerate.
146 * lto-plugin.c (add_output_files): Argument is now a FILE.
147 (exec_lto_wrapper): Use writeargv and pex.
149 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
152 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
153 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
156 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
158 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
160 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
162 * lto-plugin.c: Include libiberty.h.
163 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
166 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
168 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
171 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
173 * lto-plugin.c (plugin_file_info): Remove fd and elf.
174 (parse_table_entry): strdup entry->name and entry->comdat_key.
175 (free_1): Free name and comdat_key. Don't close the file. Don't call
177 (claim_file_handler): Always call elf_end.
179 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
181 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
182 -D_FILE_OFFSET_BITS=64
183 * Makefile.in: Regenerate
185 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
187 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
188 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
189 * Makefile.in: Regenerate.
190 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
191 * configure: Regenerate.
192 * configure.ac: Add AC_SUBST(target_noncanonical).
194 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
196 * lto-plugin.c: Include stdbool.h.
197 (debug, nop): Declare as bool.
199 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
201 * lto-plugin.c (nop): New.
202 (use_original_files): New.
203 (all_symbols_read_handler): Call use_original_files if nop is true.
204 (process_option): Parse the -nop option.
206 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
208 * lto-plugin.c (debug): New.
209 (exec_lto_wrapper): Print argv if debug is true.
210 (process_option): Process the -debug command line option.
212 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
214 * lto-plugin.c (process_option): The argument is now a single option,
215 not a space separated list.
217 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
219 * lto-plugin.c: Include sys/types.h and sys/wait.h
220 (output_files, num_output_files, lto_wrapper_argv,
221 lto_wrapper_num_args): New.
222 (free_2): Free output_files.
223 (write_resolution): Disable.
224 (add_output_files): New.
225 (exec_lto_wrapper): New.
226 (all_symbols_read_handler): Run lto-wrapper.
227 (claim_file_handler): Free lto_file.name and call elf_end.
228 (process_option): New.
230 2008-11-26 Rafael Espindola <espindola@google.com>
232 * lto-plugin.c (add_input_file): New.
233 (get_section): Return NULL if get_section fails.
234 (write_resolution): New.
235 (all_symbols_read_handler): Call add_input_file.
236 (claim_file_handler): Unlink the correct file.
237 (onload): Record add_input_file.
239 2008-09-23 Rafael Espindola <espindola@google.com>
241 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
242 Update the location of common.c.
243 * Makefile.in: Regenerate.
244 * common.c: Moved to gcc/lto.
245 * common.h: Moved to gcc/lto.
246 * lto-plugin.c: Update the location of common.h.
247 * lto-symtab.c: Update the location of common.h.
249 2008-09-23 Rafael Espindola <espindola@google.com>
251 * common.c: Include common.h.
252 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
254 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
257 2008-09-23 Rafael Espindola <espindola@google.com>
259 * lto-plugin.c (plugin_file_info): Add temp.
260 (cleanup_handler): Only delete temporary files.
261 (claim_file_handler): Initialize lto_file.temp.
263 2008-09-23 Rafael Espindola <espindola@google.com>
265 * plugin-api.h: Moved to include.
267 2008-09-23 Rafael Espindola <espindola@google.com>
269 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
272 2008-09-22 Rafael Espindola <espindola@google.com>
274 * plugin-api.h: Copy from binutils' cvs.
276 2008-09-22 Rafael Espindola <espindola@google.com>
278 * lto-symtab.c (get_symbols, add_symbols): Update signature.
279 * plugin-api.h: Copy from binutils' cvs.
281 2008-09-22 Rafael Espindola <espindola@google.com>
283 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
286 2008-09-10 Rafael Espindola <espindola@google.com>
288 * lto-plugin.c (onload): add missing break statements and asserts.
289 * lto-symtab.c (claim_file_handler): Make it static.
290 (all_symbols_read_handler): Make it static.
291 (all_file_handles): Make it static.
292 (num_file_handles): Make it static.
293 (register_claim_file): Make it static.
294 (register_object): Indent properly.
296 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
298 * Makefile.am (ltosymtab_LDADD): Add -lelf.
299 * Makefiel.in: Regenerate.
300 * lto-plugin.c: Include ar.h.
301 (claim_file_handler): Handle file->offset != 0.
302 * lto-symtab.c: Include gelf.h.
303 (all_file_handles): Change type.
304 (register_object): New.
305 (register_file): Add support for archives.
306 (resolve): Update to new type of all_file_handles.
307 (print): Update to new type of all_file_handles.
308 (free_all): Update to new type of all_file_handles.
309 (main): Update to new type of all_file_handles.
311 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
313 * lto-plugin.c (get_string_table): Remove.
314 (get_section): Use elf_strptr instead of get_string_table.
316 2008-09-08 Doug Kwan <dougkwan@google.com>
318 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
319 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
321 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
323 * Makefile.am (ltosymtab_SOURCES): add common.c.
324 (ltosymtab_CFLAGS): New.
325 (liblto_plugin_la_SOURCES): Add common.c.
326 * Makefile.in: Regenerate.
329 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
330 (plugin_symtab): New.
331 (plugin_file_info): New.
332 (register_all_symbols_read): New.
334 (claimed_files): New.
335 (num_claimed_files): New.
336 (translate): Don't drop the slot number.
339 (all_symbols_read_handler): New.
340 (claim_file_handler): Record every claimed file.
341 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
343 * lto-symtab.c: Include stdlib.h, string.h and common.h.
344 (current_file_handle): Remove.
345 (ld_plugin_all_symbols_read_handler): New.
346 (plugin_handle): New.
348 (all_file_handles): New.
349 (num_file_handles): New.
351 (register_all_symbols_read): New.
352 (add_symbols): Don't print the symbols, just record them.
353 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
355 (load_plugin): Use plugin_handle.
356 (register_file): Add the file handle to all_file_handles.
359 (unload_plugin): New.
361 (main): Call all_symbols_read_handler and free resources.
363 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
365 * Makefile.am (AM_CFLAGS): New.
366 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
367 (lib_LTLIBRARIES): New.
368 (liblto_plugin_la_SOURCES): New.
369 (liblto_plugin_la_LIBADD): New.
370 * Makefile.in: Regenerate.
371 * acinclude.m4: Don't include ../config/acx.m4 and
372 ../config/no-executables.m4.
373 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
375 * aclocal.m4: Regenerate.
376 * configure: Regenerate.
377 * configure.ac: Use AM_PROG_LIBTOOL.
379 * lto-symtab.c: Rewrite to use the plugin.
382 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
384 * configure: Regenerate.
385 * configure.ac: Use AC_CHECK_GELF.
386 * lto-symtab.c: Include gelf.h.
387 (get_string_table): Use size independent API.
388 (printTable): Use lld to print 64 bit integers.
390 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
392 * lto-symtab.c (parse_table_entry): Assert entry->kind and
393 entry->visibility are valid.
395 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
396 * lto-symtab.c (table_entry): Add comdat.
397 (parse_table_entry): Read comdat.
399 2008-08-21 Rafael Espindola <espindola@google.com>