]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/ChangeLog
re PR c++/43951 (Revision 158918 miscompiled 483.xalancbmk in SPEC CPU 2006)
[thirdparty/gcc.git] / lto-plugin / ChangeLog
CommitLineData
13917ae3
RW
12010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2
3 PR other/43620
4 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
5 * Makefile.in: Regenerate.
6
ed0f0c0f
RG
72010-04-23 Richard Guenther <rguenther@suse.de>
8
9 PR lto/41550
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.
16
4d9e8446
RW
172010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18
19 * Makefile.in: Regenerate.
20 * aclocal.m4: Regenerate.
21
a8a5ac48
DG
222010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
23
24 PR lto/43336
25 * lto-plugin.c (cleanup_handler): Delete temporary output files.
26
c164615b
RG
272010-01-11 Richard Guenther <rguenther@suse.de>
28
29 PR lto/41569
30 * Makefile.am: Disable dependencies.
31 * Makefile.in: Regenerated.
32
f0d61983
L
332010-01-03 H.J. Lu <hongjiu.lu@intel.com>
34
35 PR lto/42520
36 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
37 if -v is passed.
38
52327858 392009-12-05 H.J. Lu <hongjiu.lu@intel.com>
43e02a8a 40
52327858
L
41 PR bootstrap/42306
42 * configure: Regenerated.
43 * Makefile.in: Likewise.
43e02a8a 44
92fa7608
RAE
452009-11-19 Rafael Avila de Espindola <espindola@google.com>
46
47 PR bootstrap/42096
48 * lto-plugin.c (claim_file_handler): Print offsets in hex.
49
06bd7f56
RAE
502009-11-12 Rafael Avila de Espindola <espindola@google.com>
51
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.
55 Pass it to gcc.
56 (cleanup_handler): Remove the resolution file.
57 (process_option): Drop the -resolution option.
58
94086ef6
RAE
592009-11-05 Rafael Avila de Espindola <espindola@google.com>
60
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
66 arguments file.
67 (onload): Don't create the temporary directory.
68
7e9dc421
RG
692009-11-04 Richard Guenther <rguenther@suse.de>
70 Rafael Avila de Espindola <espindola@google.com>
71
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.
75
1cddcdca
RAE
762009-11-04 Rafael Avila de Espindola <espindola@google.com>
77
78 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
79
86ed04df
RAE
802009-10-30 Rafael Avila de Espindola <espindola@google.com>
81
82 PR41871
83 * lto-plugin.c (claim_file_handler): Close files that we created.
84
aff4273c
RAE
852009-10-28 Rafael Avila de Espindola <espindola@google.com>
86
87 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
88 LDPL_ERROR
89
4c0f4b0b
DG
902009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
91
92 PR lto/41652
93 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
94 * configure: Regenerate.
95
03428d41
RG
962009-10-26 Richard Guenther <rguenther@suse.de>
97
98 * configure.ac: Use AM_MAINTAINER_MODE.
99 * acinclude.m4: Remove.
100 * configure: Re-generate.
101 * Makefile.in: Likewise.
102 * aclocal.m4: Likewise.
103
941e566a
RE
1042009-10-19 Rafael Avila de Espindola <espindola@google.com>
105
106 PR40790
107 * configure: Regenerate.
108 * configure.ac: Add AC_TYPE_UINT64_T.
109
33662270
RAE
1102009-10-16 Rafael Avila de Espindola <espindola@google.com>
111
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
116 assert.
117 (cleanup_handler): Use check instead of assert. Remove the arguments
118 file if it exists.
119
b10071c5
RAE
1202009-10-15 Rafael Avila de Espindola <espindola@google.com>
121
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
128 write_resolution.
129 (process_option): Add a -resolution option.
130
076c7ebe
RG
1312009-10-13 Richard Guenther <rguenther@suse.de>
132
133 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
134 correct libiberty.
135 * Makefile.in: Regenerated.
136
d520c7fb
RAE
1372009-10-08 Rafael Avila de Espindola <espindola@google.com>
138
139 * lto-plugin.c (add_input_library): New.
140 (all_symbols_read_handler): Use add_input_library for items that
141 start with -l.
142 (process_option): Fit in 80 columns.
143 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
144
d7f09764
DN
1452009-10-02 Diego Novillo <dnovillo@google.com>
146
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.
153
1542009-10-02 Diego Novillo <dnovillo@google.com>
155
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.
162
1632009-10-02 Diego Novillo <dnovillo@google.com>
164
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.
171
1722009-10-02 Diego Novillo <dnovillo@google.com>
173
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.
180
1812009-10-02 Rafael Avila de Espindola <espindola@google.com>
182
183 * Makefile.am (liblto_plugin_la_SOURCES): Remove
184 $(top_srcdir)/../gcc/lto/common.c
185 * Makefile.in: Regenerate.
186
1872009-10-01 Rafael Avila de Espindola <espindola@google.com>
188
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.
193
1942009-09-30 Rafael Avila de Espindola <espindola@google.com>
195
196 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
197 register_cleanup to be set.
198
1992009-09-30 Rafael Avila de Espindola <espindola@google.com>
200
201 * Makefile.am: Remove all reference to ltosymtab.
202 * Makefile.in: Regenerate.
203 * lto-symtab.c: Remove.
204
2052009-05-21 Diego Novillo <dnovillo@google.com>
206
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.
211 (LIBELFINC): 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.
219
2202009-03-23 Rafael Avila de Espindola <espindola@google.com>
221
222 * lto-plugin.c (libgcc_filename): New.
223 (all_symbols_read_handler): Pass libgcc to the linker.
224 (all_symbols_read_handler): Parse -libgcc
225
2262009-02-05 Rafael Avila de Espindola <espindola@google.com>
227
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.
232
2332009-02-04 Rafael Avila de Espindola <espindola@google.com>
234
235 Revert:
236 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
237 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
238
239
2402009-02-04 Rafael Avila de Espindola <espindola@google.com>
241
242 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
243
2442009-01-29 Rafael Avila de Espindola <espindola@google.com>
245
246 * lto-plugin.c: Include libiberty.h.
247 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
248 snprintf.
249
2502009-01-29 Rafael Avila de Espindola <espindola@google.com>
251
252 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
253 file to lto-wrapper.
254
2552009-01-28 Rafael Avila de Espindola <espindola@google.com>
256
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
260 elf_end.
261 (claim_file_handler): Always call elf_end.
262
2632008-12-23 Rafael Avila de Espindola <espindola@google.com>
264
265 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
266 -D_FILE_OFFSET_BITS=64
267 * Makefile.in: Regenerate
268
2692008-12-22 Rafael Avila de Espindola <espindola@google.com>
270
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).
277
2782008-12-08 Rafael Avila de Espindola <espindola@google.com>
279
280 * lto-plugin.c: Include stdbool.h.
281 (debug, nop): Declare as bool.
282
2832008-12-08 Rafael Avila de Espindola <espindola@google.com>
284
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.
289
2902008-12-08 Rafael Avila de Espindola <espindola@google.com>
291
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.
295
2962008-12-03 Rafael Avila de Espindola <espindola@google.com>
297
298 * lto-plugin.c (process_option): The argument is now a single option,
299 not a space separated list.
300
3012008-12-02 Rafael Avila de Espindola <espindola@google.com>
302
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.
313
3142008-11-26 Rafael Espindola <espindola@google.com>
315
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.
322
3232008-09-23 Rafael Espindola <espindola@google.com>
324
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.
332
3332008-09-23 Rafael Espindola <espindola@google.com>
334
335 * common.c: Include common.h.
336 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
337 sizes.
338 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
339 explicit sizes.
340
3412008-09-23 Rafael Espindola <espindola@google.com>
342
343 * lto-plugin.c (plugin_file_info): Add temp.
344 (cleanup_handler): Only delete temporary files.
345 (claim_file_handler): Initialize lto_file.temp.
346
3472008-09-23 Rafael Espindola <espindola@google.com>
348
349 * plugin-api.h: Moved to include.
350
3512008-09-23 Rafael Espindola <espindola@google.com>
352
353 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
354 format.
355
3562008-09-22 Rafael Espindola <espindola@google.com>
357
358 * plugin-api.h: Copy from binutils' cvs.
359
3602008-09-22 Rafael Espindola <espindola@google.com>
361
362 * lto-symtab.c (get_symbols, add_symbols): Update signature.
363 * plugin-api.h: Copy from binutils' cvs.
364
3652008-09-22 Rafael Espindola <espindola@google.com>
366
367 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
368 Make extern
369
3702008-09-10 Rafael Espindola <espindola@google.com>
371
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.
379
3802008-09-10 Rafael Avila de Espindola <espindola@google.com>
381
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.
394
3952008-09-10 Rafael Avila de Espindola <espindola@google.com>
396
397 * lto-plugin.c (get_string_table): Remove.
398 (get_section): Use elf_strptr instead of get_string_table.
399
4002008-09-08 Doug Kwan <dougkwan@google.com>
401
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.
404
4052008-09-08 Rafael Avila de Espindola <espindola@google.com>
406
407 * Makefile.am (ltosymtab_SOURCES): add common.c.
408 (ltosymtab_CFLAGS): New.
409 (liblto_plugin_la_SOURCES): Add common.c.
410 * Makefile.in: Regenerate.
411 * common.c: New.
412 * common.h: New.
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.
417 (get_symbols): New.
418 (claimed_files): New.
419 (num_claimed_files): New.
420 (translate): Don't drop the slot number.
421 (free_1): New.
422 (free_2): New.
423 (all_symbols_read_handler): New.
424 (claim_file_handler): Record every claimed file.
425 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
426 LDPT_GET_SYMBOLS.
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.
431 (file_handle): New.
432 (all_file_handles): New.
433 (num_file_handles): New.
434 (get_symbols): 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
438 LDPT_GET_SYMBOLS.
439 (load_plugin): Use plugin_handle.
440 (register_file): Add the file handle to all_file_handles.
441 (resolve): New.
442 (print): New.
443 (unload_plugin): New.
444 (free_all): New.
445 (main): Call all_symbols_read_handler and free resources.
446
4472008-09-03 Rafael Avila de Espindola <espindola@google.com>
448
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
458 ../libtool.m4.
459 * aclocal.m4: Regenerate.
460 * configure: Regenerate.
461 * configure.ac: Use AM_PROG_LIBTOOL.
462 * lto-plugin.c: New.
463 * lto-symtab.c: Rewrite to use the plugin.
464 * plugin-api.h: New.
465
4662008-08-25 Rafael Avila de Espindola <espindola@google.com>
467
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.
473
4742008-08-22 Rafael Avila de Espindola <espindola@google.com>
475
476 * lto-symtab.c (parse_table_entry): Assert entry->kind and
477 entry->visibility are valid.
478
4792008-07-22 Rafael Avila de Espindola <espindola@google.com>
480 * lto-symtab.c (table_entry): Add comdat.
481 (parse_table_entry): Read comdat.
482
4832008-08-21 Rafael Espindola <espindola@google.com>
484
485 * Makefile.am: New.
486 * Makefile.in: New.
487 * acinclude.m4: New.
488 * aclocal.m4: New.
489 * configure: New.
490 * configure.ac: New.
491 * lto-symtab.c: New.