]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/ChangeLog
Regenerate configure files for libtool.m4 change
[thirdparty/gcc.git] / lto-plugin / ChangeLog
CommitLineData
e6d5f8c9
L
12012-05-16 H.J. Lu <hongjiu.lu@intel.com>
2
3 * configure: Regenerated.
4
8cfa7899
KT
52012-02-22 Kai Tietz <ktietz@redhat.com>
6
7 PR lto/50616
8 * lto-plugin.c (PRI_LL): New macro.
9 (dump_symtab): Use PRI_LL instead of ll in print.
10 (process_symtab): Use PRI_LL instead of ll in scan.
11
4a5e00ca
AS
122011-12-20 Andreas Schwab <schwab@linux-m68k.org>
13
14 * configure: Regenerate.
15
095af58f
AS
162011-12-19 Andreas Schwab <schwab@linux-m68k.org>
17
18 * configure: Regenerate.
19
c6084f68
AT
202011-11-21 Andreas Tobler <andreast@fgznet.ch>
21
22 * configure: Regenerate.
23
ed0d2da0
JH
242011-10-02 Jan Hubicka <jh@suse.cz>
25
26 PR lto/47247
27 * lto-plugin.c (get_symbols_v2): New variable.
28 (write_resolution): Use V2 API when available.
29 (onload): Handle LDPT_GET_SYMBOLS_V2.
30
ad7715f3
L
312011-09-30 H.J. Lu <hongjiu.lu@intel.com>
32 Andi Kleen <ak@linux.intel.com>
33
34 PR lto/50568
35 * lto-plugin.c (sym_aux): Change id to unsigned long long.
36 (plugin_symtab): Likewise.
37 (dump_symtab): Likewise.
38 (resolve_conflicts): Likewise.
39 (process_symtab): Likewise.
40
f3016c47
RG
412011-08-10 Richard Guenther <rguenther@suse.de>
42
43 PR bootstrap/49907
44 lto-plugin/
45 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
46 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
47 * configure: Regenerate.
48 * Makefile.in: Likewise.
49 * aclocal.m4: Likewise.
50
04695783
JM
512011-04-20 Jim Meyering <meyering@redhat.com>
52
53 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
54
3b8c1a3f
RG
552011-04-05 Richard Guenther <rguenther@suse.de>
56
57 PR bootstrap/48431
58 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
59
029c8f3e
RW
602011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61
62 * Makefile.in: Regenerate.
63 * aclocal.m4: Regenerate.
64 * configure: Regenerate.
65
3917813c
RW
662011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67
68 * Makefile.am (all-local): Rename from 'all'.
69 * Makefile.in: Regenerate.
70
f3d533d3
AO
712011-02-12 Alexandre Oliva <aoliva@redhat.com>
72
73 PR lto/47225
74 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
75 (liblto_plugin_la_LDFLAGS): Add -module.
76 (copy_lto_plugin): Renamed to...
77 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
78 of static modules.
79 * Makefile.in: Rebuild.
80
f43c3935
KT
812011-02-07 Kai Tietz <kai.tietz@onevision.com>
82
83 PR lto/47225
84 * Makefile.am (Wc): New helper for encoding -Wc,.
85 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
86 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
87 * Makefile.in: Regenerated.
88
e6d926d7
PB
892011-02-07 Paolo Bonzini <bonzini@gnu.org>
90
91 Revert:
92
93 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
94
95 PR lto/47225
96 * Makefile.am (Wl): New helper for encoding -Wl,.
97 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
98 * Makefile.in: Regenerated.
99
c7b5125d
KT
1002011-02-07 Kai Tietz <kai.tietz@onevision.com>
101
102 PR lto/47225
103 * Makefile.am (Wl): New helper for encoding -Wl,.
104 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
105 * Makefile.in: Regenerated.
106
e3bb089d
ILT
1072011-01-25 Ian Lance Taylor <iant@google.com>
108
109 * lto-plugin.c (gold_version): New static variable.
110 (all_symbols_read_handler): Don't check pass_through_items if
111 using gold 1.11 or later.
112 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
113
47782a9d
RG
1142011-01-12 Richard Guenther <rguenther@suse.de>
115
116 PR lto/47264
117 * lto-plugin.c (parse_table_entry): Use memcpy to access
118 unaligned fields.
119
5b64bab9
DK
1202010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
121
122 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
123 * Makefile.in: Regenerate.
124
be3ea0c8
RO
1252010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
126
127 Revert last change.
128
dd8587d6
RO
1292010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
130
131 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
132 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
133 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
134 * Makefile.in: Regenerate.
135
77754180
DK
1362010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
137
138 PR middle-end/46674
139 PR lto/43157
140 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
141 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
142 * configure: Regenerate.
143 * config.h.in: Likewise.
144
7de6ba7a
DK
1452010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
146
147 PR target/40125
148 PR lto/46695
149 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
150 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
151 override -bindir setting.
152 * aclocal.m4: Regenerate.
153 * configure: Regenerate.
154 * Makefile.in: Regenerate.
155
ec692d5f
KT
1562010-12-05 Kai Tietz <kai.tietz@onevision.com>
157
158 * config.h.in: Regenerated.
159 * configure: Regenerated.
160 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
161 * lto-plugin.c (WIFEXITED): Define default.
162 (WEXITSTATUS): Likeiwse.
163
a2254c5d
KT
1642010-12-01 Kai Tietz <kai.tietz@onevision.com>
165
166 * config.h.in: Regenerated.
167 * configure: Regenerated.
168 * Makefile.in: Regenerated.
169 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
170 * lto-plugin.c: Include sys/wait.h conditionally.
171 * aclocal.m4: Regenerated.
172
44538c62
KT
1732010-11-13 Kai Tietz <kai.tietz@onevision.com>
174
175 * lto-plugin.c (add_output_files): Fix memory leak.
176
d19e0f01
DK
1772010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
178
179 PR bootstrap/46397
180 PR bootstrap/46362
181 * configure.ac: Add AC_TYPE_INT64_T test.
182 * config.h.in: Regenerate.
183 * configure: Likewise.
184 * lto-plugin.c (debug): Use char not bool.
185 (nop): Likewise.
186 (check_1): Rename from check, and use int not bool for gate argument.
187 (check): Macro wrapper for the above to coerce gate argument into
188 boolean-valued integer in case it has pointer type.
189 (parse_table_entry): Use 0 not false.
190 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
191 into two 32-bit parts and printing as hex ints.
192
37da3688
DK
1932010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
194
195 PR lto/46291
196 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
197
48215350
DK
1982010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
199
200 PR lto/46273
201 * lto-plugin.h: Delete.
202 * lto-plugin-elf.c: Likewise.
203 * lto-plugin-coff.c: Likewise.
204 * configure.ac: Don't use libelf, don't source config.gcc.
205 (LIBELFLIBS): Delete.
206 (LIBELFINC): Delete.
207 (LTO_FORMAT): Delete.
208 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
209 (config.h): Add AC_CONFIG_HEADERS directive.
210 * Makefile.am (LIBELFLIBS): Delete.
211 (LIBELFINC): Delete.
212 (LTO_FORMAT): Delete.
213 (DEFS): Import.
214 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
215 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
216 any object-format-specific source file in the link.
217 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
218 * config.h.in: Generate.
219 * configure: Regenerate.
220 * Makefile.in: Likewise.
221 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
222 (LTO_SEGMENT_NAME): New definition.
223 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
224 (LTO_SECTION_PREFIX_LEN): New definition.
225 (struct sym_aux): Struct definition moved here from lto-plugin.h.
226 (struct plugin_symtab): Likewise.
227 (struct plugin_objfile): Likewise.
228 (struct plugin_objfile): New struct def.
229 (enum symbol_style): New enum type.
230 (add_symbols): Make static.
231 (claimed_files): Likewise.
232 (num_claimed_files): Likewise.
233 (sym_style): New global.
234 (check): Make static.
235 (parse_table_entry): Likewise. Respect sym_style when extracting
236 symbol from symtab entry.
237 (translate): Make static.
238 (resolve_conflicts): Likewise.
239 (process_symtab): New function, per-section callback version of
240 old object-format-specific handling from deleted lto-plugin-elf.c.
241 (claim_file_handler): Convert ELF-specific version from deleted
242 lto-plugin-elf.c to simple_object interface and move here.
243 (process_options): Allow new '-sym-style=' option.
244 (onload): Don't call deleted onload_format_checks hook.
245
9df2493c
KT
2462010-10-11 Kai Tietz <kai.tietz@onevision.com>
247
248 * lto-plugin.c (dump_symtab): Correct printf argument type.
249 (finish_conflict_resolution): Initialize resolution.
250
73d5e770
L
2512010-10-08 H.J. Lu <hongjiu.lu@intel.com>
252
253 PR bootstrap/45951
254 * configure.ac: Add AC_CANONICAL_SYSTEM.
255 * configure: Regenerated.
256
1cd0b716
DK
2572010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
258
259 * configure.ac: Source config.gcc to determine lto_binary_reader.
260 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
261 * Makefile.am (LTO_FORMAT): Import.
262 (liblto_plugin_la_SOURCES): Add object format dependent module
263 defined by LTO_FORMAT.
264 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
265 and work around libtool warning.
266 * configure: Regenerate.
267 * Makefile.in: Likewise.
268 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
269 (struct sym_aux): Likewise.
270 (struct plugin_symtab): Likewise.
271 (struct plugin_file_info): Likewise.
272 (LTO_SECTION_PREFIX): Likewise.
273 (add_symbols): Make non-static.
274 (claimed_files): Likewise.
275 (num_claimed_files): Likewise.
276 (check): Likewise.
277 (parse_table_entry): Likewise.
278 (translate): Likewise.
279 (resolve_conflicts): Likewise.
280 (process_symtab): Move to new lto-plugin-elf.c object format dependent
281 source file.
282 (claim_file_handler): Likewise, and make non-static.
283 (onload): Call new onload_format_checks function.
284 * lto-plugin.h: New file.
285 (LTO_SECTION_PREFIX): Move here.
286 (struct sym_aux): Likewise.
287 (struct plugin_symtab): Likewise.
288 (struct plugin_file_info): Likewise.
289 (claim_file_handler): Add new function prototype.
290 (onload_format_checks): Likewise.
291 (check): Declare extern.
292 (translate): Likewise.
293 (parse_table_entry): Likewise.
294 (resolve_conflicts): Likewise.
295 (add_symbols): Likewise.
296 (claimed_files): Likewise.
297 (num_claimed_files): Likewise.
298 * lto-plugin-elf.c (process_symtab): Move here.
299 (claim_file_handler): Likewise, and make non-static.
300 (onload_format_checks): New function factored out from onload.
301 * lto-plugin-coff.c (claim_file_handler): New function stub.
302 (onload_format_checks): Likewise.
303
d2c57fe9
AK
3042010-08-05 Andi Kleen <ak@linux.intel.com>
305
306 * lto-plugin.c: Include <hashtab.h>
307 (sym_aux): Add next_conflict field to save conflict chains.
308 (plugin_file_info): Add conflicts symtab.
309 (parse_table_entry): Initialize aux->next_conflict.
310 (process_symtab): Increment found.
311 (dump_symtab): Add.
312 (finish_conflict_resolution): Add.
313 (free_symtab): Add.
314 (write_resolution): Remove symbols loop and move into
315 dump_symtab. Call dump_symtab for main symbol and conflicts table.
316 Call free_symtab to free conflicts table.
317 (SWAP): Add.
318 (eq_sym): Add.
319 (hash_sym): Add.
320 (symbol_strength): Add.
321 (resolve_conflicts): Add.
322 (claim_file_handler): Add n variable. Check return value of
323 process_symtab. Call resolve_conflicts.
324
90e26247
AK
3252010-07-27 Andi Kleen <ak@linux.intel.com>
326
327 * lto-plugin.c (translate): Remove debug fprintf.
328
9477ccb2
L
3292010-07-23 H.J. Lu <hongjiu.lu@intel.com>
330
331 PR bootstrap/45042
332 * lto-plugin.c (translate): Cast to unsigned long.
333
3342010-07-23 Andi Kleen <ak@linux.intel.com>
73ce4d1e
AK
335
336 PR lto/44992
337 * lto-plugin.c (sym_aux): Add.
338 (plugin_symtab): Remove slots. Add aux and id.
339 (parse_table_entry): Change to use aux instead of slots.
340 (LTO_SECTION_PREFIX): Add.
341 (translate): Improve buffer allocation. Change to append
342 symbols to existing out buffer.
343 (get_section): Remove.
344 (process_symtab): Add.
345 (free_2): Free symtab->aux.
346 (write_resolution): Handle aux instead of slots.
347 Print sub id to resolution file.
348 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
349 calls with call to process_symtab.
350
553fc582
RG
3512010-07-22 Richard Guenther <rguenther@suse.de>
352
353 * Makefile.am: New copy_lto_plugin rule to install the plugin
354 into ../gcc.
355 * Makefile.in: Regenerated.
356
bdc89f9e
RG
3572010-05-21 Richard Guenther <rguenther@suse.de>
358
359 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
360
5cd0e96b
RG
3612010-05-07 Richard Guenther <rguenther@suse.de>
362
363 * lto-plugin.c (free_2): Do not free resolution_file.
364 (write_resolution): Check that we were passed a resolution file.
365 (all_symbols_read_handler): Adjust.
366 (cleanup_handler): Do not remove the resolution file.
367 (process_option): Handle -fresolution=.
368
13917ae3
RW
3692010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
370
371 PR other/43620
372 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
373 * Makefile.in: Regenerate.
374
ed0f0c0f
RG
3752010-04-23 Richard Guenther <rguenther@suse.de>
376
377 PR lto/41550
378 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
379 (translate): Likewise.
380 (all_symbols_read_handler): Likewise.
381 (claim_file_handler): Likewise.
382 (process_option): Likewise.
383 (add_output_files): Likewise. Remove filename length limit.
384
4d9e8446
RW
3852010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
386
387 * Makefile.in: Regenerate.
388 * aclocal.m4: Regenerate.
389
a8a5ac48
DG
3902010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
391
392 PR lto/43336
393 * lto-plugin.c (cleanup_handler): Delete temporary output files.
394
c164615b
RG
3952010-01-11 Richard Guenther <rguenther@suse.de>
396
397 PR lto/41569
398 * Makefile.am: Disable dependencies.
399 * Makefile.in: Regenerated.
400
f0d61983
L
4012010-01-03 H.J. Lu <hongjiu.lu@intel.com>
402
403 PR lto/42520
404 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
405 if -v is passed.
406
52327858 4072009-12-05 H.J. Lu <hongjiu.lu@intel.com>
43e02a8a 408
52327858
L
409 PR bootstrap/42306
410 * configure: Regenerated.
411 * Makefile.in: Likewise.
43e02a8a 412
92fa7608
RAE
4132009-11-19 Rafael Avila de Espindola <espindola@google.com>
414
415 PR bootstrap/42096
416 * lto-plugin.c (claim_file_handler): Print offsets in hex.
417
06bd7f56
RAE
4182009-11-12 Rafael Avila de Espindola <espindola@google.com>
419
420 * lto-plugin.c (write_resolution): Assume resolution_file is set.
421 Print the symbol name.
422 (all_symbols_read_handler): Create a resolution file.
423 Pass it to gcc.
424 (cleanup_handler): Remove the resolution file.
425 (process_option): Drop the -resolution option.
426
94086ef6
RAE
4272009-11-05 Rafael Avila de Espindola <espindola@google.com>
428
429 * lto-plugin.c (temp_obj_dir_name): Remove.
430 (arguments_file_name): New.
431 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
432 (exec_lto_wrapper): Create arguments file with make_temp_file.
433 (cleanup_handler): Don't remove the temporary directory. Remove the
434 arguments file.
435 (onload): Don't create the temporary directory.
436
7e9dc421
RG
4372009-11-04 Richard Guenther <rguenther@suse.de>
438 Rafael Avila de Espindola <espindola@google.com>
439
440 * lto-plugin.c (plugin_file_info): Remove temp field.
441 (cleanup_handler): Don't delete temporary objects.
442 (claim_file_handler): Don't create temporary objects.
443
1cddcdca
RAE
4442009-11-04 Rafael Avila de Espindola <espindola@google.com>
445
446 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
447
86ed04df
RAE
4482009-10-30 Rafael Avila de Espindola <espindola@google.com>
449
450 PR41871
451 * lto-plugin.c (claim_file_handler): Close files that we created.
452
aff4273c
RAE
4532009-10-28 Rafael Avila de Espindola <espindola@google.com>
454
455 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
456 LDPL_ERROR
457
4c0f4b0b
DG
4582009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
459
460 PR lto/41652
461 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
462 * configure: Regenerate.
463
03428d41
RG
4642009-10-26 Richard Guenther <rguenther@suse.de>
465
466 * configure.ac: Use AM_MAINTAINER_MODE.
467 * acinclude.m4: Remove.
468 * configure: Re-generate.
469 * Makefile.in: Likewise.
470 * aclocal.m4: Likewise.
471
941e566a
RE
4722009-10-19 Rafael Avila de Espindola <espindola@google.com>
473
474 PR40790
475 * configure: Regenerate.
476 * configure.ac: Add AC_TYPE_UINT64_T.
477
33662270
RAE
4782009-10-16 Rafael Avila de Espindola <espindola@google.com>
479
480 * lto-plugin.c (message): New variable.
481 (check): New function.
482 (parse_table_entry, translate, write_resolution,add_output_files,
483 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
484 assert.
485 (cleanup_handler): Use check instead of assert. Remove the arguments
486 file if it exists.
487
b10071c5
RAE
4882009-10-15 Rafael Avila de Espindola <espindola@google.com>
489
490 * lto-plugin.c (resolution_file): New.
491 (free_1): Update comment.
492 (free_2): Free resolution_file.
493 (write_resolution): Write resolution to specified file. Use the
494 syms array from the symbol table.
495 (all_symbols_read_handler): Delay call to free_1 past call to
496 write_resolution.
497 (process_option): Add a -resolution option.
498
076c7ebe
RG
4992009-10-13 Richard Guenther <rguenther@suse.de>
500
501 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
502 correct libiberty.
503 * Makefile.in: Regenerated.
504
d520c7fb
RAE
5052009-10-08 Rafael Avila de Espindola <espindola@google.com>
506
507 * lto-plugin.c (add_input_library): New.
508 (all_symbols_read_handler): Use add_input_library for items that
509 start with -l.
510 (process_option): Fit in 80 columns.
511 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
512
d7f09764
DN
5132009-10-02 Diego Novillo <dnovillo@google.com>
514
515 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
516 and -D_FILE_OFFSET_BITS=64.
517 * configure.ac: Add AC_SYS_LARGEFILE.
518 * configure: Regenerate.
519 * Makefile.in: Regenerate.
520 * lto-plugin.c: Fix copyright boilerplate.
521
5222009-10-02 Diego Novillo <dnovillo@google.com>
523
524 * Makefile.am (ACLOCAL_AMFLAGS): Define.
525 * aclocal.m4: Regenerate with aclocal-2.64
526 * acinclude.m4: Remove.
527 * Makefile.in: Regenerate with automake-1.11
528 * configure.ac (AC_PREREQ): Update to 2.64.
529 * configure: Regenerate.
530
5312009-10-02 Diego Novillo <dnovillo@google.com>
532
533 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
534 and -D_FILE_OFFSET_BITS=64.
535 * configure.ac: Add AC_SYS_LARGEFILE.
536 * configure: Regenerate.
537 * Makefile.in: Regenerate.
538 * lto-plugin.c: Fix copyright boilerplate.
539
5402009-10-02 Diego Novillo <dnovillo@google.com>
541
542 * Makefile.am (ACLOCAL_AMFLAGS): Define.
543 * aclocal.m4: Regenerate with aclocal-2.64
544 * acinclude.m4: Remove.
545 * Makefile.in: Regenerate with automake-1.11
546 * configure.ac (AC_PREREQ): Update to 2.64.
547 * configure: Regenerate.
548
5492009-10-02 Rafael Avila de Espindola <espindola@google.com>
550
551 * Makefile.am (liblto_plugin_la_SOURCES): Remove
552 $(top_srcdir)/../gcc/lto/common.c
553 * Makefile.in: Regenerate.
554
5552009-10-01 Rafael Avila de Espindola <espindola@google.com>
556
557 * lto-plugin.c (pass_through_items): New.
558 (num_pass_through_items): New.
559 (all_symbols_read_handler): Update to use the -pass-through option.
560 (process_option): Replace -libgcc with -pass-through.
561
5622009-09-30 Rafael Avila de Espindola <espindola@google.com>
563
564 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
565 register_cleanup to be set.
566
5672009-09-30 Rafael Avila de Espindola <espindola@google.com>
568
569 * Makefile.am: Remove all reference to ltosymtab.
570 * Makefile.in: Regenerate.
571 * lto-symtab.c: Remove.
572
5732009-05-21 Diego Novillo <dnovillo@google.com>
574
575 * configure.ac: Remove call to AC_CHECK_GELF.
576 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
577 * acinclude.m4: Do not include ../config/libelf.m4
578 * Makefile.am (LIBELFLIBS): Define.
579 (LIBELFINC): Define.
580 (AM_CPPFLAGS): Add $(LIBELFINC).
581 (ltosymtab_LDADD): Add $(LIBELFLIBS).
582 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
583 * lto-plugin.c: Always include <gelf.h>
584 * lto-symtab.c: Likewise.
585 * configure: Regenerate.
586 * Makefile.in: Regenerate.
587
5882009-03-23 Rafael Avila de Espindola <espindola@google.com>
589
590 * lto-plugin.c (libgcc_filename): New.
591 (all_symbols_read_handler): Pass libgcc to the linker.
592 (all_symbols_read_handler): Parse -libgcc
593
5942009-02-05 Rafael Avila de Espindola <espindola@google.com>
595
596 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
597 * Makefile.in: Regenerate.
598 * lto-plugin.c (add_output_files): Argument is now a FILE.
599 (exec_lto_wrapper): Use writeargv and pex.
600
6012009-02-04 Rafael Avila de Espindola <espindola@google.com>
602
603 Revert:
604 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
605 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
606
607
6082009-02-04 Rafael Avila de Espindola <espindola@google.com>
609
610 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
611
6122009-01-29 Rafael Avila de Espindola <espindola@google.com>
613
614 * lto-plugin.c: Include libiberty.h.
615 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
616 snprintf.
617
6182009-01-29 Rafael Avila de Espindola <espindola@google.com>
619
620 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
621 file to lto-wrapper.
622
6232009-01-28 Rafael Avila de Espindola <espindola@google.com>
624
625 * lto-plugin.c (plugin_file_info): Remove fd and elf.
626 (parse_table_entry): strdup entry->name and entry->comdat_key.
627 (free_1): Free name and comdat_key. Don't close the file. Don't call
628 elf_end.
629 (claim_file_handler): Always call elf_end.
630
6312008-12-23 Rafael Avila de Espindola <espindola@google.com>
632
633 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
634 -D_FILE_OFFSET_BITS=64
635 * Makefile.in: Regenerate
636
6372008-12-22 Rafael Avila de Espindola <espindola@google.com>
638
639 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
640 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
641 * Makefile.in: Regenerate.
642 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
643 * configure: Regenerate.
644 * configure.ac: Add AC_SUBST(target_noncanonical).
645
6462008-12-08 Rafael Avila de Espindola <espindola@google.com>
647
648 * lto-plugin.c: Include stdbool.h.
649 (debug, nop): Declare as bool.
650
6512008-12-08 Rafael Avila de Espindola <espindola@google.com>
652
653 * lto-plugin.c (nop): New.
654 (use_original_files): New.
655 (all_symbols_read_handler): Call use_original_files if nop is true.
656 (process_option): Parse the -nop option.
657
6582008-12-08 Rafael Avila de Espindola <espindola@google.com>
659
660 * lto-plugin.c (debug): New.
661 (exec_lto_wrapper): Print argv if debug is true.
662 (process_option): Process the -debug command line option.
663
6642008-12-03 Rafael Avila de Espindola <espindola@google.com>
665
666 * lto-plugin.c (process_option): The argument is now a single option,
667 not a space separated list.
668
6692008-12-02 Rafael Avila de Espindola <espindola@google.com>
670
671 * lto-plugin.c: Include sys/types.h and sys/wait.h
672 (output_files, num_output_files, lto_wrapper_argv,
673 lto_wrapper_num_args): New.
674 (free_2): Free output_files.
675 (write_resolution): Disable.
676 (add_output_files): New.
677 (exec_lto_wrapper): New.
678 (all_symbols_read_handler): Run lto-wrapper.
679 (claim_file_handler): Free lto_file.name and call elf_end.
680 (process_option): New.
681
6822008-11-26 Rafael Espindola <espindola@google.com>
683
684 * lto-plugin.c (add_input_file): New.
685 (get_section): Return NULL if get_section fails.
686 (write_resolution): New.
687 (all_symbols_read_handler): Call add_input_file.
688 (claim_file_handler): Unlink the correct file.
689 (onload): Record add_input_file.
690
6912008-09-23 Rafael Espindola <espindola@google.com>
692
693 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
694 Update the location of common.c.
695 * Makefile.in: Regenerate.
696 * common.c: Moved to gcc/lto.
697 * common.h: Moved to gcc/lto.
698 * lto-plugin.c: Update the location of common.h.
699 * lto-symtab.c: Update the location of common.h.
700
7012008-09-23 Rafael Espindola <espindola@google.com>
702
703 * common.c: Include common.h.
704 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
705 sizes.
706 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
707 explicit sizes.
708
7092008-09-23 Rafael Espindola <espindola@google.com>
710
711 * lto-plugin.c (plugin_file_info): Add temp.
712 (cleanup_handler): Only delete temporary files.
713 (claim_file_handler): Initialize lto_file.temp.
714
7152008-09-23 Rafael Espindola <espindola@google.com>
716
717 * plugin-api.h: Moved to include.
718
7192008-09-23 Rafael Espindola <espindola@google.com>
720
721 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
722 format.
723
7242008-09-22 Rafael Espindola <espindola@google.com>
725
726 * plugin-api.h: Copy from binutils' cvs.
727
7282008-09-22 Rafael Espindola <espindola@google.com>
729
730 * lto-symtab.c (get_symbols, add_symbols): Update signature.
731 * plugin-api.h: Copy from binutils' cvs.
732
7332008-09-22 Rafael Espindola <espindola@google.com>
734
735 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
736 Make extern
737
7382008-09-10 Rafael Espindola <espindola@google.com>
739
740 * lto-plugin.c (onload): add missing break statements and asserts.
741 * lto-symtab.c (claim_file_handler): Make it static.
742 (all_symbols_read_handler): Make it static.
743 (all_file_handles): Make it static.
744 (num_file_handles): Make it static.
745 (register_claim_file): Make it static.
746 (register_object): Indent properly.
747
7482008-09-10 Rafael Avila de Espindola <espindola@google.com>
749
750 * Makefile.am (ltosymtab_LDADD): Add -lelf.
751 * Makefiel.in: Regenerate.
752 * lto-plugin.c: Include ar.h.
753 (claim_file_handler): Handle file->offset != 0.
754 * lto-symtab.c: Include gelf.h.
755 (all_file_handles): Change type.
756 (register_object): New.
757 (register_file): Add support for archives.
758 (resolve): Update to new type of all_file_handles.
759 (print): Update to new type of all_file_handles.
760 (free_all): Update to new type of all_file_handles.
761 (main): Update to new type of all_file_handles.
762
7632008-09-10 Rafael Avila de Espindola <espindola@google.com>
764
765 * lto-plugin.c (get_string_table): Remove.
766 (get_section): Use elf_strptr instead of get_string_table.
767
7682008-09-08 Doug Kwan <dougkwan@google.com>
769
770 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
771 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
772
7732008-09-08 Rafael Avila de Espindola <espindola@google.com>
774
775 * Makefile.am (ltosymtab_SOURCES): add common.c.
776 (ltosymtab_CFLAGS): New.
777 (liblto_plugin_la_SOURCES): Add common.c.
778 * Makefile.in: Regenerate.
779 * common.c: New.
780 * common.h: New.
781 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
782 (plugin_symtab): New.
783 (plugin_file_info): New.
784 (register_all_symbols_read): New.
785 (get_symbols): New.
786 (claimed_files): New.
787 (num_claimed_files): New.
788 (translate): Don't drop the slot number.
789 (free_1): New.
790 (free_2): New.
791 (all_symbols_read_handler): New.
792 (claim_file_handler): Record every claimed file.
793 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
794 LDPT_GET_SYMBOLS.
795 * lto-symtab.c: Include stdlib.h, string.h and common.h.
796 (current_file_handle): Remove.
797 (ld_plugin_all_symbols_read_handler): New.
798 (plugin_handle): New.
799 (file_handle): New.
800 (all_file_handles): New.
801 (num_file_handles): New.
802 (get_symbols): New.
803 (register_all_symbols_read): New.
804 (add_symbols): Don't print the symbols, just record them.
805 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
806 LDPT_GET_SYMBOLS.
807 (load_plugin): Use plugin_handle.
808 (register_file): Add the file handle to all_file_handles.
809 (resolve): New.
810 (print): New.
811 (unload_plugin): New.
812 (free_all): New.
813 (main): Call all_symbols_read_handler and free resources.
814
8152008-09-03 Rafael Avila de Espindola <espindola@google.com>
816
817 * Makefile.am (AM_CFLAGS): New.
818 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
819 (lib_LTLIBRARIES): New.
820 (liblto_plugin_la_SOURCES): New.
821 (liblto_plugin_la_LIBADD): New.
822 * Makefile.in: Regenerate.
823 * acinclude.m4: Don't include ../config/acx.m4 and
824 ../config/no-executables.m4.
825 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
826 ../libtool.m4.
827 * aclocal.m4: Regenerate.
828 * configure: Regenerate.
829 * configure.ac: Use AM_PROG_LIBTOOL.
830 * lto-plugin.c: New.
831 * lto-symtab.c: Rewrite to use the plugin.
832 * plugin-api.h: New.
833
8342008-08-25 Rafael Avila de Espindola <espindola@google.com>
835
836 * configure: Regenerate.
837 * configure.ac: Use AC_CHECK_GELF.
838 * lto-symtab.c: Include gelf.h.
839 (get_string_table): Use size independent API.
840 (printTable): Use lld to print 64 bit integers.
841
8422008-08-22 Rafael Avila de Espindola <espindola@google.com>
843
844 * lto-symtab.c (parse_table_entry): Assert entry->kind and
845 entry->visibility are valid.
846
8472008-07-22 Rafael Avila de Espindola <espindola@google.com>
848 * lto-symtab.c (table_entry): Add comdat.
849 (parse_table_entry): Read comdat.
850
8512008-08-21 Rafael Espindola <espindola@google.com>
852
853 * Makefile.am: New.
854 * Makefile.in: New.
855 * acinclude.m4: New.
856 * aclocal.m4: New.
857 * configure: New.
858 * configure.ac: New.
859 * lto-symtab.c: New.