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