1 2009-10-26 Richard Guenther <rguenther@suse.de>
3 * configure.ac: Use AM_MAINTAINER_MODE.
4 * acinclude.m4: Remove.
5 * configure: Re-generate.
6 * Makefile.in: Likewise.
7 * aclocal.m4: Likewise.
9 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
12 * configure: Regenerate.
13 * configure.ac: Add AC_TYPE_UINT64_T.
15 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
17 * lto-plugin.c (message): New variable.
18 (check): New function.
19 (parse_table_entry, translate, write_resolution,add_output_files,
20 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
22 (cleanup_handler): Use check instead of assert. Remove the arguments
25 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
27 * lto-plugin.c (resolution_file): New.
28 (free_1): Update comment.
29 (free_2): Free resolution_file.
30 (write_resolution): Write resolution to specified file. Use the
31 syms array from the symbol table.
32 (all_symbols_read_handler): Delay call to free_1 past call to
34 (process_option): Add a -resolution option.
36 2009-10-13 Richard Guenther <rguenther@suse.de>
38 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
40 * Makefile.in: Regenerated.
42 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
44 * lto-plugin.c (add_input_library): New.
45 (all_symbols_read_handler): Use add_input_library for items that
47 (process_option): Fit in 80 columns.
48 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
50 2009-10-02 Diego Novillo <dnovillo@google.com>
52 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
53 and -D_FILE_OFFSET_BITS=64.
54 * configure.ac: Add AC_SYS_LARGEFILE.
55 * configure: Regenerate.
56 * Makefile.in: Regenerate.
57 * lto-plugin.c: Fix copyright boilerplate.
59 2009-10-02 Diego Novillo <dnovillo@google.com>
61 * Makefile.am (ACLOCAL_AMFLAGS): Define.
62 * aclocal.m4: Regenerate with aclocal-2.64
63 * acinclude.m4: Remove.
64 * Makefile.in: Regenerate with automake-1.11
65 * configure.ac (AC_PREREQ): Update to 2.64.
66 * configure: Regenerate.
68 2009-10-02 Diego Novillo <dnovillo@google.com>
70 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
71 and -D_FILE_OFFSET_BITS=64.
72 * configure.ac: Add AC_SYS_LARGEFILE.
73 * configure: Regenerate.
74 * Makefile.in: Regenerate.
75 * lto-plugin.c: Fix copyright boilerplate.
77 2009-10-02 Diego Novillo <dnovillo@google.com>
79 * Makefile.am (ACLOCAL_AMFLAGS): Define.
80 * aclocal.m4: Regenerate with aclocal-2.64
81 * acinclude.m4: Remove.
82 * Makefile.in: Regenerate with automake-1.11
83 * configure.ac (AC_PREREQ): Update to 2.64.
84 * configure: Regenerate.
86 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
88 * Makefile.am (liblto_plugin_la_SOURCES): Remove
89 $(top_srcdir)/../gcc/lto/common.c
90 * Makefile.in: Regenerate.
92 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
94 * lto-plugin.c (pass_through_items): New.
95 (num_pass_through_items): New.
96 (all_symbols_read_handler): Update to use the -pass-through option.
97 (process_option): Replace -libgcc with -pass-through.
99 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
101 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
102 register_cleanup to be set.
104 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
106 * Makefile.am: Remove all reference to ltosymtab.
107 * Makefile.in: Regenerate.
108 * lto-symtab.c: Remove.
110 2009-05-21 Diego Novillo <dnovillo@google.com>
112 * configure.ac: Remove call to AC_CHECK_GELF.
113 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
114 * acinclude.m4: Do not include ../config/libelf.m4
115 * Makefile.am (LIBELFLIBS): Define.
117 (AM_CPPFLAGS): Add $(LIBELFINC).
118 (ltosymtab_LDADD): Add $(LIBELFLIBS).
119 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
120 * lto-plugin.c: Always include <gelf.h>
121 * lto-symtab.c: Likewise.
122 * configure: Regenerate.
123 * Makefile.in: Regenerate.
125 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
127 * lto-plugin.c (libgcc_filename): New.
128 (all_symbols_read_handler): Pass libgcc to the linker.
129 (all_symbols_read_handler): Parse -libgcc
131 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
133 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
134 * Makefile.in: Regenerate.
135 * lto-plugin.c (add_output_files): Argument is now a FILE.
136 (exec_lto_wrapper): Use writeargv and pex.
138 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
141 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
142 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
145 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
147 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
149 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
151 * lto-plugin.c: Include libiberty.h.
152 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
155 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
157 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
160 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
162 * lto-plugin.c (plugin_file_info): Remove fd and elf.
163 (parse_table_entry): strdup entry->name and entry->comdat_key.
164 (free_1): Free name and comdat_key. Don't close the file. Don't call
166 (claim_file_handler): Always call elf_end.
168 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
170 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
171 -D_FILE_OFFSET_BITS=64
172 * Makefile.in: Regenerate
174 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
176 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
177 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
178 * Makefile.in: Regenerate.
179 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
180 * configure: Regenerate.
181 * configure.ac: Add AC_SUBST(target_noncanonical).
183 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
185 * lto-plugin.c: Include stdbool.h.
186 (debug, nop): Declare as bool.
188 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
190 * lto-plugin.c (nop): New.
191 (use_original_files): New.
192 (all_symbols_read_handler): Call use_original_files if nop is true.
193 (process_option): Parse the -nop option.
195 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
197 * lto-plugin.c (debug): New.
198 (exec_lto_wrapper): Print argv if debug is true.
199 (process_option): Process the -debug command line option.
201 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
203 * lto-plugin.c (process_option): The argument is now a single option,
204 not a space separated list.
206 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
208 * lto-plugin.c: Include sys/types.h and sys/wait.h
209 (output_files, num_output_files, lto_wrapper_argv,
210 lto_wrapper_num_args): New.
211 (free_2): Free output_files.
212 (write_resolution): Disable.
213 (add_output_files): New.
214 (exec_lto_wrapper): New.
215 (all_symbols_read_handler): Run lto-wrapper.
216 (claim_file_handler): Free lto_file.name and call elf_end.
217 (process_option): New.
219 2008-11-26 Rafael Espindola <espindola@google.com>
221 * lto-plugin.c (add_input_file): New.
222 (get_section): Return NULL if get_section fails.
223 (write_resolution): New.
224 (all_symbols_read_handler): Call add_input_file.
225 (claim_file_handler): Unlink the correct file.
226 (onload): Record add_input_file.
228 2008-09-23 Rafael Espindola <espindola@google.com>
230 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
231 Update the location of common.c.
232 * Makefile.in: Regenerate.
233 * common.c: Moved to gcc/lto.
234 * common.h: Moved to gcc/lto.
235 * lto-plugin.c: Update the location of common.h.
236 * lto-symtab.c: Update the location of common.h.
238 2008-09-23 Rafael Espindola <espindola@google.com>
240 * common.c: Include common.h.
241 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
243 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
246 2008-09-23 Rafael Espindola <espindola@google.com>
248 * lto-plugin.c (plugin_file_info): Add temp.
249 (cleanup_handler): Only delete temporary files.
250 (claim_file_handler): Initialize lto_file.temp.
252 2008-09-23 Rafael Espindola <espindola@google.com>
254 * plugin-api.h: Moved to include.
256 2008-09-23 Rafael Espindola <espindola@google.com>
258 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
261 2008-09-22 Rafael Espindola <espindola@google.com>
263 * plugin-api.h: Copy from binutils' cvs.
265 2008-09-22 Rafael Espindola <espindola@google.com>
267 * lto-symtab.c (get_symbols, add_symbols): Update signature.
268 * plugin-api.h: Copy from binutils' cvs.
270 2008-09-22 Rafael Espindola <espindola@google.com>
272 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
275 2008-09-10 Rafael Espindola <espindola@google.com>
277 * lto-plugin.c (onload): add missing break statements and asserts.
278 * lto-symtab.c (claim_file_handler): Make it static.
279 (all_symbols_read_handler): Make it static.
280 (all_file_handles): Make it static.
281 (num_file_handles): Make it static.
282 (register_claim_file): Make it static.
283 (register_object): Indent properly.
285 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
287 * Makefile.am (ltosymtab_LDADD): Add -lelf.
288 * Makefiel.in: Regenerate.
289 * lto-plugin.c: Include ar.h.
290 (claim_file_handler): Handle file->offset != 0.
291 * lto-symtab.c: Include gelf.h.
292 (all_file_handles): Change type.
293 (register_object): New.
294 (register_file): Add support for archives.
295 (resolve): Update to new type of all_file_handles.
296 (print): Update to new type of all_file_handles.
297 (free_all): Update to new type of all_file_handles.
298 (main): Update to new type of all_file_handles.
300 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
302 * lto-plugin.c (get_string_table): Remove.
303 (get_section): Use elf_strptr instead of get_string_table.
305 2008-09-08 Doug Kwan <dougkwan@google.com>
307 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
308 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
310 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
312 * Makefile.am (ltosymtab_SOURCES): add common.c.
313 (ltosymtab_CFLAGS): New.
314 (liblto_plugin_la_SOURCES): Add common.c.
315 * Makefile.in: Regenerate.
318 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
319 (plugin_symtab): New.
320 (plugin_file_info): New.
321 (register_all_symbols_read): New.
323 (claimed_files): New.
324 (num_claimed_files): New.
325 (translate): Don't drop the slot number.
328 (all_symbols_read_handler): New.
329 (claim_file_handler): Record every claimed file.
330 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
332 * lto-symtab.c: Include stdlib.h, string.h and common.h.
333 (current_file_handle): Remove.
334 (ld_plugin_all_symbols_read_handler): New.
335 (plugin_handle): New.
337 (all_file_handles): New.
338 (num_file_handles): New.
340 (register_all_symbols_read): New.
341 (add_symbols): Don't print the symbols, just record them.
342 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
344 (load_plugin): Use plugin_handle.
345 (register_file): Add the file handle to all_file_handles.
348 (unload_plugin): New.
350 (main): Call all_symbols_read_handler and free resources.
352 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
354 * Makefile.am (AM_CFLAGS): New.
355 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
356 (lib_LTLIBRARIES): New.
357 (liblto_plugin_la_SOURCES): New.
358 (liblto_plugin_la_LIBADD): New.
359 * Makefile.in: Regenerate.
360 * acinclude.m4: Don't include ../config/acx.m4 and
361 ../config/no-executables.m4.
362 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
364 * aclocal.m4: Regenerate.
365 * configure: Regenerate.
366 * configure.ac: Use AM_PROG_LIBTOOL.
368 * lto-symtab.c: Rewrite to use the plugin.
371 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
373 * configure: Regenerate.
374 * configure.ac: Use AC_CHECK_GELF.
375 * lto-symtab.c: Include gelf.h.
376 (get_string_table): Use size independent API.
377 (printTable): Use lld to print 64 bit integers.
379 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
381 * lto-symtab.c (parse_table_entry): Assert entry->kind and
382 entry->visibility are valid.
384 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
385 * lto-symtab.c (table_entry): Add comdat.
386 (parse_table_entry): Read comdat.
388 2008-08-21 Rafael Espindola <espindola@google.com>