]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/ChangeLog
lto-plugin - support -save-temps, -v, --version.
[thirdparty/gcc.git] / lto-plugin / ChangeLog
CommitLineData
c101cff8
IS
12019-05-15 Iain Sandoe <iain@sandoe.co.uk>
2
3 * lto-plugin.c (exec_lto_wrapper): Make the wrapper
4 arguments filename more user-friendly.
5 (file_exists, maybe_unlink): New.
6 (cleanup_handler): Use maybe unlink to handle the
7 case when temps should be saved.
8 (process_option): Look for -v, —-version, -save-temps.
9 (onload): Record the linker output file name.
10 Check for -v, —-version, -save-temps in the GCC collect
11 options environment.
12
24f0c842
ML
132019-02-26 Martin Liska <mliska@suse.cz>
14
15 * lto-symtab.c: Remove.
16
a5544970
JJ
172019-01-01 Jakub Jelinek <jakub@redhat.com>
18
19 Update copyright years.
20
22e05272
JM
212018-10-31 Joseph Myers <joseph@codesourcery.com>
22
23 PR bootstrap/82856
24 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
25 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
26
de54061d
JH
272018-05-30 Jan Hubicka <jh@suse.cz>
28
29 * lto-plugin.c: (non_claimed_files): New static var.
30 (linker_ouput_known): New static var.
31 (all_symbols_read_handler): When user specifies linker output do not
32 imply it; output warning when nonlto-rel mode is forced.
33 (claim_file_header): Record number of nonclaimed files.
34 (process_option): Remember if linker output is known
35
001ddaa8
DM
362018-04-18 David Malcolm <dmalcolm@redhat.com>
37
38 PR jit/85384
39 * configure: Regenerate.
40
85ec4feb
JJ
412018-01-03 Jakub Jelinek <jakub@redhat.com>
42
43 Update copyright years.
44
5c2dee6f
GJL
452017-07-21 Georg-Johann Lay <avr@gjlay.de>
46
47 PR lto/81487
48 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
49 asprintf.
50 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
51
3c36aa6b
JJ
522017-01-17 Jakub Jelinek <jakub@redhat.com>
53
54 PR other/79046
55 * configure.ac: Add GCC_BASE_VER.
56 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
57 get version from BASE-VER file.
58 * configure: Regenerated.
59 * Makefile.in: Regenerated.
60
2afd3180
JJ
612017-01-04 Jakub Jelinek <jakub@redhat.com>
62
63 Update copyright years.
64
84c1b9d3
MK
652016-11-15 Matthias Klose <doko@ubuntu.com>
66
67 * configure: Regenerate.
68
e6861a99
IV
692016-02-25 Ilya Verbin <ilya.verbin@intel.com>
70
71 PR driver/68463
72 * lto-plugin.c (struct plugin_offload_file): New.
73 (offload_files): Change type.
74 (offload_files_last, offload_files_last_obj): New.
75 (offload_files_last_lto): New.
76 (free_2): Adjust accordingly.
77 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
78 Don't call free_1 for offload_files. Write names of object files with
79 offloading to the temporary file. Add new option to lto_arg_ptr.
80 (claim_file_handler): Don't claim file if it contains offload sections
81 without LTO sections. If it contains offload sections, add to the list.
82
aea40b08
ML
832016-01-15 Martin Liska <mliska@suse.cz>
84
85 * lto-plugin.c (all_symbols_read_handler): Assign default
86 value to a string variable.
87
1ff9ed6f
JH
882015-11-25 Jan Hubicka <jh@suse.cz>
89
90 PR lto/67548
91 * lto-plugin.c (linker_output, linker_output_set): New statics.
92 (all_symbols_read_handler): Add -flinker-output option.
93 (onload): Record linker_output info.
94
dcbc9df9
UB
952015-07-02 Uros Bizjak <ubizjak@gmail.com>
96
97 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
98 * configure: Regenerate.
99 * config.h.in: Ditto.
100
ed9b4ae3
MH
1012015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
102
103 * Makefile.am: Drop 'by automake version' from top-level comment.
104 * Makefile.in: Regenerated with automake-1.11.6.
105 * aclocal.m4: Likewise.
106 * configure: Likewise.
107
514ba9e4
L
1082015-02-06 H.J. Lu <hongjiu.lu@intel.com>
109
110 * lto-plugin.c (release_input_file): Removed.
111 (claim_file_handler): Don't call release_input_file.
112 (onload): Don't set release_input_file.
113
11c17039
L
1142015-02-05 H.J. Lu <hongjiu.lu@intel.com>
115
116 * lto-plugin.c (claim_file_handler): Pass handle to
117 release_input_file.
118
06fa4f00
L
1192015-02-05 H.J. Lu <hongjiu.lu@intel.com>
120
121 * lto-plugin.c (claim_file_handler): Call release_input_file only
122 if file is claimed.
123
380c25ea
L
1242015-01-28 H.J. Lu <hongjiu.lu@intel.com>
125
126 * lto-plugin.c (claim_file_handler): Call release_input_file only
127 if it is not NULL.
128
1e081eda
L
1292015-01-28 H.J. Lu <hongjiu.lu@intel.com>
130
131 PR lto/64837
132 * lto-plugin.c (release_input_file): New.
133 (claim_file_handler): Call release_input_file.
134 (onload): Set release_input_file.
135
443743fd
IV
1362014-12-09 Ilya Verbin <ilya.verbin@intel.com>
137
138 * lto-plugin.c (offload_files, num_offload_files): New static variables.
139 (free_1): Use arguments instead of global variables.
140 (free_2): Free offload_files.
141 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
142 arguments.
143 (claim_file_handler): Do not add file to claimed_files if it contains
144 offload sections without LTO sections. Add it to offload_files instead.
145
a699d672
L
1462014-11-21 H.J. Lu <hongjiu.lu@intel.com>
147
148 PR bootstrap/63784
149 * configure: Regenerated.
150
fc8b3540
IV
1512014-11-13 Ilya Verbin <ilya.verbin@intel.com>
152 Bernd Schmidt <bernds@codesourcery.com>
153 Andrey Turetskiy <andrey.turetskiy@intel.com>
154 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
155
156 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
157 (struct plugin_objfile): Add new field "offload".
158 (process_offload_section): New static function.
159 (claim_file_handler): Claim file if it contains offload sections.
160
85c64bbe
BS
1612014-11-13 Bernd Schmidt <bernds@codesourcery.com>
162 Thomas Schwinge <thomas@codesourcery.com>
163 Ilya Verbin <ilya.verbin@intel.com>
164 Andrey Turetskiy <andrey.turetskiy@intel.com>
165
166 * Makefile.am (libexecsubdir): Tweak for the possibility of being
167 configured for offload compiler.
168 (accel_dir_suffix, real_target_noncanonical): New variables substituted
169 by configure.
170 * Makefile.in: Regenerate.
171 * configure: Regenerate.
172 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
173 variables.
174
ebf6d33b
FXC
1752014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
176
177 PR target/63610
178 * configure: Regenerate.
179
43f4a446
L
1802014-08-26 H.J. Lu <hongjiu.lu@intel.com>
181
182 PR bootstrap/62260
183 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
184 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
185 $host_subdir.
186 * Makefile.in: Regenerated.
187 * configure: Likewise.
188
2a7a8388
TS
1892014-06-13 Thomas Schwinge <thomas@codesourcery.com>
190
191 * configure.ac (--with-libiberty): New configure option.
192 * configure: Regenerate.
193 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
194 variables.
195 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
196 (liblto_plugin_la_DEPENDENCIES): Use them.
197 * Makefile.in: Regenerate.
198
a2555c65
RO
1992014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
200
201 PR lto/60981
202 * configure.ac: Check for -static-libgcc.
203 * configure: Regenerate.
204
ffe7f7a7
JJ
2052014-04-17 Jakub Jelinek <jakub@redhat.com>
206
4f148bbc
JJ
207 PR sanitizer/56781
208 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
209 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
210 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
211 over ../libiberty/pic/libiberty.a if the former exists.
212 * Makefile.in: Regenerated.
213
ffe7f7a7
JJ
214 PR sanitizer/56781
215 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
216 * Makefile.in: Regenerated.
217
21b624f0
RB
2182014-04-02 Richard Biener <rguenther@suse.de>
219
220 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
221 is set in COLLECT_GCC_OPTIONS.
222
2486c24a
RB
2232014-03-28 Richard Biener <rguenther@suse.de>
224
225 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
226
5523efdf
RO
2272014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
228
229 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
230 for gcc.
231 * configure: Regenerate.
232 * Makefile.am (AM_LDFLAGS): New variable.
233 (liblto_plugin_la_LDFLAGS): Add it.
234 * Makefile.in: Regenerate.
235
3cbe17f7
AM
2362013-09-20 Alan Modra <amodra@gmail.com>
237
238 * configure: Regenerate.
239
de973ab7
DE
2402012-09-14 David Edelsohn <dje.gcc@gmail.com>
241
242 * configure: Regenerated.
243
3f417959
JM
2442012-05-29 Joseph Myers <joseph@codesourcery.com>
245
246 * lto-plugin.c: Fix typo.
247
e6d5f8c9
L
2482012-05-16 H.J. Lu <hongjiu.lu@intel.com>
249
250 * configure: Regenerated.
251
8cfa7899
KT
2522012-02-22 Kai Tietz <ktietz@redhat.com>
253
254 PR lto/50616
255 * lto-plugin.c (PRI_LL): New macro.
256 (dump_symtab): Use PRI_LL instead of ll in print.
257 (process_symtab): Use PRI_LL instead of ll in scan.
258
4a5e00ca
AS
2592011-12-20 Andreas Schwab <schwab@linux-m68k.org>
260
261 * configure: Regenerate.
262
095af58f
AS
2632011-12-19 Andreas Schwab <schwab@linux-m68k.org>
264
265 * configure: Regenerate.
266
c6084f68
AT
2672011-11-21 Andreas Tobler <andreast@fgznet.ch>
268
269 * configure: Regenerate.
270
ed0d2da0
JH
2712011-10-02 Jan Hubicka <jh@suse.cz>
272
273 PR lto/47247
274 * lto-plugin.c (get_symbols_v2): New variable.
275 (write_resolution): Use V2 API when available.
276 (onload): Handle LDPT_GET_SYMBOLS_V2.
277
ad7715f3
L
2782011-09-30 H.J. Lu <hongjiu.lu@intel.com>
279 Andi Kleen <ak@linux.intel.com>
280
281 PR lto/50568
282 * lto-plugin.c (sym_aux): Change id to unsigned long long.
283 (plugin_symtab): Likewise.
284 (dump_symtab): Likewise.
285 (resolve_conflicts): Likewise.
286 (process_symtab): Likewise.
287
f3016c47
RG
2882011-08-10 Richard Guenther <rguenther@suse.de>
289
290 PR bootstrap/49907
291 lto-plugin/
292 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
293 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
294 * configure: Regenerate.
295 * Makefile.in: Likewise.
296 * aclocal.m4: Likewise.
297
04695783
JM
2982011-04-20 Jim Meyering <meyering@redhat.com>
299
300 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
301
3b8c1a3f
RG
3022011-04-05 Richard Guenther <rguenther@suse.de>
303
304 PR bootstrap/48431
305 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
306
029c8f3e
RW
3072011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
308
309 * Makefile.in: Regenerate.
310 * aclocal.m4: Regenerate.
311 * configure: Regenerate.
312
3917813c
RW
3132011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
314
315 * Makefile.am (all-local): Rename from 'all'.
316 * Makefile.in: Regenerate.
317
f3d533d3
AO
3182011-02-12 Alexandre Oliva <aoliva@redhat.com>
319
320 PR lto/47225
321 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
322 (liblto_plugin_la_LDFLAGS): Add -module.
323 (copy_lto_plugin): Renamed to...
324 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
325 of static modules.
326 * Makefile.in: Rebuild.
327
f43c3935
KT
3282011-02-07 Kai Tietz <kai.tietz@onevision.com>
329
330 PR lto/47225
331 * Makefile.am (Wc): New helper for encoding -Wc,.
332 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
333 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
334 * Makefile.in: Regenerated.
335
e6d926d7
PB
3362011-02-07 Paolo Bonzini <bonzini@gnu.org>
337
338 Revert:
339
340 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
341
342 PR lto/47225
343 * Makefile.am (Wl): New helper for encoding -Wl,.
344 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
345 * Makefile.in: Regenerated.
346
c7b5125d
KT
3472011-02-07 Kai Tietz <kai.tietz@onevision.com>
348
349 PR lto/47225
350 * Makefile.am (Wl): New helper for encoding -Wl,.
351 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
352 * Makefile.in: Regenerated.
353
e3bb089d
ILT
3542011-01-25 Ian Lance Taylor <iant@google.com>
355
356 * lto-plugin.c (gold_version): New static variable.
357 (all_symbols_read_handler): Don't check pass_through_items if
358 using gold 1.11 or later.
359 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
360
47782a9d
RG
3612011-01-12 Richard Guenther <rguenther@suse.de>
362
363 PR lto/47264
364 * lto-plugin.c (parse_table_entry): Use memcpy to access
365 unaligned fields.
366
5b64bab9
DK
3672010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
368
369 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
370 * Makefile.in: Regenerate.
371
be3ea0c8
RO
3722010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
373
374 Revert last change.
375
dd8587d6
RO
3762010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
377
378 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
379 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
380 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
381 * Makefile.in: Regenerate.
382
77754180
DK
3832010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
384
385 PR middle-end/46674
386 PR lto/43157
387 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
388 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
389 * configure: Regenerate.
390 * config.h.in: Likewise.
391
7de6ba7a
DK
3922010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
393
394 PR target/40125
395 PR lto/46695
396 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
397 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
398 override -bindir setting.
399 * aclocal.m4: Regenerate.
400 * configure: Regenerate.
401 * Makefile.in: Regenerate.
402
ec692d5f
KT
4032010-12-05 Kai Tietz <kai.tietz@onevision.com>
404
405 * config.h.in: Regenerated.
406 * configure: Regenerated.
407 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
408 * lto-plugin.c (WIFEXITED): Define default.
409 (WEXITSTATUS): Likeiwse.
410
a2254c5d
KT
4112010-12-01 Kai Tietz <kai.tietz@onevision.com>
412
413 * config.h.in: Regenerated.
414 * configure: Regenerated.
415 * Makefile.in: Regenerated.
416 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
417 * lto-plugin.c: Include sys/wait.h conditionally.
418 * aclocal.m4: Regenerated.
419
44538c62
KT
4202010-11-13 Kai Tietz <kai.tietz@onevision.com>
421
422 * lto-plugin.c (add_output_files): Fix memory leak.
423
d19e0f01
DK
4242010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
425
426 PR bootstrap/46397
427 PR bootstrap/46362
428 * configure.ac: Add AC_TYPE_INT64_T test.
429 * config.h.in: Regenerate.
430 * configure: Likewise.
431 * lto-plugin.c (debug): Use char not bool.
432 (nop): Likewise.
433 (check_1): Rename from check, and use int not bool for gate argument.
434 (check): Macro wrapper for the above to coerce gate argument into
435 boolean-valued integer in case it has pointer type.
436 (parse_table_entry): Use 0 not false.
437 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
438 into two 32-bit parts and printing as hex ints.
439
37da3688
DK
4402010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
441
442 PR lto/46291
443 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
444
48215350
DK
4452010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
446
447 PR lto/46273
448 * lto-plugin.h: Delete.
449 * lto-plugin-elf.c: Likewise.
450 * lto-plugin-coff.c: Likewise.
451 * configure.ac: Don't use libelf, don't source config.gcc.
452 (LIBELFLIBS): Delete.
453 (LIBELFINC): Delete.
454 (LTO_FORMAT): Delete.
455 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
456 (config.h): Add AC_CONFIG_HEADERS directive.
457 * Makefile.am (LIBELFLIBS): Delete.
458 (LIBELFINC): Delete.
459 (LTO_FORMAT): Delete.
460 (DEFS): Import.
461 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
462 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
463 any object-format-specific source file in the link.
464 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
465 * config.h.in: Generate.
466 * configure: Regenerate.
467 * Makefile.in: Likewise.
468 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
469 (LTO_SEGMENT_NAME): New definition.
470 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
471 (LTO_SECTION_PREFIX_LEN): New definition.
472 (struct sym_aux): Struct definition moved here from lto-plugin.h.
473 (struct plugin_symtab): Likewise.
474 (struct plugin_objfile): Likewise.
475 (struct plugin_objfile): New struct def.
476 (enum symbol_style): New enum type.
477 (add_symbols): Make static.
478 (claimed_files): Likewise.
479 (num_claimed_files): Likewise.
480 (sym_style): New global.
481 (check): Make static.
482 (parse_table_entry): Likewise. Respect sym_style when extracting
483 symbol from symtab entry.
484 (translate): Make static.
485 (resolve_conflicts): Likewise.
486 (process_symtab): New function, per-section callback version of
487 old object-format-specific handling from deleted lto-plugin-elf.c.
488 (claim_file_handler): Convert ELF-specific version from deleted
489 lto-plugin-elf.c to simple_object interface and move here.
490 (process_options): Allow new '-sym-style=' option.
491 (onload): Don't call deleted onload_format_checks hook.
492
9df2493c
KT
4932010-10-11 Kai Tietz <kai.tietz@onevision.com>
494
495 * lto-plugin.c (dump_symtab): Correct printf argument type.
496 (finish_conflict_resolution): Initialize resolution.
497
73d5e770
L
4982010-10-08 H.J. Lu <hongjiu.lu@intel.com>
499
500 PR bootstrap/45951
501 * configure.ac: Add AC_CANONICAL_SYSTEM.
502 * configure: Regenerated.
503
1cd0b716
DK
5042010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
505
506 * configure.ac: Source config.gcc to determine lto_binary_reader.
507 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
508 * Makefile.am (LTO_FORMAT): Import.
509 (liblto_plugin_la_SOURCES): Add object format dependent module
510 defined by LTO_FORMAT.
511 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
512 and work around libtool warning.
513 * configure: Regenerate.
514 * Makefile.in: Likewise.
515 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
516 (struct sym_aux): Likewise.
517 (struct plugin_symtab): Likewise.
518 (struct plugin_file_info): Likewise.
519 (LTO_SECTION_PREFIX): Likewise.
520 (add_symbols): Make non-static.
521 (claimed_files): Likewise.
522 (num_claimed_files): Likewise.
523 (check): Likewise.
524 (parse_table_entry): Likewise.
525 (translate): Likewise.
526 (resolve_conflicts): Likewise.
527 (process_symtab): Move to new lto-plugin-elf.c object format dependent
528 source file.
529 (claim_file_handler): Likewise, and make non-static.
530 (onload): Call new onload_format_checks function.
531 * lto-plugin.h: New file.
532 (LTO_SECTION_PREFIX): Move here.
533 (struct sym_aux): Likewise.
534 (struct plugin_symtab): Likewise.
535 (struct plugin_file_info): Likewise.
536 (claim_file_handler): Add new function prototype.
537 (onload_format_checks): Likewise.
538 (check): Declare extern.
539 (translate): Likewise.
540 (parse_table_entry): Likewise.
541 (resolve_conflicts): Likewise.
542 (add_symbols): Likewise.
543 (claimed_files): Likewise.
544 (num_claimed_files): Likewise.
545 * lto-plugin-elf.c (process_symtab): Move here.
546 (claim_file_handler): Likewise, and make non-static.
547 (onload_format_checks): New function factored out from onload.
548 * lto-plugin-coff.c (claim_file_handler): New function stub.
549 (onload_format_checks): Likewise.
550
d2c57fe9
AK
5512010-08-05 Andi Kleen <ak@linux.intel.com>
552
553 * lto-plugin.c: Include <hashtab.h>
554 (sym_aux): Add next_conflict field to save conflict chains.
555 (plugin_file_info): Add conflicts symtab.
556 (parse_table_entry): Initialize aux->next_conflict.
557 (process_symtab): Increment found.
558 (dump_symtab): Add.
559 (finish_conflict_resolution): Add.
560 (free_symtab): Add.
561 (write_resolution): Remove symbols loop and move into
562 dump_symtab. Call dump_symtab for main symbol and conflicts table.
563 Call free_symtab to free conflicts table.
564 (SWAP): Add.
565 (eq_sym): Add.
566 (hash_sym): Add.
567 (symbol_strength): Add.
568 (resolve_conflicts): Add.
569 (claim_file_handler): Add n variable. Check return value of
570 process_symtab. Call resolve_conflicts.
571
ecdbd01a 5722010-07-27 Andi Kleen <ak@linux.intel.com>
90e26247
AK
573
574 * lto-plugin.c (translate): Remove debug fprintf.
575
9477ccb2
L
5762010-07-23 H.J. Lu <hongjiu.lu@intel.com>
577
578 PR bootstrap/45042
579 * lto-plugin.c (translate): Cast to unsigned long.
580
ecdbd01a 5812010-07-23 Andi Kleen <ak@linux.intel.com>
73ce4d1e
AK
582
583 PR lto/44992
584 * lto-plugin.c (sym_aux): Add.
585 (plugin_symtab): Remove slots. Add aux and id.
586 (parse_table_entry): Change to use aux instead of slots.
587 (LTO_SECTION_PREFIX): Add.
588 (translate): Improve buffer allocation. Change to append
589 symbols to existing out buffer.
590 (get_section): Remove.
591 (process_symtab): Add.
592 (free_2): Free symtab->aux.
593 (write_resolution): Handle aux instead of slots.
594 Print sub id to resolution file.
595 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
596 calls with call to process_symtab.
597
553fc582
RG
5982010-07-22 Richard Guenther <rguenther@suse.de>
599
600 * Makefile.am: New copy_lto_plugin rule to install the plugin
601 into ../gcc.
602 * Makefile.in: Regenerated.
603
bdc89f9e
RG
6042010-05-21 Richard Guenther <rguenther@suse.de>
605
606 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
607
5cd0e96b
RG
6082010-05-07 Richard Guenther <rguenther@suse.de>
609
610 * lto-plugin.c (free_2): Do not free resolution_file.
611 (write_resolution): Check that we were passed a resolution file.
612 (all_symbols_read_handler): Adjust.
613 (cleanup_handler): Do not remove the resolution file.
614 (process_option): Handle -fresolution=.
615
13917ae3
RW
6162010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
617
618 PR other/43620
619 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
620 * Makefile.in: Regenerate.
621
ed0f0c0f
RG
6222010-04-23 Richard Guenther <rguenther@suse.de>
623
624 PR lto/41550
625 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
626 (translate): Likewise.
627 (all_symbols_read_handler): Likewise.
628 (claim_file_handler): Likewise.
629 (process_option): Likewise.
630 (add_output_files): Likewise. Remove filename length limit.
631
4d9e8446
RW
6322010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
633
634 * Makefile.in: Regenerate.
635 * aclocal.m4: Regenerate.
636
a8a5ac48
DG
6372010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
638
639 PR lto/43336
640 * lto-plugin.c (cleanup_handler): Delete temporary output files.
641
c164615b
RG
6422010-01-11 Richard Guenther <rguenther@suse.de>
643
644 PR lto/41569
645 * Makefile.am: Disable dependencies.
646 * Makefile.in: Regenerated.
647
f0d61983
L
6482010-01-03 H.J. Lu <hongjiu.lu@intel.com>
649
650 PR lto/42520
651 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
652 if -v is passed.
653
52327858 6542009-12-05 H.J. Lu <hongjiu.lu@intel.com>
43e02a8a 655
52327858
L
656 PR bootstrap/42306
657 * configure: Regenerated.
658 * Makefile.in: Likewise.
43e02a8a 659
92fa7608
RAE
6602009-11-19 Rafael Avila de Espindola <espindola@google.com>
661
662 PR bootstrap/42096
663 * lto-plugin.c (claim_file_handler): Print offsets in hex.
664
06bd7f56
RAE
6652009-11-12 Rafael Avila de Espindola <espindola@google.com>
666
667 * lto-plugin.c (write_resolution): Assume resolution_file is set.
668 Print the symbol name.
669 (all_symbols_read_handler): Create a resolution file.
670 Pass it to gcc.
671 (cleanup_handler): Remove the resolution file.
672 (process_option): Drop the -resolution option.
673
94086ef6
RAE
6742009-11-05 Rafael Avila de Espindola <espindola@google.com>
675
676 * lto-plugin.c (temp_obj_dir_name): Remove.
677 (arguments_file_name): New.
678 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
679 (exec_lto_wrapper): Create arguments file with make_temp_file.
680 (cleanup_handler): Don't remove the temporary directory. Remove the
681 arguments file.
682 (onload): Don't create the temporary directory.
683
7e9dc421 6842009-11-04 Richard Guenther <rguenther@suse.de>
92a285c1 685 Rafael Avila de Espindola <espindola@google.com>
7e9dc421
RG
686
687 * lto-plugin.c (plugin_file_info): Remove temp field.
688 (cleanup_handler): Don't delete temporary objects.
689 (claim_file_handler): Don't create temporary objects.
690
1cddcdca
RAE
6912009-11-04 Rafael Avila de Espindola <espindola@google.com>
692
693 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
694
86ed04df
RAE
6952009-10-30 Rafael Avila de Espindola <espindola@google.com>
696
697 PR41871
698 * lto-plugin.c (claim_file_handler): Close files that we created.
699
aff4273c
RAE
7002009-10-28 Rafael Avila de Espindola <espindola@google.com>
701
702 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
703 LDPL_ERROR
704
4c0f4b0b
DG
7052009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
706
707 PR lto/41652
708 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
709 * configure: Regenerate.
710
03428d41
RG
7112009-10-26 Richard Guenther <rguenther@suse.de>
712
713 * configure.ac: Use AM_MAINTAINER_MODE.
714 * acinclude.m4: Remove.
715 * configure: Re-generate.
716 * Makefile.in: Likewise.
717 * aclocal.m4: Likewise.
718
941e566a
RE
7192009-10-19 Rafael Avila de Espindola <espindola@google.com>
720
92a285c1
ML
721 PR40790
722 * configure: Regenerate.
723 * configure.ac: Add AC_TYPE_UINT64_T.
941e566a 724
33662270
RAE
7252009-10-16 Rafael Avila de Espindola <espindola@google.com>
726
727 * lto-plugin.c (message): New variable.
728 (check): New function.
729 (parse_table_entry, translate, write_resolution,add_output_files,
730 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
731 assert.
732 (cleanup_handler): Use check instead of assert. Remove the arguments
733 file if it exists.
734
b10071c5
RAE
7352009-10-15 Rafael Avila de Espindola <espindola@google.com>
736
737 * lto-plugin.c (resolution_file): New.
738 (free_1): Update comment.
739 (free_2): Free resolution_file.
740 (write_resolution): Write resolution to specified file. Use the
741 syms array from the symbol table.
742 (all_symbols_read_handler): Delay call to free_1 past call to
743 write_resolution.
744 (process_option): Add a -resolution option.
745
076c7ebe
RG
7462009-10-13 Richard Guenther <rguenther@suse.de>
747
748 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
749 correct libiberty.
750 * Makefile.in: Regenerated.
751
d520c7fb
RAE
7522009-10-08 Rafael Avila de Espindola <espindola@google.com>
753
754 * lto-plugin.c (add_input_library): New.
755 (all_symbols_read_handler): Use add_input_library for items that
756 start with -l.
757 (process_option): Fit in 80 columns.
758 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
759
d7f09764
DN
7602009-10-02 Diego Novillo <dnovillo@google.com>
761
762 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
763 and -D_FILE_OFFSET_BITS=64.
764 * configure.ac: Add AC_SYS_LARGEFILE.
765 * configure: Regenerate.
766 * Makefile.in: Regenerate.
767 * lto-plugin.c: Fix copyright boilerplate.
768
7692009-10-02 Diego Novillo <dnovillo@google.com>
770
771 * Makefile.am (ACLOCAL_AMFLAGS): Define.
772 * aclocal.m4: Regenerate with aclocal-2.64
773 * acinclude.m4: Remove.
774 * Makefile.in: Regenerate with automake-1.11
775 * configure.ac (AC_PREREQ): Update to 2.64.
776 * configure: Regenerate.
777
7782009-10-02 Diego Novillo <dnovillo@google.com>
779
780 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
781 and -D_FILE_OFFSET_BITS=64.
782 * configure.ac: Add AC_SYS_LARGEFILE.
783 * configure: Regenerate.
784 * Makefile.in: Regenerate.
785 * lto-plugin.c: Fix copyright boilerplate.
786
7872009-10-02 Diego Novillo <dnovillo@google.com>
788
789 * Makefile.am (ACLOCAL_AMFLAGS): Define.
790 * aclocal.m4: Regenerate with aclocal-2.64
791 * acinclude.m4: Remove.
792 * Makefile.in: Regenerate with automake-1.11
793 * configure.ac (AC_PREREQ): Update to 2.64.
794 * configure: Regenerate.
795
7962009-10-02 Rafael Avila de Espindola <espindola@google.com>
797
798 * Makefile.am (liblto_plugin_la_SOURCES): Remove
799 $(top_srcdir)/../gcc/lto/common.c
800 * Makefile.in: Regenerate.
801
8022009-10-01 Rafael Avila de Espindola <espindola@google.com>
803
804 * lto-plugin.c (pass_through_items): New.
805 (num_pass_through_items): New.
806 (all_symbols_read_handler): Update to use the -pass-through option.
807 (process_option): Replace -libgcc with -pass-through.
808
8092009-09-30 Rafael Avila de Espindola <espindola@google.com>
810
811 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
812 register_cleanup to be set.
813
8142009-09-30 Rafael Avila de Espindola <espindola@google.com>
815
816 * Makefile.am: Remove all reference to ltosymtab.
817 * Makefile.in: Regenerate.
818 * lto-symtab.c: Remove.
819
8202009-05-21 Diego Novillo <dnovillo@google.com>
821
822 * configure.ac: Remove call to AC_CHECK_GELF.
823 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
824 * acinclude.m4: Do not include ../config/libelf.m4
825 * Makefile.am (LIBELFLIBS): Define.
826 (LIBELFINC): Define.
827 (AM_CPPFLAGS): Add $(LIBELFINC).
828 (ltosymtab_LDADD): Add $(LIBELFLIBS).
829 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
830 * lto-plugin.c: Always include <gelf.h>
831 * lto-symtab.c: Likewise.
832 * configure: Regenerate.
833 * Makefile.in: Regenerate.
834
8352009-03-23 Rafael Avila de Espindola <espindola@google.com>
836
837 * lto-plugin.c (libgcc_filename): New.
838 (all_symbols_read_handler): Pass libgcc to the linker.
839 (all_symbols_read_handler): Parse -libgcc
840
8412009-02-05 Rafael Avila de Espindola <espindola@google.com>
842
843 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
844 * Makefile.in: Regenerate.
845 * lto-plugin.c (add_output_files): Argument is now a FILE.
846 (exec_lto_wrapper): Use writeargv and pex.
847
8482009-02-04 Rafael Avila de Espindola <espindola@google.com>
849
850 Revert:
851 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
852 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
853
854
8552009-02-04 Rafael Avila de Espindola <espindola@google.com>
856
857 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
858
8592009-01-29 Rafael Avila de Espindola <espindola@google.com>
860
861 * lto-plugin.c: Include libiberty.h.
862 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
863 snprintf.
864
8652009-01-29 Rafael Avila de Espindola <espindola@google.com>
866
867 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
868 file to lto-wrapper.
869
8702009-01-28 Rafael Avila de Espindola <espindola@google.com>
871
872 * lto-plugin.c (plugin_file_info): Remove fd and elf.
873 (parse_table_entry): strdup entry->name and entry->comdat_key.
874 (free_1): Free name and comdat_key. Don't close the file. Don't call
875 elf_end.
876 (claim_file_handler): Always call elf_end.
877
8782008-12-23 Rafael Avila de Espindola <espindola@google.com>
879
880 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
881 -D_FILE_OFFSET_BITS=64
882 * Makefile.in: Regenerate
883
8842008-12-22 Rafael Avila de Espindola <espindola@google.com>
885
886 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
887 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
888 * Makefile.in: Regenerate.
889 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
890 * configure: Regenerate.
891 * configure.ac: Add AC_SUBST(target_noncanonical).
892
8932008-12-08 Rafael Avila de Espindola <espindola@google.com>
894
895 * lto-plugin.c: Include stdbool.h.
896 (debug, nop): Declare as bool.
897
8982008-12-08 Rafael Avila de Espindola <espindola@google.com>
899
900 * lto-plugin.c (nop): New.
901 (use_original_files): New.
902 (all_symbols_read_handler): Call use_original_files if nop is true.
903 (process_option): Parse the -nop option.
904
9052008-12-08 Rafael Avila de Espindola <espindola@google.com>
906
907 * lto-plugin.c (debug): New.
908 (exec_lto_wrapper): Print argv if debug is true.
909 (process_option): Process the -debug command line option.
910
9112008-12-03 Rafael Avila de Espindola <espindola@google.com>
912
913 * lto-plugin.c (process_option): The argument is now a single option,
914 not a space separated list.
915
9162008-12-02 Rafael Avila de Espindola <espindola@google.com>
917
918 * lto-plugin.c: Include sys/types.h and sys/wait.h
919 (output_files, num_output_files, lto_wrapper_argv,
920 lto_wrapper_num_args): New.
921 (free_2): Free output_files.
922 (write_resolution): Disable.
923 (add_output_files): New.
924 (exec_lto_wrapper): New.
925 (all_symbols_read_handler): Run lto-wrapper.
926 (claim_file_handler): Free lto_file.name and call elf_end.
927 (process_option): New.
928
9292008-11-26 Rafael Espindola <espindola@google.com>
930
931 * lto-plugin.c (add_input_file): New.
932 (get_section): Return NULL if get_section fails.
933 (write_resolution): New.
934 (all_symbols_read_handler): Call add_input_file.
935 (claim_file_handler): Unlink the correct file.
936 (onload): Record add_input_file.
937
9382008-09-23 Rafael Espindola <espindola@google.com>
939
940 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
941 Update the location of common.c.
942 * Makefile.in: Regenerate.
943 * common.c: Moved to gcc/lto.
944 * common.h: Moved to gcc/lto.
945 * lto-plugin.c: Update the location of common.h.
946 * lto-symtab.c: Update the location of common.h.
947
9482008-09-23 Rafael Espindola <espindola@google.com>
949
950 * common.c: Include common.h.
951 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
952 sizes.
953 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
954 explicit sizes.
955
9562008-09-23 Rafael Espindola <espindola@google.com>
957
958 * lto-plugin.c (plugin_file_info): Add temp.
959 (cleanup_handler): Only delete temporary files.
960 (claim_file_handler): Initialize lto_file.temp.
961
9622008-09-23 Rafael Espindola <espindola@google.com>
963
92a285c1 964 * plugin-api.h: Moved to include.
d7f09764
DN
965
9662008-09-23 Rafael Espindola <espindola@google.com>
967
968 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
969 format.
970
9712008-09-22 Rafael Espindola <espindola@google.com>
972
973 * plugin-api.h: Copy from binutils' cvs.
974
9752008-09-22 Rafael Espindola <espindola@google.com>
976
977 * lto-symtab.c (get_symbols, add_symbols): Update signature.
978 * plugin-api.h: Copy from binutils' cvs.
979
9802008-09-22 Rafael Espindola <espindola@google.com>
981
982 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
983 Make extern
984
9852008-09-10 Rafael Espindola <espindola@google.com>
986
987 * lto-plugin.c (onload): add missing break statements and asserts.
988 * lto-symtab.c (claim_file_handler): Make it static.
989 (all_symbols_read_handler): Make it static.
990 (all_file_handles): Make it static.
991 (num_file_handles): Make it static.
992 (register_claim_file): Make it static.
993 (register_object): Indent properly.
994
9952008-09-10 Rafael Avila de Espindola <espindola@google.com>
996
997 * Makefile.am (ltosymtab_LDADD): Add -lelf.
998 * Makefiel.in: Regenerate.
999 * lto-plugin.c: Include ar.h.
1000 (claim_file_handler): Handle file->offset != 0.
1001 * lto-symtab.c: Include gelf.h.
1002 (all_file_handles): Change type.
1003 (register_object): New.
1004 (register_file): Add support for archives.
1005 (resolve): Update to new type of all_file_handles.
1006 (print): Update to new type of all_file_handles.
1007 (free_all): Update to new type of all_file_handles.
1008 (main): Update to new type of all_file_handles.
1009
10102008-09-10 Rafael Avila de Espindola <espindola@google.com>
1011
1012 * lto-plugin.c (get_string_table): Remove.
1013 (get_section): Use elf_strptr instead of get_string_table.
1014
10152008-09-08 Doug Kwan <dougkwan@google.com>
1016
1017 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1018 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1019
10202008-09-08 Rafael Avila de Espindola <espindola@google.com>
1021
1022 * Makefile.am (ltosymtab_SOURCES): add common.c.
1023 (ltosymtab_CFLAGS): New.
1024 (liblto_plugin_la_SOURCES): Add common.c.
1025 * Makefile.in: Regenerate.
1026 * common.c: New.
1027 * common.h: New.
1028 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1029 (plugin_symtab): New.
1030 (plugin_file_info): New.
1031 (register_all_symbols_read): New.
1032 (get_symbols): New.
1033 (claimed_files): New.
1034 (num_claimed_files): New.
1035 (translate): Don't drop the slot number.
1036 (free_1): New.
1037 (free_2): New.
1038 (all_symbols_read_handler): New.
1039 (claim_file_handler): Record every claimed file.
1040 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1041 LDPT_GET_SYMBOLS.
1042 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1043 (current_file_handle): Remove.
1044 (ld_plugin_all_symbols_read_handler): New.
1045 (plugin_handle): New.
1046 (file_handle): New.
1047 (all_file_handles): New.
1048 (num_file_handles): New.
1049 (get_symbols): New.
1050 (register_all_symbols_read): New.
1051 (add_symbols): Don't print the symbols, just record them.
1052 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1053 LDPT_GET_SYMBOLS.
1054 (load_plugin): Use plugin_handle.
1055 (register_file): Add the file handle to all_file_handles.
1056 (resolve): New.
1057 (print): New.
1058 (unload_plugin): New.
1059 (free_all): New.
1060 (main): Call all_symbols_read_handler and free resources.
1061
10622008-09-03 Rafael Avila de Espindola <espindola@google.com>
1063
1064 * Makefile.am (AM_CFLAGS): New.
1065 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1066 (lib_LTLIBRARIES): New.
1067 (liblto_plugin_la_SOURCES): New.
1068 (liblto_plugin_la_LIBADD): New.
1069 * Makefile.in: Regenerate.
1070 * acinclude.m4: Don't include ../config/acx.m4 and
1071 ../config/no-executables.m4.
1072 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1073 ../libtool.m4.
1074 * aclocal.m4: Regenerate.
1075 * configure: Regenerate.
1076 * configure.ac: Use AM_PROG_LIBTOOL.
1077 * lto-plugin.c: New.
1078 * lto-symtab.c: Rewrite to use the plugin.
1079 * plugin-api.h: New.
1080
10812008-08-25 Rafael Avila de Espindola <espindola@google.com>
1082
1083 * configure: Regenerate.
1084 * configure.ac: Use AC_CHECK_GELF.
1085 * lto-symtab.c: Include gelf.h.
1086 (get_string_table): Use size independent API.
1087 (printTable): Use lld to print 64 bit integers.
1088
10892008-08-22 Rafael Avila de Espindola <espindola@google.com>
1090
1091 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1092 entry->visibility are valid.
1093
10942008-07-22 Rafael Avila de Espindola <espindola@google.com>
1095 * lto-symtab.c (table_entry): Add comdat.
1096 (parse_table_entry): Read comdat.
1097
10982008-08-21 Rafael Espindola <espindola@google.com>
1099
1100 * Makefile.am: New.
1101 * Makefile.in: New.
1102 * acinclude.m4: New.
1103 * aclocal.m4: New.
1104 * configure: New.
1105 * configure.ac: New.
1106 * lto-symtab.c: New.