]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/ChangeLog
re PR fortran/45586 (ICE non-trivial conversion at assignment)
[thirdparty/gcc.git] / lto-plugin / ChangeLog
CommitLineData
f3d533d3
AO
12011-02-12 Alexandre Oliva <aoliva@redhat.com>
2
3 PR lto/47225
4 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
5 (liblto_plugin_la_LDFLAGS): Add -module.
6 (copy_lto_plugin): Renamed to...
7 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
8 of static modules.
9 * Makefile.in: Rebuild.
10
f43c3935
KT
112011-02-07 Kai Tietz <kai.tietz@onevision.com>
12
13 PR lto/47225
14 * Makefile.am (Wc): New helper for encoding -Wc,.
15 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
16 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
17 * Makefile.in: Regenerated.
18
e6d926d7
PB
192011-02-07 Paolo Bonzini <bonzini@gnu.org>
20
21 Revert:
22
23 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
24
25 PR lto/47225
26 * Makefile.am (Wl): New helper for encoding -Wl,.
27 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
28 * Makefile.in: Regenerated.
29
c7b5125d
KT
302011-02-07 Kai Tietz <kai.tietz@onevision.com>
31
32 PR lto/47225
33 * Makefile.am (Wl): New helper for encoding -Wl,.
34 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
35 * Makefile.in: Regenerated.
36
e3bb089d
ILT
372011-01-25 Ian Lance Taylor <iant@google.com>
38
39 * lto-plugin.c (gold_version): New static variable.
40 (all_symbols_read_handler): Don't check pass_through_items if
41 using gold 1.11 or later.
42 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
43
47782a9d
RG
442011-01-12 Richard Guenther <rguenther@suse.de>
45
46 PR lto/47264
47 * lto-plugin.c (parse_table_entry): Use memcpy to access
48 unaligned fields.
49
5b64bab9
DK
502010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
51
52 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
53 * Makefile.in: Regenerate.
54
be3ea0c8
RO
552010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
56
57 Revert last change.
58
dd8587d6
RO
592010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
60
61 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
62 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
63 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
64 * Makefile.in: Regenerate.
65
77754180
DK
662010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
67
68 PR middle-end/46674
69 PR lto/43157
70 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
71 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
72 * configure: Regenerate.
73 * config.h.in: Likewise.
74
7de6ba7a
DK
752010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
76
77 PR target/40125
78 PR lto/46695
79 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
80 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
81 override -bindir setting.
82 * aclocal.m4: Regenerate.
83 * configure: Regenerate.
84 * Makefile.in: Regenerate.
85
ec692d5f
KT
862010-12-05 Kai Tietz <kai.tietz@onevision.com>
87
88 * config.h.in: Regenerated.
89 * configure: Regenerated.
90 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
91 * lto-plugin.c (WIFEXITED): Define default.
92 (WEXITSTATUS): Likeiwse.
93
a2254c5d
KT
942010-12-01 Kai Tietz <kai.tietz@onevision.com>
95
96 * config.h.in: Regenerated.
97 * configure: Regenerated.
98 * Makefile.in: Regenerated.
99 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
100 * lto-plugin.c: Include sys/wait.h conditionally.
101 * aclocal.m4: Regenerated.
102
44538c62
KT
1032010-11-13 Kai Tietz <kai.tietz@onevision.com>
104
105 * lto-plugin.c (add_output_files): Fix memory leak.
106
d19e0f01
DK
1072010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
108
109 PR bootstrap/46397
110 PR bootstrap/46362
111 * configure.ac: Add AC_TYPE_INT64_T test.
112 * config.h.in: Regenerate.
113 * configure: Likewise.
114 * lto-plugin.c (debug): Use char not bool.
115 (nop): Likewise.
116 (check_1): Rename from check, and use int not bool for gate argument.
117 (check): Macro wrapper for the above to coerce gate argument into
118 boolean-valued integer in case it has pointer type.
119 (parse_table_entry): Use 0 not false.
120 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
121 into two 32-bit parts and printing as hex ints.
122
37da3688
DK
1232010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
124
125 PR lto/46291
126 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
127
48215350
DK
1282010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
129
130 PR lto/46273
131 * lto-plugin.h: Delete.
132 * lto-plugin-elf.c: Likewise.
133 * lto-plugin-coff.c: Likewise.
134 * configure.ac: Don't use libelf, don't source config.gcc.
135 (LIBELFLIBS): Delete.
136 (LIBELFINC): Delete.
137 (LTO_FORMAT): Delete.
138 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
139 (config.h): Add AC_CONFIG_HEADERS directive.
140 * Makefile.am (LIBELFLIBS): Delete.
141 (LIBELFINC): Delete.
142 (LTO_FORMAT): Delete.
143 (DEFS): Import.
144 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
145 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
146 any object-format-specific source file in the link.
147 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
148 * config.h.in: Generate.
149 * configure: Regenerate.
150 * Makefile.in: Likewise.
151 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
152 (LTO_SEGMENT_NAME): New definition.
153 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
154 (LTO_SECTION_PREFIX_LEN): New definition.
155 (struct sym_aux): Struct definition moved here from lto-plugin.h.
156 (struct plugin_symtab): Likewise.
157 (struct plugin_objfile): Likewise.
158 (struct plugin_objfile): New struct def.
159 (enum symbol_style): New enum type.
160 (add_symbols): Make static.
161 (claimed_files): Likewise.
162 (num_claimed_files): Likewise.
163 (sym_style): New global.
164 (check): Make static.
165 (parse_table_entry): Likewise. Respect sym_style when extracting
166 symbol from symtab entry.
167 (translate): Make static.
168 (resolve_conflicts): Likewise.
169 (process_symtab): New function, per-section callback version of
170 old object-format-specific handling from deleted lto-plugin-elf.c.
171 (claim_file_handler): Convert ELF-specific version from deleted
172 lto-plugin-elf.c to simple_object interface and move here.
173 (process_options): Allow new '-sym-style=' option.
174 (onload): Don't call deleted onload_format_checks hook.
175
9df2493c
KT
1762010-10-11 Kai Tietz <kai.tietz@onevision.com>
177
178 * lto-plugin.c (dump_symtab): Correct printf argument type.
179 (finish_conflict_resolution): Initialize resolution.
180
73d5e770
L
1812010-10-08 H.J. Lu <hongjiu.lu@intel.com>
182
183 PR bootstrap/45951
184 * configure.ac: Add AC_CANONICAL_SYSTEM.
185 * configure: Regenerated.
186
1cd0b716
DK
1872010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
188
189 * configure.ac: Source config.gcc to determine lto_binary_reader.
190 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
191 * Makefile.am (LTO_FORMAT): Import.
192 (liblto_plugin_la_SOURCES): Add object format dependent module
193 defined by LTO_FORMAT.
194 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
195 and work around libtool warning.
196 * configure: Regenerate.
197 * Makefile.in: Likewise.
198 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
199 (struct sym_aux): Likewise.
200 (struct plugin_symtab): Likewise.
201 (struct plugin_file_info): Likewise.
202 (LTO_SECTION_PREFIX): Likewise.
203 (add_symbols): Make non-static.
204 (claimed_files): Likewise.
205 (num_claimed_files): Likewise.
206 (check): Likewise.
207 (parse_table_entry): Likewise.
208 (translate): Likewise.
209 (resolve_conflicts): Likewise.
210 (process_symtab): Move to new lto-plugin-elf.c object format dependent
211 source file.
212 (claim_file_handler): Likewise, and make non-static.
213 (onload): Call new onload_format_checks function.
214 * lto-plugin.h: New file.
215 (LTO_SECTION_PREFIX): Move here.
216 (struct sym_aux): Likewise.
217 (struct plugin_symtab): Likewise.
218 (struct plugin_file_info): Likewise.
219 (claim_file_handler): Add new function prototype.
220 (onload_format_checks): Likewise.
221 (check): Declare extern.
222 (translate): Likewise.
223 (parse_table_entry): Likewise.
224 (resolve_conflicts): Likewise.
225 (add_symbols): Likewise.
226 (claimed_files): Likewise.
227 (num_claimed_files): Likewise.
228 * lto-plugin-elf.c (process_symtab): Move here.
229 (claim_file_handler): Likewise, and make non-static.
230 (onload_format_checks): New function factored out from onload.
231 * lto-plugin-coff.c (claim_file_handler): New function stub.
232 (onload_format_checks): Likewise.
233
d2c57fe9
AK
2342010-08-05 Andi Kleen <ak@linux.intel.com>
235
236 * lto-plugin.c: Include <hashtab.h>
237 (sym_aux): Add next_conflict field to save conflict chains.
238 (plugin_file_info): Add conflicts symtab.
239 (parse_table_entry): Initialize aux->next_conflict.
240 (process_symtab): Increment found.
241 (dump_symtab): Add.
242 (finish_conflict_resolution): Add.
243 (free_symtab): Add.
244 (write_resolution): Remove symbols loop and move into
245 dump_symtab. Call dump_symtab for main symbol and conflicts table.
246 Call free_symtab to free conflicts table.
247 (SWAP): Add.
248 (eq_sym): Add.
249 (hash_sym): Add.
250 (symbol_strength): Add.
251 (resolve_conflicts): Add.
252 (claim_file_handler): Add n variable. Check return value of
253 process_symtab. Call resolve_conflicts.
254
90e26247
AK
2552010-07-27 Andi Kleen <ak@linux.intel.com>
256
257 * lto-plugin.c (translate): Remove debug fprintf.
258
9477ccb2
L
2592010-07-23 H.J. Lu <hongjiu.lu@intel.com>
260
261 PR bootstrap/45042
262 * lto-plugin.c (translate): Cast to unsigned long.
263
2642010-07-23 Andi Kleen <ak@linux.intel.com>
73ce4d1e
AK
265
266 PR lto/44992
267 * lto-plugin.c (sym_aux): Add.
268 (plugin_symtab): Remove slots. Add aux and id.
269 (parse_table_entry): Change to use aux instead of slots.
270 (LTO_SECTION_PREFIX): Add.
271 (translate): Improve buffer allocation. Change to append
272 symbols to existing out buffer.
273 (get_section): Remove.
274 (process_symtab): Add.
275 (free_2): Free symtab->aux.
276 (write_resolution): Handle aux instead of slots.
277 Print sub id to resolution file.
278 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
279 calls with call to process_symtab.
280
553fc582
RG
2812010-07-22 Richard Guenther <rguenther@suse.de>
282
283 * Makefile.am: New copy_lto_plugin rule to install the plugin
284 into ../gcc.
285 * Makefile.in: Regenerated.
286
bdc89f9e
RG
2872010-05-21 Richard Guenther <rguenther@suse.de>
288
289 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
290
5cd0e96b
RG
2912010-05-07 Richard Guenther <rguenther@suse.de>
292
293 * lto-plugin.c (free_2): Do not free resolution_file.
294 (write_resolution): Check that we were passed a resolution file.
295 (all_symbols_read_handler): Adjust.
296 (cleanup_handler): Do not remove the resolution file.
297 (process_option): Handle -fresolution=.
298
13917ae3
RW
2992010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
300
301 PR other/43620
302 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
303 * Makefile.in: Regenerate.
304
ed0f0c0f
RG
3052010-04-23 Richard Guenther <rguenther@suse.de>
306
307 PR lto/41550
308 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
309 (translate): Likewise.
310 (all_symbols_read_handler): Likewise.
311 (claim_file_handler): Likewise.
312 (process_option): Likewise.
313 (add_output_files): Likewise. Remove filename length limit.
314
4d9e8446
RW
3152010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
316
317 * Makefile.in: Regenerate.
318 * aclocal.m4: Regenerate.
319
a8a5ac48
DG
3202010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
321
322 PR lto/43336
323 * lto-plugin.c (cleanup_handler): Delete temporary output files.
324
c164615b
RG
3252010-01-11 Richard Guenther <rguenther@suse.de>
326
327 PR lto/41569
328 * Makefile.am: Disable dependencies.
329 * Makefile.in: Regenerated.
330
f0d61983
L
3312010-01-03 H.J. Lu <hongjiu.lu@intel.com>
332
333 PR lto/42520
334 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
335 if -v is passed.
336
52327858 3372009-12-05 H.J. Lu <hongjiu.lu@intel.com>
43e02a8a 338
52327858
L
339 PR bootstrap/42306
340 * configure: Regenerated.
341 * Makefile.in: Likewise.
43e02a8a 342
92fa7608
RAE
3432009-11-19 Rafael Avila de Espindola <espindola@google.com>
344
345 PR bootstrap/42096
346 * lto-plugin.c (claim_file_handler): Print offsets in hex.
347
06bd7f56
RAE
3482009-11-12 Rafael Avila de Espindola <espindola@google.com>
349
350 * lto-plugin.c (write_resolution): Assume resolution_file is set.
351 Print the symbol name.
352 (all_symbols_read_handler): Create a resolution file.
353 Pass it to gcc.
354 (cleanup_handler): Remove the resolution file.
355 (process_option): Drop the -resolution option.
356
94086ef6
RAE
3572009-11-05 Rafael Avila de Espindola <espindola@google.com>
358
359 * lto-plugin.c (temp_obj_dir_name): Remove.
360 (arguments_file_name): New.
361 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
362 (exec_lto_wrapper): Create arguments file with make_temp_file.
363 (cleanup_handler): Don't remove the temporary directory. Remove the
364 arguments file.
365 (onload): Don't create the temporary directory.
366
7e9dc421
RG
3672009-11-04 Richard Guenther <rguenther@suse.de>
368 Rafael Avila de Espindola <espindola@google.com>
369
370 * lto-plugin.c (plugin_file_info): Remove temp field.
371 (cleanup_handler): Don't delete temporary objects.
372 (claim_file_handler): Don't create temporary objects.
373
1cddcdca
RAE
3742009-11-04 Rafael Avila de Espindola <espindola@google.com>
375
376 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
377
86ed04df
RAE
3782009-10-30 Rafael Avila de Espindola <espindola@google.com>
379
380 PR41871
381 * lto-plugin.c (claim_file_handler): Close files that we created.
382
aff4273c
RAE
3832009-10-28 Rafael Avila de Espindola <espindola@google.com>
384
385 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
386 LDPL_ERROR
387
4c0f4b0b
DG
3882009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
389
390 PR lto/41652
391 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
392 * configure: Regenerate.
393
03428d41
RG
3942009-10-26 Richard Guenther <rguenther@suse.de>
395
396 * configure.ac: Use AM_MAINTAINER_MODE.
397 * acinclude.m4: Remove.
398 * configure: Re-generate.
399 * Makefile.in: Likewise.
400 * aclocal.m4: Likewise.
401
941e566a
RE
4022009-10-19 Rafael Avila de Espindola <espindola@google.com>
403
404 PR40790
405 * configure: Regenerate.
406 * configure.ac: Add AC_TYPE_UINT64_T.
407
33662270
RAE
4082009-10-16 Rafael Avila de Espindola <espindola@google.com>
409
410 * lto-plugin.c (message): New variable.
411 (check): New function.
412 (parse_table_entry, translate, write_resolution,add_output_files,
413 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
414 assert.
415 (cleanup_handler): Use check instead of assert. Remove the arguments
416 file if it exists.
417
b10071c5
RAE
4182009-10-15 Rafael Avila de Espindola <espindola@google.com>
419
420 * lto-plugin.c (resolution_file): New.
421 (free_1): Update comment.
422 (free_2): Free resolution_file.
423 (write_resolution): Write resolution to specified file. Use the
424 syms array from the symbol table.
425 (all_symbols_read_handler): Delay call to free_1 past call to
426 write_resolution.
427 (process_option): Add a -resolution option.
428
076c7ebe
RG
4292009-10-13 Richard Guenther <rguenther@suse.de>
430
431 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
432 correct libiberty.
433 * Makefile.in: Regenerated.
434
d520c7fb
RAE
4352009-10-08 Rafael Avila de Espindola <espindola@google.com>
436
437 * lto-plugin.c (add_input_library): New.
438 (all_symbols_read_handler): Use add_input_library for items that
439 start with -l.
440 (process_option): Fit in 80 columns.
441 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
442
d7f09764
DN
4432009-10-02 Diego Novillo <dnovillo@google.com>
444
445 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
446 and -D_FILE_OFFSET_BITS=64.
447 * configure.ac: Add AC_SYS_LARGEFILE.
448 * configure: Regenerate.
449 * Makefile.in: Regenerate.
450 * lto-plugin.c: Fix copyright boilerplate.
451
4522009-10-02 Diego Novillo <dnovillo@google.com>
453
454 * Makefile.am (ACLOCAL_AMFLAGS): Define.
455 * aclocal.m4: Regenerate with aclocal-2.64
456 * acinclude.m4: Remove.
457 * Makefile.in: Regenerate with automake-1.11
458 * configure.ac (AC_PREREQ): Update to 2.64.
459 * configure: Regenerate.
460
4612009-10-02 Diego Novillo <dnovillo@google.com>
462
463 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
464 and -D_FILE_OFFSET_BITS=64.
465 * configure.ac: Add AC_SYS_LARGEFILE.
466 * configure: Regenerate.
467 * Makefile.in: Regenerate.
468 * lto-plugin.c: Fix copyright boilerplate.
469
4702009-10-02 Diego Novillo <dnovillo@google.com>
471
472 * Makefile.am (ACLOCAL_AMFLAGS): Define.
473 * aclocal.m4: Regenerate with aclocal-2.64
474 * acinclude.m4: Remove.
475 * Makefile.in: Regenerate with automake-1.11
476 * configure.ac (AC_PREREQ): Update to 2.64.
477 * configure: Regenerate.
478
4792009-10-02 Rafael Avila de Espindola <espindola@google.com>
480
481 * Makefile.am (liblto_plugin_la_SOURCES): Remove
482 $(top_srcdir)/../gcc/lto/common.c
483 * Makefile.in: Regenerate.
484
4852009-10-01 Rafael Avila de Espindola <espindola@google.com>
486
487 * lto-plugin.c (pass_through_items): New.
488 (num_pass_through_items): New.
489 (all_symbols_read_handler): Update to use the -pass-through option.
490 (process_option): Replace -libgcc with -pass-through.
491
4922009-09-30 Rafael Avila de Espindola <espindola@google.com>
493
494 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
495 register_cleanup to be set.
496
4972009-09-30 Rafael Avila de Espindola <espindola@google.com>
498
499 * Makefile.am: Remove all reference to ltosymtab.
500 * Makefile.in: Regenerate.
501 * lto-symtab.c: Remove.
502
5032009-05-21 Diego Novillo <dnovillo@google.com>
504
505 * configure.ac: Remove call to AC_CHECK_GELF.
506 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
507 * acinclude.m4: Do not include ../config/libelf.m4
508 * Makefile.am (LIBELFLIBS): Define.
509 (LIBELFINC): Define.
510 (AM_CPPFLAGS): Add $(LIBELFINC).
511 (ltosymtab_LDADD): Add $(LIBELFLIBS).
512 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
513 * lto-plugin.c: Always include <gelf.h>
514 * lto-symtab.c: Likewise.
515 * configure: Regenerate.
516 * Makefile.in: Regenerate.
517
5182009-03-23 Rafael Avila de Espindola <espindola@google.com>
519
520 * lto-plugin.c (libgcc_filename): New.
521 (all_symbols_read_handler): Pass libgcc to the linker.
522 (all_symbols_read_handler): Parse -libgcc
523
5242009-02-05 Rafael Avila de Espindola <espindola@google.com>
525
526 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
527 * Makefile.in: Regenerate.
528 * lto-plugin.c (add_output_files): Argument is now a FILE.
529 (exec_lto_wrapper): Use writeargv and pex.
530
5312009-02-04 Rafael Avila de Espindola <espindola@google.com>
532
533 Revert:
534 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
535 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
536
537
5382009-02-04 Rafael Avila de Espindola <espindola@google.com>
539
540 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
541
5422009-01-29 Rafael Avila de Espindola <espindola@google.com>
543
544 * lto-plugin.c: Include libiberty.h.
545 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
546 snprintf.
547
5482009-01-29 Rafael Avila de Espindola <espindola@google.com>
549
550 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
551 file to lto-wrapper.
552
5532009-01-28 Rafael Avila de Espindola <espindola@google.com>
554
555 * lto-plugin.c (plugin_file_info): Remove fd and elf.
556 (parse_table_entry): strdup entry->name and entry->comdat_key.
557 (free_1): Free name and comdat_key. Don't close the file. Don't call
558 elf_end.
559 (claim_file_handler): Always call elf_end.
560
5612008-12-23 Rafael Avila de Espindola <espindola@google.com>
562
563 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
564 -D_FILE_OFFSET_BITS=64
565 * Makefile.in: Regenerate
566
5672008-12-22 Rafael Avila de Espindola <espindola@google.com>
568
569 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
570 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
571 * Makefile.in: Regenerate.
572 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
573 * configure: Regenerate.
574 * configure.ac: Add AC_SUBST(target_noncanonical).
575
5762008-12-08 Rafael Avila de Espindola <espindola@google.com>
577
578 * lto-plugin.c: Include stdbool.h.
579 (debug, nop): Declare as bool.
580
5812008-12-08 Rafael Avila de Espindola <espindola@google.com>
582
583 * lto-plugin.c (nop): New.
584 (use_original_files): New.
585 (all_symbols_read_handler): Call use_original_files if nop is true.
586 (process_option): Parse the -nop option.
587
5882008-12-08 Rafael Avila de Espindola <espindola@google.com>
589
590 * lto-plugin.c (debug): New.
591 (exec_lto_wrapper): Print argv if debug is true.
592 (process_option): Process the -debug command line option.
593
5942008-12-03 Rafael Avila de Espindola <espindola@google.com>
595
596 * lto-plugin.c (process_option): The argument is now a single option,
597 not a space separated list.
598
5992008-12-02 Rafael Avila de Espindola <espindola@google.com>
600
601 * lto-plugin.c: Include sys/types.h and sys/wait.h
602 (output_files, num_output_files, lto_wrapper_argv,
603 lto_wrapper_num_args): New.
604 (free_2): Free output_files.
605 (write_resolution): Disable.
606 (add_output_files): New.
607 (exec_lto_wrapper): New.
608 (all_symbols_read_handler): Run lto-wrapper.
609 (claim_file_handler): Free lto_file.name and call elf_end.
610 (process_option): New.
611
6122008-11-26 Rafael Espindola <espindola@google.com>
613
614 * lto-plugin.c (add_input_file): New.
615 (get_section): Return NULL if get_section fails.
616 (write_resolution): New.
617 (all_symbols_read_handler): Call add_input_file.
618 (claim_file_handler): Unlink the correct file.
619 (onload): Record add_input_file.
620
6212008-09-23 Rafael Espindola <espindola@google.com>
622
623 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
624 Update the location of common.c.
625 * Makefile.in: Regenerate.
626 * common.c: Moved to gcc/lto.
627 * common.h: Moved to gcc/lto.
628 * lto-plugin.c: Update the location of common.h.
629 * lto-symtab.c: Update the location of common.h.
630
6312008-09-23 Rafael Espindola <espindola@google.com>
632
633 * common.c: Include common.h.
634 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
635 sizes.
636 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
637 explicit sizes.
638
6392008-09-23 Rafael Espindola <espindola@google.com>
640
641 * lto-plugin.c (plugin_file_info): Add temp.
642 (cleanup_handler): Only delete temporary files.
643 (claim_file_handler): Initialize lto_file.temp.
644
6452008-09-23 Rafael Espindola <espindola@google.com>
646
647 * plugin-api.h: Moved to include.
648
6492008-09-23 Rafael Espindola <espindola@google.com>
650
651 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
652 format.
653
6542008-09-22 Rafael Espindola <espindola@google.com>
655
656 * plugin-api.h: Copy from binutils' cvs.
657
6582008-09-22 Rafael Espindola <espindola@google.com>
659
660 * lto-symtab.c (get_symbols, add_symbols): Update signature.
661 * plugin-api.h: Copy from binutils' cvs.
662
6632008-09-22 Rafael Espindola <espindola@google.com>
664
665 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
666 Make extern
667
6682008-09-10 Rafael Espindola <espindola@google.com>
669
670 * lto-plugin.c (onload): add missing break statements and asserts.
671 * lto-symtab.c (claim_file_handler): Make it static.
672 (all_symbols_read_handler): Make it static.
673 (all_file_handles): Make it static.
674 (num_file_handles): Make it static.
675 (register_claim_file): Make it static.
676 (register_object): Indent properly.
677
6782008-09-10 Rafael Avila de Espindola <espindola@google.com>
679
680 * Makefile.am (ltosymtab_LDADD): Add -lelf.
681 * Makefiel.in: Regenerate.
682 * lto-plugin.c: Include ar.h.
683 (claim_file_handler): Handle file->offset != 0.
684 * lto-symtab.c: Include gelf.h.
685 (all_file_handles): Change type.
686 (register_object): New.
687 (register_file): Add support for archives.
688 (resolve): Update to new type of all_file_handles.
689 (print): Update to new type of all_file_handles.
690 (free_all): Update to new type of all_file_handles.
691 (main): Update to new type of all_file_handles.
692
6932008-09-10 Rafael Avila de Espindola <espindola@google.com>
694
695 * lto-plugin.c (get_string_table): Remove.
696 (get_section): Use elf_strptr instead of get_string_table.
697
6982008-09-08 Doug Kwan <dougkwan@google.com>
699
700 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
701 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
702
7032008-09-08 Rafael Avila de Espindola <espindola@google.com>
704
705 * Makefile.am (ltosymtab_SOURCES): add common.c.
706 (ltosymtab_CFLAGS): New.
707 (liblto_plugin_la_SOURCES): Add common.c.
708 * Makefile.in: Regenerate.
709 * common.c: New.
710 * common.h: New.
711 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
712 (plugin_symtab): New.
713 (plugin_file_info): New.
714 (register_all_symbols_read): New.
715 (get_symbols): New.
716 (claimed_files): New.
717 (num_claimed_files): New.
718 (translate): Don't drop the slot number.
719 (free_1): New.
720 (free_2): New.
721 (all_symbols_read_handler): New.
722 (claim_file_handler): Record every claimed file.
723 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
724 LDPT_GET_SYMBOLS.
725 * lto-symtab.c: Include stdlib.h, string.h and common.h.
726 (current_file_handle): Remove.
727 (ld_plugin_all_symbols_read_handler): New.
728 (plugin_handle): New.
729 (file_handle): New.
730 (all_file_handles): New.
731 (num_file_handles): New.
732 (get_symbols): New.
733 (register_all_symbols_read): New.
734 (add_symbols): Don't print the symbols, just record them.
735 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
736 LDPT_GET_SYMBOLS.
737 (load_plugin): Use plugin_handle.
738 (register_file): Add the file handle to all_file_handles.
739 (resolve): New.
740 (print): New.
741 (unload_plugin): New.
742 (free_all): New.
743 (main): Call all_symbols_read_handler and free resources.
744
7452008-09-03 Rafael Avila de Espindola <espindola@google.com>
746
747 * Makefile.am (AM_CFLAGS): New.
748 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
749 (lib_LTLIBRARIES): New.
750 (liblto_plugin_la_SOURCES): New.
751 (liblto_plugin_la_LIBADD): New.
752 * Makefile.in: Regenerate.
753 * acinclude.m4: Don't include ../config/acx.m4 and
754 ../config/no-executables.m4.
755 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
756 ../libtool.m4.
757 * aclocal.m4: Regenerate.
758 * configure: Regenerate.
759 * configure.ac: Use AM_PROG_LIBTOOL.
760 * lto-plugin.c: New.
761 * lto-symtab.c: Rewrite to use the plugin.
762 * plugin-api.h: New.
763
7642008-08-25 Rafael Avila de Espindola <espindola@google.com>
765
766 * configure: Regenerate.
767 * configure.ac: Use AC_CHECK_GELF.
768 * lto-symtab.c: Include gelf.h.
769 (get_string_table): Use size independent API.
770 (printTable): Use lld to print 64 bit integers.
771
7722008-08-22 Rafael Avila de Espindola <espindola@google.com>
773
774 * lto-symtab.c (parse_table_entry): Assert entry->kind and
775 entry->visibility are valid.
776
7772008-07-22 Rafael Avila de Espindola <espindola@google.com>
778 * lto-symtab.c (table_entry): Add comdat.
779 (parse_table_entry): Read comdat.
780
7812008-08-21 Rafael Espindola <espindola@google.com>
782
783 * Makefile.am: New.
784 * Makefile.in: New.
785 * acinclude.m4: New.
786 * aclocal.m4: New.
787 * configure: New.
788 * configure.ac: New.
789 * lto-symtab.c: New.