1 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
4 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
5 * configure: Regenerate.
7 2009-10-26 Richard Guenther <rguenther@suse.de>
9 * configure.ac: Use AM_MAINTAINER_MODE.
10 * acinclude.m4: Remove.
11 * configure: Re-generate.
12 * Makefile.in: Likewise.
13 * aclocal.m4: Likewise.
15 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
18 * configure: Regenerate.
19 * configure.ac: Add AC_TYPE_UINT64_T.
21 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
23 * lto-plugin.c (message): New variable.
24 (check): New function.
25 (parse_table_entry, translate, write_resolution,add_output_files,
26 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
28 (cleanup_handler): Use check instead of assert. Remove the arguments
31 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
33 * lto-plugin.c (resolution_file): New.
34 (free_1): Update comment.
35 (free_2): Free resolution_file.
36 (write_resolution): Write resolution to specified file. Use the
37 syms array from the symbol table.
38 (all_symbols_read_handler): Delay call to free_1 past call to
40 (process_option): Add a -resolution option.
42 2009-10-13 Richard Guenther <rguenther@suse.de>
44 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
46 * Makefile.in: Regenerated.
48 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
50 * lto-plugin.c (add_input_library): New.
51 (all_symbols_read_handler): Use add_input_library for items that
53 (process_option): Fit in 80 columns.
54 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
56 2009-10-02 Diego Novillo <dnovillo@google.com>
58 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
59 and -D_FILE_OFFSET_BITS=64.
60 * configure.ac: Add AC_SYS_LARGEFILE.
61 * configure: Regenerate.
62 * Makefile.in: Regenerate.
63 * lto-plugin.c: Fix copyright boilerplate.
65 2009-10-02 Diego Novillo <dnovillo@google.com>
67 * Makefile.am (ACLOCAL_AMFLAGS): Define.
68 * aclocal.m4: Regenerate with aclocal-2.64
69 * acinclude.m4: Remove.
70 * Makefile.in: Regenerate with automake-1.11
71 * configure.ac (AC_PREREQ): Update to 2.64.
72 * configure: Regenerate.
74 2009-10-02 Diego Novillo <dnovillo@google.com>
76 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
77 and -D_FILE_OFFSET_BITS=64.
78 * configure.ac: Add AC_SYS_LARGEFILE.
79 * configure: Regenerate.
80 * Makefile.in: Regenerate.
81 * lto-plugin.c: Fix copyright boilerplate.
83 2009-10-02 Diego Novillo <dnovillo@google.com>
85 * Makefile.am (ACLOCAL_AMFLAGS): Define.
86 * aclocal.m4: Regenerate with aclocal-2.64
87 * acinclude.m4: Remove.
88 * Makefile.in: Regenerate with automake-1.11
89 * configure.ac (AC_PREREQ): Update to 2.64.
90 * configure: Regenerate.
92 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
94 * Makefile.am (liblto_plugin_la_SOURCES): Remove
95 $(top_srcdir)/../gcc/lto/common.c
96 * Makefile.in: Regenerate.
98 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
100 * lto-plugin.c (pass_through_items): New.
101 (num_pass_through_items): New.
102 (all_symbols_read_handler): Update to use the -pass-through option.
103 (process_option): Replace -libgcc with -pass-through.
105 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
107 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
108 register_cleanup to be set.
110 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
112 * Makefile.am: Remove all reference to ltosymtab.
113 * Makefile.in: Regenerate.
114 * lto-symtab.c: Remove.
116 2009-05-21 Diego Novillo <dnovillo@google.com>
118 * configure.ac: Remove call to AC_CHECK_GELF.
119 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
120 * acinclude.m4: Do not include ../config/libelf.m4
121 * Makefile.am (LIBELFLIBS): Define.
123 (AM_CPPFLAGS): Add $(LIBELFINC).
124 (ltosymtab_LDADD): Add $(LIBELFLIBS).
125 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
126 * lto-plugin.c: Always include <gelf.h>
127 * lto-symtab.c: Likewise.
128 * configure: Regenerate.
129 * Makefile.in: Regenerate.
131 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
133 * lto-plugin.c (libgcc_filename): New.
134 (all_symbols_read_handler): Pass libgcc to the linker.
135 (all_symbols_read_handler): Parse -libgcc
137 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
139 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
140 * Makefile.in: Regenerate.
141 * lto-plugin.c (add_output_files): Argument is now a FILE.
142 (exec_lto_wrapper): Use writeargv and pex.
144 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
147 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
148 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
151 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
153 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
155 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
157 * lto-plugin.c: Include libiberty.h.
158 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
161 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
163 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
166 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
168 * lto-plugin.c (plugin_file_info): Remove fd and elf.
169 (parse_table_entry): strdup entry->name and entry->comdat_key.
170 (free_1): Free name and comdat_key. Don't close the file. Don't call
172 (claim_file_handler): Always call elf_end.
174 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
176 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
177 -D_FILE_OFFSET_BITS=64
178 * Makefile.in: Regenerate
180 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
182 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
183 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
184 * Makefile.in: Regenerate.
185 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
186 * configure: Regenerate.
187 * configure.ac: Add AC_SUBST(target_noncanonical).
189 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
191 * lto-plugin.c: Include stdbool.h.
192 (debug, nop): Declare as bool.
194 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
196 * lto-plugin.c (nop): New.
197 (use_original_files): New.
198 (all_symbols_read_handler): Call use_original_files if nop is true.
199 (process_option): Parse the -nop option.
201 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
203 * lto-plugin.c (debug): New.
204 (exec_lto_wrapper): Print argv if debug is true.
205 (process_option): Process the -debug command line option.
207 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
209 * lto-plugin.c (process_option): The argument is now a single option,
210 not a space separated list.
212 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
214 * lto-plugin.c: Include sys/types.h and sys/wait.h
215 (output_files, num_output_files, lto_wrapper_argv,
216 lto_wrapper_num_args): New.
217 (free_2): Free output_files.
218 (write_resolution): Disable.
219 (add_output_files): New.
220 (exec_lto_wrapper): New.
221 (all_symbols_read_handler): Run lto-wrapper.
222 (claim_file_handler): Free lto_file.name and call elf_end.
223 (process_option): New.
225 2008-11-26 Rafael Espindola <espindola@google.com>
227 * lto-plugin.c (add_input_file): New.
228 (get_section): Return NULL if get_section fails.
229 (write_resolution): New.
230 (all_symbols_read_handler): Call add_input_file.
231 (claim_file_handler): Unlink the correct file.
232 (onload): Record add_input_file.
234 2008-09-23 Rafael Espindola <espindola@google.com>
236 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
237 Update the location of common.c.
238 * Makefile.in: Regenerate.
239 * common.c: Moved to gcc/lto.
240 * common.h: Moved to gcc/lto.
241 * lto-plugin.c: Update the location of common.h.
242 * lto-symtab.c: Update the location of common.h.
244 2008-09-23 Rafael Espindola <espindola@google.com>
246 * common.c: Include common.h.
247 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
249 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
252 2008-09-23 Rafael Espindola <espindola@google.com>
254 * lto-plugin.c (plugin_file_info): Add temp.
255 (cleanup_handler): Only delete temporary files.
256 (claim_file_handler): Initialize lto_file.temp.
258 2008-09-23 Rafael Espindola <espindola@google.com>
260 * plugin-api.h: Moved to include.
262 2008-09-23 Rafael Espindola <espindola@google.com>
264 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
267 2008-09-22 Rafael Espindola <espindola@google.com>
269 * plugin-api.h: Copy from binutils' cvs.
271 2008-09-22 Rafael Espindola <espindola@google.com>
273 * lto-symtab.c (get_symbols, add_symbols): Update signature.
274 * plugin-api.h: Copy from binutils' cvs.
276 2008-09-22 Rafael Espindola <espindola@google.com>
278 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
281 2008-09-10 Rafael Espindola <espindola@google.com>
283 * lto-plugin.c (onload): add missing break statements and asserts.
284 * lto-symtab.c (claim_file_handler): Make it static.
285 (all_symbols_read_handler): Make it static.
286 (all_file_handles): Make it static.
287 (num_file_handles): Make it static.
288 (register_claim_file): Make it static.
289 (register_object): Indent properly.
291 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
293 * Makefile.am (ltosymtab_LDADD): Add -lelf.
294 * Makefiel.in: Regenerate.
295 * lto-plugin.c: Include ar.h.
296 (claim_file_handler): Handle file->offset != 0.
297 * lto-symtab.c: Include gelf.h.
298 (all_file_handles): Change type.
299 (register_object): New.
300 (register_file): Add support for archives.
301 (resolve): Update to new type of all_file_handles.
302 (print): Update to new type of all_file_handles.
303 (free_all): Update to new type of all_file_handles.
304 (main): Update to new type of all_file_handles.
306 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
308 * lto-plugin.c (get_string_table): Remove.
309 (get_section): Use elf_strptr instead of get_string_table.
311 2008-09-08 Doug Kwan <dougkwan@google.com>
313 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
314 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
316 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
318 * Makefile.am (ltosymtab_SOURCES): add common.c.
319 (ltosymtab_CFLAGS): New.
320 (liblto_plugin_la_SOURCES): Add common.c.
321 * Makefile.in: Regenerate.
324 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
325 (plugin_symtab): New.
326 (plugin_file_info): New.
327 (register_all_symbols_read): New.
329 (claimed_files): New.
330 (num_claimed_files): New.
331 (translate): Don't drop the slot number.
334 (all_symbols_read_handler): New.
335 (claim_file_handler): Record every claimed file.
336 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
338 * lto-symtab.c: Include stdlib.h, string.h and common.h.
339 (current_file_handle): Remove.
340 (ld_plugin_all_symbols_read_handler): New.
341 (plugin_handle): New.
343 (all_file_handles): New.
344 (num_file_handles): New.
346 (register_all_symbols_read): New.
347 (add_symbols): Don't print the symbols, just record them.
348 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
350 (load_plugin): Use plugin_handle.
351 (register_file): Add the file handle to all_file_handles.
354 (unload_plugin): New.
356 (main): Call all_symbols_read_handler and free resources.
358 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
360 * Makefile.am (AM_CFLAGS): New.
361 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
362 (lib_LTLIBRARIES): New.
363 (liblto_plugin_la_SOURCES): New.
364 (liblto_plugin_la_LIBADD): New.
365 * Makefile.in: Regenerate.
366 * acinclude.m4: Don't include ../config/acx.m4 and
367 ../config/no-executables.m4.
368 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
370 * aclocal.m4: Regenerate.
371 * configure: Regenerate.
372 * configure.ac: Use AM_PROG_LIBTOOL.
374 * lto-symtab.c: Rewrite to use the plugin.
377 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
379 * configure: Regenerate.
380 * configure.ac: Use AC_CHECK_GELF.
381 * lto-symtab.c: Include gelf.h.
382 (get_string_table): Use size independent API.
383 (printTable): Use lld to print 64 bit integers.
385 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
387 * lto-symtab.c (parse_table_entry): Assert entry->kind and
388 entry->visibility are valid.
390 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
391 * lto-symtab.c (table_entry): Add comdat.
392 (parse_table_entry): Read comdat.
394 2008-08-21 Rafael Espindola <espindola@google.com>