]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/ChangeLog
Sync from git Libtool and regenerate.
[thirdparty/gcc.git] / lto-plugin / ChangeLog
CommitLineData
43e02a8a
RW
12009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2
3 * configure: Regenerate.
4 * Makefile.in: Regenerate.
5
92fa7608
RAE
62009-11-19 Rafael Avila de Espindola <espindola@google.com>
7
8 PR bootstrap/42096
9 * lto-plugin.c (claim_file_handler): Print offsets in hex.
10
06bd7f56
RAE
112009-11-12 Rafael Avila de Espindola <espindola@google.com>
12
13 * lto-plugin.c (write_resolution): Assume resolution_file is set.
14 Print the symbol name.
15 (all_symbols_read_handler): Create a resolution file.
16 Pass it to gcc.
17 (cleanup_handler): Remove the resolution file.
18 (process_option): Drop the -resolution option.
19
94086ef6
RAE
202009-11-05 Rafael Avila de Espindola <espindola@google.com>
21
22 * lto-plugin.c (temp_obj_dir_name): Remove.
23 (arguments_file_name): New.
24 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
25 (exec_lto_wrapper): Create arguments file with make_temp_file.
26 (cleanup_handler): Don't remove the temporary directory. Remove the
27 arguments file.
28 (onload): Don't create the temporary directory.
29
7e9dc421
RG
302009-11-04 Richard Guenther <rguenther@suse.de>
31 Rafael Avila de Espindola <espindola@google.com>
32
33 * lto-plugin.c (plugin_file_info): Remove temp field.
34 (cleanup_handler): Don't delete temporary objects.
35 (claim_file_handler): Don't create temporary objects.
36
1cddcdca
RAE
372009-11-04 Rafael Avila de Espindola <espindola@google.com>
38
39 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
40
86ed04df
RAE
412009-10-30 Rafael Avila de Espindola <espindola@google.com>
42
43 PR41871
44 * lto-plugin.c (claim_file_handler): Close files that we created.
45
aff4273c
RAE
462009-10-28 Rafael Avila de Espindola <espindola@google.com>
47
48 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
49 LDPL_ERROR
50
4c0f4b0b
DG
512009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
52
53 PR lto/41652
54 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
55 * configure: Regenerate.
56
03428d41
RG
572009-10-26 Richard Guenther <rguenther@suse.de>
58
59 * configure.ac: Use AM_MAINTAINER_MODE.
60 * acinclude.m4: Remove.
61 * configure: Re-generate.
62 * Makefile.in: Likewise.
63 * aclocal.m4: Likewise.
64
941e566a
RE
652009-10-19 Rafael Avila de Espindola <espindola@google.com>
66
67 PR40790
68 * configure: Regenerate.
69 * configure.ac: Add AC_TYPE_UINT64_T.
70
33662270
RAE
712009-10-16 Rafael Avila de Espindola <espindola@google.com>
72
73 * lto-plugin.c (message): New variable.
74 (check): New function.
75 (parse_table_entry, translate, write_resolution,add_output_files,
76 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
77 assert.
78 (cleanup_handler): Use check instead of assert. Remove the arguments
79 file if it exists.
80
b10071c5
RAE
812009-10-15 Rafael Avila de Espindola <espindola@google.com>
82
83 * lto-plugin.c (resolution_file): New.
84 (free_1): Update comment.
85 (free_2): Free resolution_file.
86 (write_resolution): Write resolution to specified file. Use the
87 syms array from the symbol table.
88 (all_symbols_read_handler): Delay call to free_1 past call to
89 write_resolution.
90 (process_option): Add a -resolution option.
91
076c7ebe
RG
922009-10-13 Richard Guenther <rguenther@suse.de>
93
94 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
95 correct libiberty.
96 * Makefile.in: Regenerated.
97
d520c7fb
RAE
982009-10-08 Rafael Avila de Espindola <espindola@google.com>
99
100 * lto-plugin.c (add_input_library): New.
101 (all_symbols_read_handler): Use add_input_library for items that
102 start with -l.
103 (process_option): Fit in 80 columns.
104 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
105
d7f09764
DN
1062009-10-02 Diego Novillo <dnovillo@google.com>
107
108 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
109 and -D_FILE_OFFSET_BITS=64.
110 * configure.ac: Add AC_SYS_LARGEFILE.
111 * configure: Regenerate.
112 * Makefile.in: Regenerate.
113 * lto-plugin.c: Fix copyright boilerplate.
114
1152009-10-02 Diego Novillo <dnovillo@google.com>
116
117 * Makefile.am (ACLOCAL_AMFLAGS): Define.
118 * aclocal.m4: Regenerate with aclocal-2.64
119 * acinclude.m4: Remove.
120 * Makefile.in: Regenerate with automake-1.11
121 * configure.ac (AC_PREREQ): Update to 2.64.
122 * configure: Regenerate.
123
1242009-10-02 Diego Novillo <dnovillo@google.com>
125
126 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
127 and -D_FILE_OFFSET_BITS=64.
128 * configure.ac: Add AC_SYS_LARGEFILE.
129 * configure: Regenerate.
130 * Makefile.in: Regenerate.
131 * lto-plugin.c: Fix copyright boilerplate.
132
1332009-10-02 Diego Novillo <dnovillo@google.com>
134
135 * Makefile.am (ACLOCAL_AMFLAGS): Define.
136 * aclocal.m4: Regenerate with aclocal-2.64
137 * acinclude.m4: Remove.
138 * Makefile.in: Regenerate with automake-1.11
139 * configure.ac (AC_PREREQ): Update to 2.64.
140 * configure: Regenerate.
141
1422009-10-02 Rafael Avila de Espindola <espindola@google.com>
143
144 * Makefile.am (liblto_plugin_la_SOURCES): Remove
145 $(top_srcdir)/../gcc/lto/common.c
146 * Makefile.in: Regenerate.
147
1482009-10-01 Rafael Avila de Espindola <espindola@google.com>
149
150 * lto-plugin.c (pass_through_items): New.
151 (num_pass_through_items): New.
152 (all_symbols_read_handler): Update to use the -pass-through option.
153 (process_option): Replace -libgcc with -pass-through.
154
1552009-09-30 Rafael Avila de Espindola <espindola@google.com>
156
157 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
158 register_cleanup to be set.
159
1602009-09-30 Rafael Avila de Espindola <espindola@google.com>
161
162 * Makefile.am: Remove all reference to ltosymtab.
163 * Makefile.in: Regenerate.
164 * lto-symtab.c: Remove.
165
1662009-05-21 Diego Novillo <dnovillo@google.com>
167
168 * configure.ac: Remove call to AC_CHECK_GELF.
169 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
170 * acinclude.m4: Do not include ../config/libelf.m4
171 * Makefile.am (LIBELFLIBS): Define.
172 (LIBELFINC): Define.
173 (AM_CPPFLAGS): Add $(LIBELFINC).
174 (ltosymtab_LDADD): Add $(LIBELFLIBS).
175 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
176 * lto-plugin.c: Always include <gelf.h>
177 * lto-symtab.c: Likewise.
178 * configure: Regenerate.
179 * Makefile.in: Regenerate.
180
1812009-03-23 Rafael Avila de Espindola <espindola@google.com>
182
183 * lto-plugin.c (libgcc_filename): New.
184 (all_symbols_read_handler): Pass libgcc to the linker.
185 (all_symbols_read_handler): Parse -libgcc
186
1872009-02-05 Rafael Avila de Espindola <espindola@google.com>
188
189 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
190 * Makefile.in: Regenerate.
191 * lto-plugin.c (add_output_files): Argument is now a FILE.
192 (exec_lto_wrapper): Use writeargv and pex.
193
1942009-02-04 Rafael Avila de Espindola <espindola@google.com>
195
196 Revert:
197 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
198 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
199
200
2012009-02-04 Rafael Avila de Espindola <espindola@google.com>
202
203 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
204
2052009-01-29 Rafael Avila de Espindola <espindola@google.com>
206
207 * lto-plugin.c: Include libiberty.h.
208 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
209 snprintf.
210
2112009-01-29 Rafael Avila de Espindola <espindola@google.com>
212
213 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
214 file to lto-wrapper.
215
2162009-01-28 Rafael Avila de Espindola <espindola@google.com>
217
218 * lto-plugin.c (plugin_file_info): Remove fd and elf.
219 (parse_table_entry): strdup entry->name and entry->comdat_key.
220 (free_1): Free name and comdat_key. Don't close the file. Don't call
221 elf_end.
222 (claim_file_handler): Always call elf_end.
223
2242008-12-23 Rafael Avila de Espindola <espindola@google.com>
225
226 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
227 -D_FILE_OFFSET_BITS=64
228 * Makefile.in: Regenerate
229
2302008-12-22 Rafael Avila de Espindola <espindola@google.com>
231
232 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
233 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
234 * Makefile.in: Regenerate.
235 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
236 * configure: Regenerate.
237 * configure.ac: Add AC_SUBST(target_noncanonical).
238
2392008-12-08 Rafael Avila de Espindola <espindola@google.com>
240
241 * lto-plugin.c: Include stdbool.h.
242 (debug, nop): Declare as bool.
243
2442008-12-08 Rafael Avila de Espindola <espindola@google.com>
245
246 * lto-plugin.c (nop): New.
247 (use_original_files): New.
248 (all_symbols_read_handler): Call use_original_files if nop is true.
249 (process_option): Parse the -nop option.
250
2512008-12-08 Rafael Avila de Espindola <espindola@google.com>
252
253 * lto-plugin.c (debug): New.
254 (exec_lto_wrapper): Print argv if debug is true.
255 (process_option): Process the -debug command line option.
256
2572008-12-03 Rafael Avila de Espindola <espindola@google.com>
258
259 * lto-plugin.c (process_option): The argument is now a single option,
260 not a space separated list.
261
2622008-12-02 Rafael Avila de Espindola <espindola@google.com>
263
264 * lto-plugin.c: Include sys/types.h and sys/wait.h
265 (output_files, num_output_files, lto_wrapper_argv,
266 lto_wrapper_num_args): New.
267 (free_2): Free output_files.
268 (write_resolution): Disable.
269 (add_output_files): New.
270 (exec_lto_wrapper): New.
271 (all_symbols_read_handler): Run lto-wrapper.
272 (claim_file_handler): Free lto_file.name and call elf_end.
273 (process_option): New.
274
2752008-11-26 Rafael Espindola <espindola@google.com>
276
277 * lto-plugin.c (add_input_file): New.
278 (get_section): Return NULL if get_section fails.
279 (write_resolution): New.
280 (all_symbols_read_handler): Call add_input_file.
281 (claim_file_handler): Unlink the correct file.
282 (onload): Record add_input_file.
283
2842008-09-23 Rafael Espindola <espindola@google.com>
285
286 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
287 Update the location of common.c.
288 * Makefile.in: Regenerate.
289 * common.c: Moved to gcc/lto.
290 * common.h: Moved to gcc/lto.
291 * lto-plugin.c: Update the location of common.h.
292 * lto-symtab.c: Update the location of common.h.
293
2942008-09-23 Rafael Espindola <espindola@google.com>
295
296 * common.c: Include common.h.
297 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
298 sizes.
299 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
300 explicit sizes.
301
3022008-09-23 Rafael Espindola <espindola@google.com>
303
304 * lto-plugin.c (plugin_file_info): Add temp.
305 (cleanup_handler): Only delete temporary files.
306 (claim_file_handler): Initialize lto_file.temp.
307
3082008-09-23 Rafael Espindola <espindola@google.com>
309
310 * plugin-api.h: Moved to include.
311
3122008-09-23 Rafael Espindola <espindola@google.com>
313
314 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
315 format.
316
3172008-09-22 Rafael Espindola <espindola@google.com>
318
319 * plugin-api.h: Copy from binutils' cvs.
320
3212008-09-22 Rafael Espindola <espindola@google.com>
322
323 * lto-symtab.c (get_symbols, add_symbols): Update signature.
324 * plugin-api.h: Copy from binutils' cvs.
325
3262008-09-22 Rafael Espindola <espindola@google.com>
327
328 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
329 Make extern
330
3312008-09-10 Rafael Espindola <espindola@google.com>
332
333 * lto-plugin.c (onload): add missing break statements and asserts.
334 * lto-symtab.c (claim_file_handler): Make it static.
335 (all_symbols_read_handler): Make it static.
336 (all_file_handles): Make it static.
337 (num_file_handles): Make it static.
338 (register_claim_file): Make it static.
339 (register_object): Indent properly.
340
3412008-09-10 Rafael Avila de Espindola <espindola@google.com>
342
343 * Makefile.am (ltosymtab_LDADD): Add -lelf.
344 * Makefiel.in: Regenerate.
345 * lto-plugin.c: Include ar.h.
346 (claim_file_handler): Handle file->offset != 0.
347 * lto-symtab.c: Include gelf.h.
348 (all_file_handles): Change type.
349 (register_object): New.
350 (register_file): Add support for archives.
351 (resolve): Update to new type of all_file_handles.
352 (print): Update to new type of all_file_handles.
353 (free_all): Update to new type of all_file_handles.
354 (main): Update to new type of all_file_handles.
355
3562008-09-10 Rafael Avila de Espindola <espindola@google.com>
357
358 * lto-plugin.c (get_string_table): Remove.
359 (get_section): Use elf_strptr instead of get_string_table.
360
3612008-09-08 Doug Kwan <dougkwan@google.com>
362
363 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
364 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
365
3662008-09-08 Rafael Avila de Espindola <espindola@google.com>
367
368 * Makefile.am (ltosymtab_SOURCES): add common.c.
369 (ltosymtab_CFLAGS): New.
370 (liblto_plugin_la_SOURCES): Add common.c.
371 * Makefile.in: Regenerate.
372 * common.c: New.
373 * common.h: New.
374 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
375 (plugin_symtab): New.
376 (plugin_file_info): New.
377 (register_all_symbols_read): New.
378 (get_symbols): New.
379 (claimed_files): New.
380 (num_claimed_files): New.
381 (translate): Don't drop the slot number.
382 (free_1): New.
383 (free_2): New.
384 (all_symbols_read_handler): New.
385 (claim_file_handler): Record every claimed file.
386 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
387 LDPT_GET_SYMBOLS.
388 * lto-symtab.c: Include stdlib.h, string.h and common.h.
389 (current_file_handle): Remove.
390 (ld_plugin_all_symbols_read_handler): New.
391 (plugin_handle): New.
392 (file_handle): New.
393 (all_file_handles): New.
394 (num_file_handles): New.
395 (get_symbols): New.
396 (register_all_symbols_read): New.
397 (add_symbols): Don't print the symbols, just record them.
398 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
399 LDPT_GET_SYMBOLS.
400 (load_plugin): Use plugin_handle.
401 (register_file): Add the file handle to all_file_handles.
402 (resolve): New.
403 (print): New.
404 (unload_plugin): New.
405 (free_all): New.
406 (main): Call all_symbols_read_handler and free resources.
407
4082008-09-03 Rafael Avila de Espindola <espindola@google.com>
409
410 * Makefile.am (AM_CFLAGS): New.
411 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
412 (lib_LTLIBRARIES): New.
413 (liblto_plugin_la_SOURCES): New.
414 (liblto_plugin_la_LIBADD): New.
415 * Makefile.in: Regenerate.
416 * acinclude.m4: Don't include ../config/acx.m4 and
417 ../config/no-executables.m4.
418 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
419 ../libtool.m4.
420 * aclocal.m4: Regenerate.
421 * configure: Regenerate.
422 * configure.ac: Use AM_PROG_LIBTOOL.
423 * lto-plugin.c: New.
424 * lto-symtab.c: Rewrite to use the plugin.
425 * plugin-api.h: New.
426
4272008-08-25 Rafael Avila de Espindola <espindola@google.com>
428
429 * configure: Regenerate.
430 * configure.ac: Use AC_CHECK_GELF.
431 * lto-symtab.c: Include gelf.h.
432 (get_string_table): Use size independent API.
433 (printTable): Use lld to print 64 bit integers.
434
4352008-08-22 Rafael Avila de Espindola <espindola@google.com>
436
437 * lto-symtab.c (parse_table_entry): Assert entry->kind and
438 entry->visibility are valid.
439
4402008-07-22 Rafael Avila de Espindola <espindola@google.com>
441 * lto-symtab.c (table_entry): Add comdat.
442 (parse_table_entry): Read comdat.
443
4442008-08-21 Rafael Espindola <espindola@google.com>
445
446 * Makefile.am: New.
447 * Makefile.in: New.
448 * acinclude.m4: New.
449 * aclocal.m4: New.
450 * configure: New.
451 * configure.ac: New.
452 * lto-symtab.c: New.