]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/ChangeLog
configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
[thirdparty/gcc.git] / lto-plugin / ChangeLog
CommitLineData
dcbc9df9
UB
12015-07-02 Uros Bizjak <ubizjak@gmail.com>
2
3 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
4 * configure: Regenerate.
5 * config.h.in: Ditto.
6
ed9b4ae3
MH
72015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8
9 * Makefile.am: Drop 'by automake version' from top-level comment.
10 * Makefile.in: Regenerated with automake-1.11.6.
11 * aclocal.m4: Likewise.
12 * configure: Likewise.
13
514ba9e4
L
142015-02-06 H.J. Lu <hongjiu.lu@intel.com>
15
16 * lto-plugin.c (release_input_file): Removed.
17 (claim_file_handler): Don't call release_input_file.
18 (onload): Don't set release_input_file.
19
11c17039
L
202015-02-05 H.J. Lu <hongjiu.lu@intel.com>
21
22 * lto-plugin.c (claim_file_handler): Pass handle to
23 release_input_file.
24
06fa4f00
L
252015-02-05 H.J. Lu <hongjiu.lu@intel.com>
26
27 * lto-plugin.c (claim_file_handler): Call release_input_file only
28 if file is claimed.
29
380c25ea
L
302015-01-28 H.J. Lu <hongjiu.lu@intel.com>
31
32 * lto-plugin.c (claim_file_handler): Call release_input_file only
33 if it is not NULL.
34
1e081eda
L
352015-01-28 H.J. Lu <hongjiu.lu@intel.com>
36
37 PR lto/64837
38 * lto-plugin.c (release_input_file): New.
39 (claim_file_handler): Call release_input_file.
40 (onload): Set release_input_file.
41
443743fd
IV
422014-12-09 Ilya Verbin <ilya.verbin@intel.com>
43
44 * lto-plugin.c (offload_files, num_offload_files): New static variables.
45 (free_1): Use arguments instead of global variables.
46 (free_2): Free offload_files.
47 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
48 arguments.
49 (claim_file_handler): Do not add file to claimed_files if it contains
50 offload sections without LTO sections. Add it to offload_files instead.
51
a699d672
L
522014-11-21 H.J. Lu <hongjiu.lu@intel.com>
53
54 PR bootstrap/63784
55 * configure: Regenerated.
56
fc8b3540
IV
572014-11-13 Ilya Verbin <ilya.verbin@intel.com>
58 Bernd Schmidt <bernds@codesourcery.com>
59 Andrey Turetskiy <andrey.turetskiy@intel.com>
60 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
61
62 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
63 (struct plugin_objfile): Add new field "offload".
64 (process_offload_section): New static function.
65 (claim_file_handler): Claim file if it contains offload sections.
66
85c64bbe
BS
672014-11-13 Bernd Schmidt <bernds@codesourcery.com>
68 Thomas Schwinge <thomas@codesourcery.com>
69 Ilya Verbin <ilya.verbin@intel.com>
70 Andrey Turetskiy <andrey.turetskiy@intel.com>
71
72 * Makefile.am (libexecsubdir): Tweak for the possibility of being
73 configured for offload compiler.
74 (accel_dir_suffix, real_target_noncanonical): New variables substituted
75 by configure.
76 * Makefile.in: Regenerate.
77 * configure: Regenerate.
78 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
79 variables.
80
ebf6d33b
FXC
812014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
82
83 PR target/63610
84 * configure: Regenerate.
85
43f4a446
L
862014-08-26 H.J. Lu <hongjiu.lu@intel.com>
87
88 PR bootstrap/62260
89 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
90 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
91 $host_subdir.
92 * Makefile.in: Regenerated.
93 * configure: Likewise.
94
2a7a8388
TS
952014-06-13 Thomas Schwinge <thomas@codesourcery.com>
96
97 * configure.ac (--with-libiberty): New configure option.
98 * configure: Regenerate.
99 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
100 variables.
101 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
102 (liblto_plugin_la_DEPENDENCIES): Use them.
103 * Makefile.in: Regenerate.
104
a2555c65
RO
1052014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
106
107 PR lto/60981
108 * configure.ac: Check for -static-libgcc.
109 * configure: Regenerate.
110
ffe7f7a7
JJ
1112014-04-17 Jakub Jelinek <jakub@redhat.com>
112
4f148bbc
JJ
113 PR sanitizer/56781
114 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
115 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
116 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
117 over ../libiberty/pic/libiberty.a if the former exists.
118 * Makefile.in: Regenerated.
119
ffe7f7a7
JJ
120 PR sanitizer/56781
121 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
122 * Makefile.in: Regenerated.
123
21b624f0
RB
1242014-04-02 Richard Biener <rguenther@suse.de>
125
126 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
127 is set in COLLECT_GCC_OPTIONS.
128
2486c24a
RB
1292014-03-28 Richard Biener <rguenther@suse.de>
130
131 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
132
5523efdf
RO
1332014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
134
135 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
136 for gcc.
137 * configure: Regenerate.
138 * Makefile.am (AM_LDFLAGS): New variable.
139 (liblto_plugin_la_LDFLAGS): Add it.
140 * Makefile.in: Regenerate.
141
3cbe17f7
AM
1422013-09-20 Alan Modra <amodra@gmail.com>
143
144 * configure: Regenerate.
145
de973ab7
DE
1462012-09-14 David Edelsohn <dje.gcc@gmail.com>
147
148 * configure: Regenerated.
149
3f417959
JM
1502012-05-29 Joseph Myers <joseph@codesourcery.com>
151
152 * lto-plugin.c: Fix typo.
153
e6d5f8c9
L
1542012-05-16 H.J. Lu <hongjiu.lu@intel.com>
155
156 * configure: Regenerated.
157
8cfa7899
KT
1582012-02-22 Kai Tietz <ktietz@redhat.com>
159
160 PR lto/50616
161 * lto-plugin.c (PRI_LL): New macro.
162 (dump_symtab): Use PRI_LL instead of ll in print.
163 (process_symtab): Use PRI_LL instead of ll in scan.
164
4a5e00ca
AS
1652011-12-20 Andreas Schwab <schwab@linux-m68k.org>
166
167 * configure: Regenerate.
168
095af58f
AS
1692011-12-19 Andreas Schwab <schwab@linux-m68k.org>
170
171 * configure: Regenerate.
172
c6084f68
AT
1732011-11-21 Andreas Tobler <andreast@fgznet.ch>
174
175 * configure: Regenerate.
176
ed0d2da0
JH
1772011-10-02 Jan Hubicka <jh@suse.cz>
178
179 PR lto/47247
180 * lto-plugin.c (get_symbols_v2): New variable.
181 (write_resolution): Use V2 API when available.
182 (onload): Handle LDPT_GET_SYMBOLS_V2.
183
ad7715f3
L
1842011-09-30 H.J. Lu <hongjiu.lu@intel.com>
185 Andi Kleen <ak@linux.intel.com>
186
187 PR lto/50568
188 * lto-plugin.c (sym_aux): Change id to unsigned long long.
189 (plugin_symtab): Likewise.
190 (dump_symtab): Likewise.
191 (resolve_conflicts): Likewise.
192 (process_symtab): Likewise.
193
f3016c47
RG
1942011-08-10 Richard Guenther <rguenther@suse.de>
195
196 PR bootstrap/49907
197 lto-plugin/
198 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
199 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
200 * configure: Regenerate.
201 * Makefile.in: Likewise.
202 * aclocal.m4: Likewise.
203
04695783
JM
2042011-04-20 Jim Meyering <meyering@redhat.com>
205
206 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
207
3b8c1a3f
RG
2082011-04-05 Richard Guenther <rguenther@suse.de>
209
210 PR bootstrap/48431
211 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
212
029c8f3e
RW
2132011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
214
215 * Makefile.in: Regenerate.
216 * aclocal.m4: Regenerate.
217 * configure: Regenerate.
218
3917813c
RW
2192011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
220
221 * Makefile.am (all-local): Rename from 'all'.
222 * Makefile.in: Regenerate.
223
f3d533d3
AO
2242011-02-12 Alexandre Oliva <aoliva@redhat.com>
225
226 PR lto/47225
227 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
228 (liblto_plugin_la_LDFLAGS): Add -module.
229 (copy_lto_plugin): Renamed to...
230 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
231 of static modules.
232 * Makefile.in: Rebuild.
233
f43c3935
KT
2342011-02-07 Kai Tietz <kai.tietz@onevision.com>
235
236 PR lto/47225
237 * Makefile.am (Wc): New helper for encoding -Wc,.
238 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
239 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
240 * Makefile.in: Regenerated.
241
e6d926d7
PB
2422011-02-07 Paolo Bonzini <bonzini@gnu.org>
243
244 Revert:
245
246 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
247
248 PR lto/47225
249 * Makefile.am (Wl): New helper for encoding -Wl,.
250 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
251 * Makefile.in: Regenerated.
252
c7b5125d
KT
2532011-02-07 Kai Tietz <kai.tietz@onevision.com>
254
255 PR lto/47225
256 * Makefile.am (Wl): New helper for encoding -Wl,.
257 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
258 * Makefile.in: Regenerated.
259
e3bb089d
ILT
2602011-01-25 Ian Lance Taylor <iant@google.com>
261
262 * lto-plugin.c (gold_version): New static variable.
263 (all_symbols_read_handler): Don't check pass_through_items if
264 using gold 1.11 or later.
265 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
266
47782a9d
RG
2672011-01-12 Richard Guenther <rguenther@suse.de>
268
269 PR lto/47264
270 * lto-plugin.c (parse_table_entry): Use memcpy to access
271 unaligned fields.
272
5b64bab9
DK
2732010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
274
275 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
276 * Makefile.in: Regenerate.
277
be3ea0c8
RO
2782010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
279
280 Revert last change.
281
dd8587d6
RO
2822010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
283
284 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
285 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
286 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
287 * Makefile.in: Regenerate.
288
77754180
DK
2892010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
290
291 PR middle-end/46674
292 PR lto/43157
293 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
294 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
295 * configure: Regenerate.
296 * config.h.in: Likewise.
297
7de6ba7a
DK
2982010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
299
300 PR target/40125
301 PR lto/46695
302 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
303 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
304 override -bindir setting.
305 * aclocal.m4: Regenerate.
306 * configure: Regenerate.
307 * Makefile.in: Regenerate.
308
ec692d5f
KT
3092010-12-05 Kai Tietz <kai.tietz@onevision.com>
310
311 * config.h.in: Regenerated.
312 * configure: Regenerated.
313 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
314 * lto-plugin.c (WIFEXITED): Define default.
315 (WEXITSTATUS): Likeiwse.
316
a2254c5d
KT
3172010-12-01 Kai Tietz <kai.tietz@onevision.com>
318
319 * config.h.in: Regenerated.
320 * configure: Regenerated.
321 * Makefile.in: Regenerated.
322 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
323 * lto-plugin.c: Include sys/wait.h conditionally.
324 * aclocal.m4: Regenerated.
325
44538c62
KT
3262010-11-13 Kai Tietz <kai.tietz@onevision.com>
327
328 * lto-plugin.c (add_output_files): Fix memory leak.
329
d19e0f01
DK
3302010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
331
332 PR bootstrap/46397
333 PR bootstrap/46362
334 * configure.ac: Add AC_TYPE_INT64_T test.
335 * config.h.in: Regenerate.
336 * configure: Likewise.
337 * lto-plugin.c (debug): Use char not bool.
338 (nop): Likewise.
339 (check_1): Rename from check, and use int not bool for gate argument.
340 (check): Macro wrapper for the above to coerce gate argument into
341 boolean-valued integer in case it has pointer type.
342 (parse_table_entry): Use 0 not false.
343 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
344 into two 32-bit parts and printing as hex ints.
345
37da3688
DK
3462010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
347
348 PR lto/46291
349 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
350
48215350
DK
3512010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
352
353 PR lto/46273
354 * lto-plugin.h: Delete.
355 * lto-plugin-elf.c: Likewise.
356 * lto-plugin-coff.c: Likewise.
357 * configure.ac: Don't use libelf, don't source config.gcc.
358 (LIBELFLIBS): Delete.
359 (LIBELFINC): Delete.
360 (LTO_FORMAT): Delete.
361 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
362 (config.h): Add AC_CONFIG_HEADERS directive.
363 * Makefile.am (LIBELFLIBS): Delete.
364 (LIBELFINC): Delete.
365 (LTO_FORMAT): Delete.
366 (DEFS): Import.
367 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
368 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
369 any object-format-specific source file in the link.
370 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
371 * config.h.in: Generate.
372 * configure: Regenerate.
373 * Makefile.in: Likewise.
374 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
375 (LTO_SEGMENT_NAME): New definition.
376 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
377 (LTO_SECTION_PREFIX_LEN): New definition.
378 (struct sym_aux): Struct definition moved here from lto-plugin.h.
379 (struct plugin_symtab): Likewise.
380 (struct plugin_objfile): Likewise.
381 (struct plugin_objfile): New struct def.
382 (enum symbol_style): New enum type.
383 (add_symbols): Make static.
384 (claimed_files): Likewise.
385 (num_claimed_files): Likewise.
386 (sym_style): New global.
387 (check): Make static.
388 (parse_table_entry): Likewise. Respect sym_style when extracting
389 symbol from symtab entry.
390 (translate): Make static.
391 (resolve_conflicts): Likewise.
392 (process_symtab): New function, per-section callback version of
393 old object-format-specific handling from deleted lto-plugin-elf.c.
394 (claim_file_handler): Convert ELF-specific version from deleted
395 lto-plugin-elf.c to simple_object interface and move here.
396 (process_options): Allow new '-sym-style=' option.
397 (onload): Don't call deleted onload_format_checks hook.
398
9df2493c
KT
3992010-10-11 Kai Tietz <kai.tietz@onevision.com>
400
401 * lto-plugin.c (dump_symtab): Correct printf argument type.
402 (finish_conflict_resolution): Initialize resolution.
403
73d5e770
L
4042010-10-08 H.J. Lu <hongjiu.lu@intel.com>
405
406 PR bootstrap/45951
407 * configure.ac: Add AC_CANONICAL_SYSTEM.
408 * configure: Regenerated.
409
1cd0b716
DK
4102010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
411
412 * configure.ac: Source config.gcc to determine lto_binary_reader.
413 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
414 * Makefile.am (LTO_FORMAT): Import.
415 (liblto_plugin_la_SOURCES): Add object format dependent module
416 defined by LTO_FORMAT.
417 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
418 and work around libtool warning.
419 * configure: Regenerate.
420 * Makefile.in: Likewise.
421 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
422 (struct sym_aux): Likewise.
423 (struct plugin_symtab): Likewise.
424 (struct plugin_file_info): Likewise.
425 (LTO_SECTION_PREFIX): Likewise.
426 (add_symbols): Make non-static.
427 (claimed_files): Likewise.
428 (num_claimed_files): Likewise.
429 (check): Likewise.
430 (parse_table_entry): Likewise.
431 (translate): Likewise.
432 (resolve_conflicts): Likewise.
433 (process_symtab): Move to new lto-plugin-elf.c object format dependent
434 source file.
435 (claim_file_handler): Likewise, and make non-static.
436 (onload): Call new onload_format_checks function.
437 * lto-plugin.h: New file.
438 (LTO_SECTION_PREFIX): Move here.
439 (struct sym_aux): Likewise.
440 (struct plugin_symtab): Likewise.
441 (struct plugin_file_info): Likewise.
442 (claim_file_handler): Add new function prototype.
443 (onload_format_checks): Likewise.
444 (check): Declare extern.
445 (translate): Likewise.
446 (parse_table_entry): Likewise.
447 (resolve_conflicts): Likewise.
448 (add_symbols): Likewise.
449 (claimed_files): Likewise.
450 (num_claimed_files): Likewise.
451 * lto-plugin-elf.c (process_symtab): Move here.
452 (claim_file_handler): Likewise, and make non-static.
453 (onload_format_checks): New function factored out from onload.
454 * lto-plugin-coff.c (claim_file_handler): New function stub.
455 (onload_format_checks): Likewise.
456
d2c57fe9
AK
4572010-08-05 Andi Kleen <ak@linux.intel.com>
458
459 * lto-plugin.c: Include <hashtab.h>
460 (sym_aux): Add next_conflict field to save conflict chains.
461 (plugin_file_info): Add conflicts symtab.
462 (parse_table_entry): Initialize aux->next_conflict.
463 (process_symtab): Increment found.
464 (dump_symtab): Add.
465 (finish_conflict_resolution): Add.
466 (free_symtab): Add.
467 (write_resolution): Remove symbols loop and move into
468 dump_symtab. Call dump_symtab for main symbol and conflicts table.
469 Call free_symtab to free conflicts table.
470 (SWAP): Add.
471 (eq_sym): Add.
472 (hash_sym): Add.
473 (symbol_strength): Add.
474 (resolve_conflicts): Add.
475 (claim_file_handler): Add n variable. Check return value of
476 process_symtab. Call resolve_conflicts.
477
ecdbd01a 4782010-07-27 Andi Kleen <ak@linux.intel.com>
90e26247
AK
479
480 * lto-plugin.c (translate): Remove debug fprintf.
481
9477ccb2
L
4822010-07-23 H.J. Lu <hongjiu.lu@intel.com>
483
484 PR bootstrap/45042
485 * lto-plugin.c (translate): Cast to unsigned long.
486
ecdbd01a 4872010-07-23 Andi Kleen <ak@linux.intel.com>
73ce4d1e
AK
488
489 PR lto/44992
490 * lto-plugin.c (sym_aux): Add.
491 (plugin_symtab): Remove slots. Add aux and id.
492 (parse_table_entry): Change to use aux instead of slots.
493 (LTO_SECTION_PREFIX): Add.
494 (translate): Improve buffer allocation. Change to append
495 symbols to existing out buffer.
496 (get_section): Remove.
497 (process_symtab): Add.
498 (free_2): Free symtab->aux.
499 (write_resolution): Handle aux instead of slots.
500 Print sub id to resolution file.
501 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
502 calls with call to process_symtab.
503
553fc582
RG
5042010-07-22 Richard Guenther <rguenther@suse.de>
505
506 * Makefile.am: New copy_lto_plugin rule to install the plugin
507 into ../gcc.
508 * Makefile.in: Regenerated.
509
bdc89f9e
RG
5102010-05-21 Richard Guenther <rguenther@suse.de>
511
512 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
513
5cd0e96b
RG
5142010-05-07 Richard Guenther <rguenther@suse.de>
515
516 * lto-plugin.c (free_2): Do not free resolution_file.
517 (write_resolution): Check that we were passed a resolution file.
518 (all_symbols_read_handler): Adjust.
519 (cleanup_handler): Do not remove the resolution file.
520 (process_option): Handle -fresolution=.
521
13917ae3
RW
5222010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
523
524 PR other/43620
525 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
526 * Makefile.in: Regenerate.
527
ed0f0c0f
RG
5282010-04-23 Richard Guenther <rguenther@suse.de>
529
530 PR lto/41550
531 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
532 (translate): Likewise.
533 (all_symbols_read_handler): Likewise.
534 (claim_file_handler): Likewise.
535 (process_option): Likewise.
536 (add_output_files): Likewise. Remove filename length limit.
537
4d9e8446
RW
5382010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
539
540 * Makefile.in: Regenerate.
541 * aclocal.m4: Regenerate.
542
a8a5ac48
DG
5432010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
544
545 PR lto/43336
546 * lto-plugin.c (cleanup_handler): Delete temporary output files.
547
c164615b
RG
5482010-01-11 Richard Guenther <rguenther@suse.de>
549
550 PR lto/41569
551 * Makefile.am: Disable dependencies.
552 * Makefile.in: Regenerated.
553
f0d61983
L
5542010-01-03 H.J. Lu <hongjiu.lu@intel.com>
555
556 PR lto/42520
557 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
558 if -v is passed.
559
52327858 5602009-12-05 H.J. Lu <hongjiu.lu@intel.com>
43e02a8a 561
52327858
L
562 PR bootstrap/42306
563 * configure: Regenerated.
564 * Makefile.in: Likewise.
43e02a8a 565
92fa7608
RAE
5662009-11-19 Rafael Avila de Espindola <espindola@google.com>
567
568 PR bootstrap/42096
569 * lto-plugin.c (claim_file_handler): Print offsets in hex.
570
06bd7f56
RAE
5712009-11-12 Rafael Avila de Espindola <espindola@google.com>
572
573 * lto-plugin.c (write_resolution): Assume resolution_file is set.
574 Print the symbol name.
575 (all_symbols_read_handler): Create a resolution file.
576 Pass it to gcc.
577 (cleanup_handler): Remove the resolution file.
578 (process_option): Drop the -resolution option.
579
94086ef6
RAE
5802009-11-05 Rafael Avila de Espindola <espindola@google.com>
581
582 * lto-plugin.c (temp_obj_dir_name): Remove.
583 (arguments_file_name): New.
584 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
585 (exec_lto_wrapper): Create arguments file with make_temp_file.
586 (cleanup_handler): Don't remove the temporary directory. Remove the
587 arguments file.
588 (onload): Don't create the temporary directory.
589
7e9dc421
RG
5902009-11-04 Richard Guenther <rguenther@suse.de>
591 Rafael Avila de Espindola <espindola@google.com>
592
593 * lto-plugin.c (plugin_file_info): Remove temp field.
594 (cleanup_handler): Don't delete temporary objects.
595 (claim_file_handler): Don't create temporary objects.
596
1cddcdca
RAE
5972009-11-04 Rafael Avila de Espindola <espindola@google.com>
598
599 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
600
86ed04df
RAE
6012009-10-30 Rafael Avila de Espindola <espindola@google.com>
602
603 PR41871
604 * lto-plugin.c (claim_file_handler): Close files that we created.
605
aff4273c
RAE
6062009-10-28 Rafael Avila de Espindola <espindola@google.com>
607
608 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
609 LDPL_ERROR
610
4c0f4b0b
DG
6112009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
612
613 PR lto/41652
614 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
615 * configure: Regenerate.
616
03428d41
RG
6172009-10-26 Richard Guenther <rguenther@suse.de>
618
619 * configure.ac: Use AM_MAINTAINER_MODE.
620 * acinclude.m4: Remove.
621 * configure: Re-generate.
622 * Makefile.in: Likewise.
623 * aclocal.m4: Likewise.
624
941e566a
RE
6252009-10-19 Rafael Avila de Espindola <espindola@google.com>
626
627 PR40790
628 * configure: Regenerate.
629 * configure.ac: Add AC_TYPE_UINT64_T.
630
33662270
RAE
6312009-10-16 Rafael Avila de Espindola <espindola@google.com>
632
633 * lto-plugin.c (message): New variable.
634 (check): New function.
635 (parse_table_entry, translate, write_resolution,add_output_files,
636 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
637 assert.
638 (cleanup_handler): Use check instead of assert. Remove the arguments
639 file if it exists.
640
b10071c5
RAE
6412009-10-15 Rafael Avila de Espindola <espindola@google.com>
642
643 * lto-plugin.c (resolution_file): New.
644 (free_1): Update comment.
645 (free_2): Free resolution_file.
646 (write_resolution): Write resolution to specified file. Use the
647 syms array from the symbol table.
648 (all_symbols_read_handler): Delay call to free_1 past call to
649 write_resolution.
650 (process_option): Add a -resolution option.
651
076c7ebe
RG
6522009-10-13 Richard Guenther <rguenther@suse.de>
653
654 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
655 correct libiberty.
656 * Makefile.in: Regenerated.
657
d520c7fb
RAE
6582009-10-08 Rafael Avila de Espindola <espindola@google.com>
659
660 * lto-plugin.c (add_input_library): New.
661 (all_symbols_read_handler): Use add_input_library for items that
662 start with -l.
663 (process_option): Fit in 80 columns.
664 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
665
d7f09764
DN
6662009-10-02 Diego Novillo <dnovillo@google.com>
667
668 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
669 and -D_FILE_OFFSET_BITS=64.
670 * configure.ac: Add AC_SYS_LARGEFILE.
671 * configure: Regenerate.
672 * Makefile.in: Regenerate.
673 * lto-plugin.c: Fix copyright boilerplate.
674
6752009-10-02 Diego Novillo <dnovillo@google.com>
676
677 * Makefile.am (ACLOCAL_AMFLAGS): Define.
678 * aclocal.m4: Regenerate with aclocal-2.64
679 * acinclude.m4: Remove.
680 * Makefile.in: Regenerate with automake-1.11
681 * configure.ac (AC_PREREQ): Update to 2.64.
682 * configure: Regenerate.
683
6842009-10-02 Diego Novillo <dnovillo@google.com>
685
686 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
687 and -D_FILE_OFFSET_BITS=64.
688 * configure.ac: Add AC_SYS_LARGEFILE.
689 * configure: Regenerate.
690 * Makefile.in: Regenerate.
691 * lto-plugin.c: Fix copyright boilerplate.
692
6932009-10-02 Diego Novillo <dnovillo@google.com>
694
695 * Makefile.am (ACLOCAL_AMFLAGS): Define.
696 * aclocal.m4: Regenerate with aclocal-2.64
697 * acinclude.m4: Remove.
698 * Makefile.in: Regenerate with automake-1.11
699 * configure.ac (AC_PREREQ): Update to 2.64.
700 * configure: Regenerate.
701
7022009-10-02 Rafael Avila de Espindola <espindola@google.com>
703
704 * Makefile.am (liblto_plugin_la_SOURCES): Remove
705 $(top_srcdir)/../gcc/lto/common.c
706 * Makefile.in: Regenerate.
707
7082009-10-01 Rafael Avila de Espindola <espindola@google.com>
709
710 * lto-plugin.c (pass_through_items): New.
711 (num_pass_through_items): New.
712 (all_symbols_read_handler): Update to use the -pass-through option.
713 (process_option): Replace -libgcc with -pass-through.
714
7152009-09-30 Rafael Avila de Espindola <espindola@google.com>
716
717 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
718 register_cleanup to be set.
719
7202009-09-30 Rafael Avila de Espindola <espindola@google.com>
721
722 * Makefile.am: Remove all reference to ltosymtab.
723 * Makefile.in: Regenerate.
724 * lto-symtab.c: Remove.
725
7262009-05-21 Diego Novillo <dnovillo@google.com>
727
728 * configure.ac: Remove call to AC_CHECK_GELF.
729 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
730 * acinclude.m4: Do not include ../config/libelf.m4
731 * Makefile.am (LIBELFLIBS): Define.
732 (LIBELFINC): Define.
733 (AM_CPPFLAGS): Add $(LIBELFINC).
734 (ltosymtab_LDADD): Add $(LIBELFLIBS).
735 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
736 * lto-plugin.c: Always include <gelf.h>
737 * lto-symtab.c: Likewise.
738 * configure: Regenerate.
739 * Makefile.in: Regenerate.
740
7412009-03-23 Rafael Avila de Espindola <espindola@google.com>
742
743 * lto-plugin.c (libgcc_filename): New.
744 (all_symbols_read_handler): Pass libgcc to the linker.
745 (all_symbols_read_handler): Parse -libgcc
746
7472009-02-05 Rafael Avila de Espindola <espindola@google.com>
748
749 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
750 * Makefile.in: Regenerate.
751 * lto-plugin.c (add_output_files): Argument is now a FILE.
752 (exec_lto_wrapper): Use writeargv and pex.
753
7542009-02-04 Rafael Avila de Espindola <espindola@google.com>
755
756 Revert:
757 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
758 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
759
760
7612009-02-04 Rafael Avila de Espindola <espindola@google.com>
762
763 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
764
7652009-01-29 Rafael Avila de Espindola <espindola@google.com>
766
767 * lto-plugin.c: Include libiberty.h.
768 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
769 snprintf.
770
7712009-01-29 Rafael Avila de Espindola <espindola@google.com>
772
773 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
774 file to lto-wrapper.
775
7762009-01-28 Rafael Avila de Espindola <espindola@google.com>
777
778 * lto-plugin.c (plugin_file_info): Remove fd and elf.
779 (parse_table_entry): strdup entry->name and entry->comdat_key.
780 (free_1): Free name and comdat_key. Don't close the file. Don't call
781 elf_end.
782 (claim_file_handler): Always call elf_end.
783
7842008-12-23 Rafael Avila de Espindola <espindola@google.com>
785
786 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
787 -D_FILE_OFFSET_BITS=64
788 * Makefile.in: Regenerate
789
7902008-12-22 Rafael Avila de Espindola <espindola@google.com>
791
792 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
793 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
794 * Makefile.in: Regenerate.
795 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
796 * configure: Regenerate.
797 * configure.ac: Add AC_SUBST(target_noncanonical).
798
7992008-12-08 Rafael Avila de Espindola <espindola@google.com>
800
801 * lto-plugin.c: Include stdbool.h.
802 (debug, nop): Declare as bool.
803
8042008-12-08 Rafael Avila de Espindola <espindola@google.com>
805
806 * lto-plugin.c (nop): New.
807 (use_original_files): New.
808 (all_symbols_read_handler): Call use_original_files if nop is true.
809 (process_option): Parse the -nop option.
810
8112008-12-08 Rafael Avila de Espindola <espindola@google.com>
812
813 * lto-plugin.c (debug): New.
814 (exec_lto_wrapper): Print argv if debug is true.
815 (process_option): Process the -debug command line option.
816
8172008-12-03 Rafael Avila de Espindola <espindola@google.com>
818
819 * lto-plugin.c (process_option): The argument is now a single option,
820 not a space separated list.
821
8222008-12-02 Rafael Avila de Espindola <espindola@google.com>
823
824 * lto-plugin.c: Include sys/types.h and sys/wait.h
825 (output_files, num_output_files, lto_wrapper_argv,
826 lto_wrapper_num_args): New.
827 (free_2): Free output_files.
828 (write_resolution): Disable.
829 (add_output_files): New.
830 (exec_lto_wrapper): New.
831 (all_symbols_read_handler): Run lto-wrapper.
832 (claim_file_handler): Free lto_file.name and call elf_end.
833 (process_option): New.
834
8352008-11-26 Rafael Espindola <espindola@google.com>
836
837 * lto-plugin.c (add_input_file): New.
838 (get_section): Return NULL if get_section fails.
839 (write_resolution): New.
840 (all_symbols_read_handler): Call add_input_file.
841 (claim_file_handler): Unlink the correct file.
842 (onload): Record add_input_file.
843
8442008-09-23 Rafael Espindola <espindola@google.com>
845
846 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
847 Update the location of common.c.
848 * Makefile.in: Regenerate.
849 * common.c: Moved to gcc/lto.
850 * common.h: Moved to gcc/lto.
851 * lto-plugin.c: Update the location of common.h.
852 * lto-symtab.c: Update the location of common.h.
853
8542008-09-23 Rafael Espindola <espindola@google.com>
855
856 * common.c: Include common.h.
857 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
858 sizes.
859 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
860 explicit sizes.
861
8622008-09-23 Rafael Espindola <espindola@google.com>
863
864 * lto-plugin.c (plugin_file_info): Add temp.
865 (cleanup_handler): Only delete temporary files.
866 (claim_file_handler): Initialize lto_file.temp.
867
8682008-09-23 Rafael Espindola <espindola@google.com>
869
870 * plugin-api.h: Moved to include.
871
8722008-09-23 Rafael Espindola <espindola@google.com>
873
874 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
875 format.
876
8772008-09-22 Rafael Espindola <espindola@google.com>
878
879 * plugin-api.h: Copy from binutils' cvs.
880
8812008-09-22 Rafael Espindola <espindola@google.com>
882
883 * lto-symtab.c (get_symbols, add_symbols): Update signature.
884 * plugin-api.h: Copy from binutils' cvs.
885
8862008-09-22 Rafael Espindola <espindola@google.com>
887
888 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
889 Make extern
890
8912008-09-10 Rafael Espindola <espindola@google.com>
892
893 * lto-plugin.c (onload): add missing break statements and asserts.
894 * lto-symtab.c (claim_file_handler): Make it static.
895 (all_symbols_read_handler): Make it static.
896 (all_file_handles): Make it static.
897 (num_file_handles): Make it static.
898 (register_claim_file): Make it static.
899 (register_object): Indent properly.
900
9012008-09-10 Rafael Avila de Espindola <espindola@google.com>
902
903 * Makefile.am (ltosymtab_LDADD): Add -lelf.
904 * Makefiel.in: Regenerate.
905 * lto-plugin.c: Include ar.h.
906 (claim_file_handler): Handle file->offset != 0.
907 * lto-symtab.c: Include gelf.h.
908 (all_file_handles): Change type.
909 (register_object): New.
910 (register_file): Add support for archives.
911 (resolve): Update to new type of all_file_handles.
912 (print): Update to new type of all_file_handles.
913 (free_all): Update to new type of all_file_handles.
914 (main): Update to new type of all_file_handles.
915
9162008-09-10 Rafael Avila de Espindola <espindola@google.com>
917
918 * lto-plugin.c (get_string_table): Remove.
919 (get_section): Use elf_strptr instead of get_string_table.
920
9212008-09-08 Doug Kwan <dougkwan@google.com>
922
923 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
924 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
925
9262008-09-08 Rafael Avila de Espindola <espindola@google.com>
927
928 * Makefile.am (ltosymtab_SOURCES): add common.c.
929 (ltosymtab_CFLAGS): New.
930 (liblto_plugin_la_SOURCES): Add common.c.
931 * Makefile.in: Regenerate.
932 * common.c: New.
933 * common.h: New.
934 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
935 (plugin_symtab): New.
936 (plugin_file_info): New.
937 (register_all_symbols_read): New.
938 (get_symbols): New.
939 (claimed_files): New.
940 (num_claimed_files): New.
941 (translate): Don't drop the slot number.
942 (free_1): New.
943 (free_2): New.
944 (all_symbols_read_handler): New.
945 (claim_file_handler): Record every claimed file.
946 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
947 LDPT_GET_SYMBOLS.
948 * lto-symtab.c: Include stdlib.h, string.h and common.h.
949 (current_file_handle): Remove.
950 (ld_plugin_all_symbols_read_handler): New.
951 (plugin_handle): New.
952 (file_handle): New.
953 (all_file_handles): New.
954 (num_file_handles): New.
955 (get_symbols): New.
956 (register_all_symbols_read): New.
957 (add_symbols): Don't print the symbols, just record them.
958 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
959 LDPT_GET_SYMBOLS.
960 (load_plugin): Use plugin_handle.
961 (register_file): Add the file handle to all_file_handles.
962 (resolve): New.
963 (print): New.
964 (unload_plugin): New.
965 (free_all): New.
966 (main): Call all_symbols_read_handler and free resources.
967
9682008-09-03 Rafael Avila de Espindola <espindola@google.com>
969
970 * Makefile.am (AM_CFLAGS): New.
971 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
972 (lib_LTLIBRARIES): New.
973 (liblto_plugin_la_SOURCES): New.
974 (liblto_plugin_la_LIBADD): New.
975 * Makefile.in: Regenerate.
976 * acinclude.m4: Don't include ../config/acx.m4 and
977 ../config/no-executables.m4.
978 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
979 ../libtool.m4.
980 * aclocal.m4: Regenerate.
981 * configure: Regenerate.
982 * configure.ac: Use AM_PROG_LIBTOOL.
983 * lto-plugin.c: New.
984 * lto-symtab.c: Rewrite to use the plugin.
985 * plugin-api.h: New.
986
9872008-08-25 Rafael Avila de Espindola <espindola@google.com>
988
989 * configure: Regenerate.
990 * configure.ac: Use AC_CHECK_GELF.
991 * lto-symtab.c: Include gelf.h.
992 (get_string_table): Use size independent API.
993 (printTable): Use lld to print 64 bit integers.
994
9952008-08-22 Rafael Avila de Espindola <espindola@google.com>
996
997 * lto-symtab.c (parse_table_entry): Assert entry->kind and
998 entry->visibility are valid.
999
10002008-07-22 Rafael Avila de Espindola <espindola@google.com>
1001 * lto-symtab.c (table_entry): Add comdat.
1002 (parse_table_entry): Read comdat.
1003
10042008-08-21 Rafael Espindola <espindola@google.com>
1005
1006 * Makefile.am: New.
1007 * Makefile.in: New.
1008 * acinclude.m4: New.
1009 * aclocal.m4: New.
1010 * configure: New.
1011 * configure.ac: New.
1012 * lto-symtab.c: New.