]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/ChangeLog
Always use PIC option with -shared in libtool
[thirdparty/gcc.git] / lto-plugin / ChangeLog
CommitLineData
a699d672
L
12014-11-21 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR bootstrap/63784
4 * configure: Regenerated.
5
fc8b3540
IV
62014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7 Bernd Schmidt <bernds@codesourcery.com>
8 Andrey Turetskiy <andrey.turetskiy@intel.com>
9 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10
11 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
12 (struct plugin_objfile): Add new field "offload".
13 (process_offload_section): New static function.
14 (claim_file_handler): Claim file if it contains offload sections.
15
85c64bbe
BS
162014-11-13 Bernd Schmidt <bernds@codesourcery.com>
17 Thomas Schwinge <thomas@codesourcery.com>
18 Ilya Verbin <ilya.verbin@intel.com>
19 Andrey Turetskiy <andrey.turetskiy@intel.com>
20
21 * Makefile.am (libexecsubdir): Tweak for the possibility of being
22 configured for offload compiler.
23 (accel_dir_suffix, real_target_noncanonical): New variables substituted
24 by configure.
25 * Makefile.in: Regenerate.
26 * configure: Regenerate.
27 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
28 variables.
29
ebf6d33b
FXC
302014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
31
32 PR target/63610
33 * configure: Regenerate.
34
43f4a446
L
352014-08-26 H.J. Lu <hongjiu.lu@intel.com>
36
37 PR bootstrap/62260
38 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
39 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
40 $host_subdir.
41 * Makefile.in: Regenerated.
42 * configure: Likewise.
43
2a7a8388
TS
442014-06-13 Thomas Schwinge <thomas@codesourcery.com>
45
46 * configure.ac (--with-libiberty): New configure option.
47 * configure: Regenerate.
48 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
49 variables.
50 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
51 (liblto_plugin_la_DEPENDENCIES): Use them.
52 * Makefile.in: Regenerate.
53
a2555c65
RO
542014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
55
56 PR lto/60981
57 * configure.ac: Check for -static-libgcc.
58 * configure: Regenerate.
59
ffe7f7a7
JJ
602014-04-17 Jakub Jelinek <jakub@redhat.com>
61
4f148bbc
JJ
62 PR sanitizer/56781
63 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
64 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
65 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
66 over ../libiberty/pic/libiberty.a if the former exists.
67 * Makefile.in: Regenerated.
68
ffe7f7a7
JJ
69 PR sanitizer/56781
70 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
71 * Makefile.in: Regenerated.
72
21b624f0
RB
732014-04-02 Richard Biener <rguenther@suse.de>
74
75 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
76 is set in COLLECT_GCC_OPTIONS.
77
2486c24a
RB
782014-03-28 Richard Biener <rguenther@suse.de>
79
80 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
81
5523efdf
RO
822014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
83
84 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
85 for gcc.
86 * configure: Regenerate.
87 * Makefile.am (AM_LDFLAGS): New variable.
88 (liblto_plugin_la_LDFLAGS): Add it.
89 * Makefile.in: Regenerate.
90
3cbe17f7
AM
912013-09-20 Alan Modra <amodra@gmail.com>
92
93 * configure: Regenerate.
94
de973ab7
DE
952012-09-14 David Edelsohn <dje.gcc@gmail.com>
96
97 * configure: Regenerated.
98
3f417959
JM
992012-05-29 Joseph Myers <joseph@codesourcery.com>
100
101 * lto-plugin.c: Fix typo.
102
e6d5f8c9
L
1032012-05-16 H.J. Lu <hongjiu.lu@intel.com>
104
105 * configure: Regenerated.
106
8cfa7899
KT
1072012-02-22 Kai Tietz <ktietz@redhat.com>
108
109 PR lto/50616
110 * lto-plugin.c (PRI_LL): New macro.
111 (dump_symtab): Use PRI_LL instead of ll in print.
112 (process_symtab): Use PRI_LL instead of ll in scan.
113
4a5e00ca
AS
1142011-12-20 Andreas Schwab <schwab@linux-m68k.org>
115
116 * configure: Regenerate.
117
095af58f
AS
1182011-12-19 Andreas Schwab <schwab@linux-m68k.org>
119
120 * configure: Regenerate.
121
c6084f68
AT
1222011-11-21 Andreas Tobler <andreast@fgznet.ch>
123
124 * configure: Regenerate.
125
ed0d2da0
JH
1262011-10-02 Jan Hubicka <jh@suse.cz>
127
128 PR lto/47247
129 * lto-plugin.c (get_symbols_v2): New variable.
130 (write_resolution): Use V2 API when available.
131 (onload): Handle LDPT_GET_SYMBOLS_V2.
132
ad7715f3
L
1332011-09-30 H.J. Lu <hongjiu.lu@intel.com>
134 Andi Kleen <ak@linux.intel.com>
135
136 PR lto/50568
137 * lto-plugin.c (sym_aux): Change id to unsigned long long.
138 (plugin_symtab): Likewise.
139 (dump_symtab): Likewise.
140 (resolve_conflicts): Likewise.
141 (process_symtab): Likewise.
142
f3016c47
RG
1432011-08-10 Richard Guenther <rguenther@suse.de>
144
145 PR bootstrap/49907
146 lto-plugin/
147 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
148 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
149 * configure: Regenerate.
150 * Makefile.in: Likewise.
151 * aclocal.m4: Likewise.
152
04695783
JM
1532011-04-20 Jim Meyering <meyering@redhat.com>
154
155 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
156
3b8c1a3f
RG
1572011-04-05 Richard Guenther <rguenther@suse.de>
158
159 PR bootstrap/48431
160 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
161
029c8f3e
RW
1622011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
163
164 * Makefile.in: Regenerate.
165 * aclocal.m4: Regenerate.
166 * configure: Regenerate.
167
3917813c
RW
1682011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
169
170 * Makefile.am (all-local): Rename from 'all'.
171 * Makefile.in: Regenerate.
172
f3d533d3
AO
1732011-02-12 Alexandre Oliva <aoliva@redhat.com>
174
175 PR lto/47225
176 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
177 (liblto_plugin_la_LDFLAGS): Add -module.
178 (copy_lto_plugin): Renamed to...
179 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
180 of static modules.
181 * Makefile.in: Rebuild.
182
f43c3935
KT
1832011-02-07 Kai Tietz <kai.tietz@onevision.com>
184
185 PR lto/47225
186 * Makefile.am (Wc): New helper for encoding -Wc,.
187 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
188 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
189 * Makefile.in: Regenerated.
190
e6d926d7
PB
1912011-02-07 Paolo Bonzini <bonzini@gnu.org>
192
193 Revert:
194
195 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
196
197 PR lto/47225
198 * Makefile.am (Wl): New helper for encoding -Wl,.
199 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
200 * Makefile.in: Regenerated.
201
c7b5125d
KT
2022011-02-07 Kai Tietz <kai.tietz@onevision.com>
203
204 PR lto/47225
205 * Makefile.am (Wl): New helper for encoding -Wl,.
206 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
207 * Makefile.in: Regenerated.
208
e3bb089d
ILT
2092011-01-25 Ian Lance Taylor <iant@google.com>
210
211 * lto-plugin.c (gold_version): New static variable.
212 (all_symbols_read_handler): Don't check pass_through_items if
213 using gold 1.11 or later.
214 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
215
47782a9d
RG
2162011-01-12 Richard Guenther <rguenther@suse.de>
217
218 PR lto/47264
219 * lto-plugin.c (parse_table_entry): Use memcpy to access
220 unaligned fields.
221
5b64bab9
DK
2222010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
223
224 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
225 * Makefile.in: Regenerate.
226
be3ea0c8
RO
2272010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
228
229 Revert last change.
230
dd8587d6
RO
2312010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
232
233 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
234 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
235 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
236 * Makefile.in: Regenerate.
237
77754180
DK
2382010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
239
240 PR middle-end/46674
241 PR lto/43157
242 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
243 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
244 * configure: Regenerate.
245 * config.h.in: Likewise.
246
7de6ba7a
DK
2472010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
248
249 PR target/40125
250 PR lto/46695
251 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
252 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
253 override -bindir setting.
254 * aclocal.m4: Regenerate.
255 * configure: Regenerate.
256 * Makefile.in: Regenerate.
257
ec692d5f
KT
2582010-12-05 Kai Tietz <kai.tietz@onevision.com>
259
260 * config.h.in: Regenerated.
261 * configure: Regenerated.
262 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
263 * lto-plugin.c (WIFEXITED): Define default.
264 (WEXITSTATUS): Likeiwse.
265
a2254c5d
KT
2662010-12-01 Kai Tietz <kai.tietz@onevision.com>
267
268 * config.h.in: Regenerated.
269 * configure: Regenerated.
270 * Makefile.in: Regenerated.
271 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
272 * lto-plugin.c: Include sys/wait.h conditionally.
273 * aclocal.m4: Regenerated.
274
44538c62
KT
2752010-11-13 Kai Tietz <kai.tietz@onevision.com>
276
277 * lto-plugin.c (add_output_files): Fix memory leak.
278
d19e0f01
DK
2792010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
280
281 PR bootstrap/46397
282 PR bootstrap/46362
283 * configure.ac: Add AC_TYPE_INT64_T test.
284 * config.h.in: Regenerate.
285 * configure: Likewise.
286 * lto-plugin.c (debug): Use char not bool.
287 (nop): Likewise.
288 (check_1): Rename from check, and use int not bool for gate argument.
289 (check): Macro wrapper for the above to coerce gate argument into
290 boolean-valued integer in case it has pointer type.
291 (parse_table_entry): Use 0 not false.
292 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
293 into two 32-bit parts and printing as hex ints.
294
37da3688
DK
2952010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
296
297 PR lto/46291
298 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
299
48215350
DK
3002010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
301
302 PR lto/46273
303 * lto-plugin.h: Delete.
304 * lto-plugin-elf.c: Likewise.
305 * lto-plugin-coff.c: Likewise.
306 * configure.ac: Don't use libelf, don't source config.gcc.
307 (LIBELFLIBS): Delete.
308 (LIBELFINC): Delete.
309 (LTO_FORMAT): Delete.
310 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
311 (config.h): Add AC_CONFIG_HEADERS directive.
312 * Makefile.am (LIBELFLIBS): Delete.
313 (LIBELFINC): Delete.
314 (LTO_FORMAT): Delete.
315 (DEFS): Import.
316 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
317 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
318 any object-format-specific source file in the link.
319 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
320 * config.h.in: Generate.
321 * configure: Regenerate.
322 * Makefile.in: Likewise.
323 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
324 (LTO_SEGMENT_NAME): New definition.
325 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
326 (LTO_SECTION_PREFIX_LEN): New definition.
327 (struct sym_aux): Struct definition moved here from lto-plugin.h.
328 (struct plugin_symtab): Likewise.
329 (struct plugin_objfile): Likewise.
330 (struct plugin_objfile): New struct def.
331 (enum symbol_style): New enum type.
332 (add_symbols): Make static.
333 (claimed_files): Likewise.
334 (num_claimed_files): Likewise.
335 (sym_style): New global.
336 (check): Make static.
337 (parse_table_entry): Likewise. Respect sym_style when extracting
338 symbol from symtab entry.
339 (translate): Make static.
340 (resolve_conflicts): Likewise.
341 (process_symtab): New function, per-section callback version of
342 old object-format-specific handling from deleted lto-plugin-elf.c.
343 (claim_file_handler): Convert ELF-specific version from deleted
344 lto-plugin-elf.c to simple_object interface and move here.
345 (process_options): Allow new '-sym-style=' option.
346 (onload): Don't call deleted onload_format_checks hook.
347
9df2493c
KT
3482010-10-11 Kai Tietz <kai.tietz@onevision.com>
349
350 * lto-plugin.c (dump_symtab): Correct printf argument type.
351 (finish_conflict_resolution): Initialize resolution.
352
73d5e770
L
3532010-10-08 H.J. Lu <hongjiu.lu@intel.com>
354
355 PR bootstrap/45951
356 * configure.ac: Add AC_CANONICAL_SYSTEM.
357 * configure: Regenerated.
358
1cd0b716
DK
3592010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
360
361 * configure.ac: Source config.gcc to determine lto_binary_reader.
362 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
363 * Makefile.am (LTO_FORMAT): Import.
364 (liblto_plugin_la_SOURCES): Add object format dependent module
365 defined by LTO_FORMAT.
366 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
367 and work around libtool warning.
368 * configure: Regenerate.
369 * Makefile.in: Likewise.
370 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
371 (struct sym_aux): Likewise.
372 (struct plugin_symtab): Likewise.
373 (struct plugin_file_info): Likewise.
374 (LTO_SECTION_PREFIX): Likewise.
375 (add_symbols): Make non-static.
376 (claimed_files): Likewise.
377 (num_claimed_files): Likewise.
378 (check): Likewise.
379 (parse_table_entry): Likewise.
380 (translate): Likewise.
381 (resolve_conflicts): Likewise.
382 (process_symtab): Move to new lto-plugin-elf.c object format dependent
383 source file.
384 (claim_file_handler): Likewise, and make non-static.
385 (onload): Call new onload_format_checks function.
386 * lto-plugin.h: New file.
387 (LTO_SECTION_PREFIX): Move here.
388 (struct sym_aux): Likewise.
389 (struct plugin_symtab): Likewise.
390 (struct plugin_file_info): Likewise.
391 (claim_file_handler): Add new function prototype.
392 (onload_format_checks): Likewise.
393 (check): Declare extern.
394 (translate): Likewise.
395 (parse_table_entry): Likewise.
396 (resolve_conflicts): Likewise.
397 (add_symbols): Likewise.
398 (claimed_files): Likewise.
399 (num_claimed_files): Likewise.
400 * lto-plugin-elf.c (process_symtab): Move here.
401 (claim_file_handler): Likewise, and make non-static.
402 (onload_format_checks): New function factored out from onload.
403 * lto-plugin-coff.c (claim_file_handler): New function stub.
404 (onload_format_checks): Likewise.
405
d2c57fe9
AK
4062010-08-05 Andi Kleen <ak@linux.intel.com>
407
408 * lto-plugin.c: Include <hashtab.h>
409 (sym_aux): Add next_conflict field to save conflict chains.
410 (plugin_file_info): Add conflicts symtab.
411 (parse_table_entry): Initialize aux->next_conflict.
412 (process_symtab): Increment found.
413 (dump_symtab): Add.
414 (finish_conflict_resolution): Add.
415 (free_symtab): Add.
416 (write_resolution): Remove symbols loop and move into
417 dump_symtab. Call dump_symtab for main symbol and conflicts table.
418 Call free_symtab to free conflicts table.
419 (SWAP): Add.
420 (eq_sym): Add.
421 (hash_sym): Add.
422 (symbol_strength): Add.
423 (resolve_conflicts): Add.
424 (claim_file_handler): Add n variable. Check return value of
425 process_symtab. Call resolve_conflicts.
426
ecdbd01a 4272010-07-27 Andi Kleen <ak@linux.intel.com>
90e26247
AK
428
429 * lto-plugin.c (translate): Remove debug fprintf.
430
9477ccb2
L
4312010-07-23 H.J. Lu <hongjiu.lu@intel.com>
432
433 PR bootstrap/45042
434 * lto-plugin.c (translate): Cast to unsigned long.
435
ecdbd01a 4362010-07-23 Andi Kleen <ak@linux.intel.com>
73ce4d1e
AK
437
438 PR lto/44992
439 * lto-plugin.c (sym_aux): Add.
440 (plugin_symtab): Remove slots. Add aux and id.
441 (parse_table_entry): Change to use aux instead of slots.
442 (LTO_SECTION_PREFIX): Add.
443 (translate): Improve buffer allocation. Change to append
444 symbols to existing out buffer.
445 (get_section): Remove.
446 (process_symtab): Add.
447 (free_2): Free symtab->aux.
448 (write_resolution): Handle aux instead of slots.
449 Print sub id to resolution file.
450 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
451 calls with call to process_symtab.
452
553fc582
RG
4532010-07-22 Richard Guenther <rguenther@suse.de>
454
455 * Makefile.am: New copy_lto_plugin rule to install the plugin
456 into ../gcc.
457 * Makefile.in: Regenerated.
458
bdc89f9e
RG
4592010-05-21 Richard Guenther <rguenther@suse.de>
460
461 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
462
5cd0e96b
RG
4632010-05-07 Richard Guenther <rguenther@suse.de>
464
465 * lto-plugin.c (free_2): Do not free resolution_file.
466 (write_resolution): Check that we were passed a resolution file.
467 (all_symbols_read_handler): Adjust.
468 (cleanup_handler): Do not remove the resolution file.
469 (process_option): Handle -fresolution=.
470
13917ae3
RW
4712010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
472
473 PR other/43620
474 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
475 * Makefile.in: Regenerate.
476
ed0f0c0f
RG
4772010-04-23 Richard Guenther <rguenther@suse.de>
478
479 PR lto/41550
480 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
481 (translate): Likewise.
482 (all_symbols_read_handler): Likewise.
483 (claim_file_handler): Likewise.
484 (process_option): Likewise.
485 (add_output_files): Likewise. Remove filename length limit.
486
4d9e8446
RW
4872010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
488
489 * Makefile.in: Regenerate.
490 * aclocal.m4: Regenerate.
491
a8a5ac48
DG
4922010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
493
494 PR lto/43336
495 * lto-plugin.c (cleanup_handler): Delete temporary output files.
496
c164615b
RG
4972010-01-11 Richard Guenther <rguenther@suse.de>
498
499 PR lto/41569
500 * Makefile.am: Disable dependencies.
501 * Makefile.in: Regenerated.
502
f0d61983
L
5032010-01-03 H.J. Lu <hongjiu.lu@intel.com>
504
505 PR lto/42520
506 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
507 if -v is passed.
508
52327858 5092009-12-05 H.J. Lu <hongjiu.lu@intel.com>
43e02a8a 510
52327858
L
511 PR bootstrap/42306
512 * configure: Regenerated.
513 * Makefile.in: Likewise.
43e02a8a 514
92fa7608
RAE
5152009-11-19 Rafael Avila de Espindola <espindola@google.com>
516
517 PR bootstrap/42096
518 * lto-plugin.c (claim_file_handler): Print offsets in hex.
519
06bd7f56
RAE
5202009-11-12 Rafael Avila de Espindola <espindola@google.com>
521
522 * lto-plugin.c (write_resolution): Assume resolution_file is set.
523 Print the symbol name.
524 (all_symbols_read_handler): Create a resolution file.
525 Pass it to gcc.
526 (cleanup_handler): Remove the resolution file.
527 (process_option): Drop the -resolution option.
528
94086ef6
RAE
5292009-11-05 Rafael Avila de Espindola <espindola@google.com>
530
531 * lto-plugin.c (temp_obj_dir_name): Remove.
532 (arguments_file_name): New.
533 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
534 (exec_lto_wrapper): Create arguments file with make_temp_file.
535 (cleanup_handler): Don't remove the temporary directory. Remove the
536 arguments file.
537 (onload): Don't create the temporary directory.
538
7e9dc421
RG
5392009-11-04 Richard Guenther <rguenther@suse.de>
540 Rafael Avila de Espindola <espindola@google.com>
541
542 * lto-plugin.c (plugin_file_info): Remove temp field.
543 (cleanup_handler): Don't delete temporary objects.
544 (claim_file_handler): Don't create temporary objects.
545
1cddcdca
RAE
5462009-11-04 Rafael Avila de Espindola <espindola@google.com>
547
548 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
549
86ed04df
RAE
5502009-10-30 Rafael Avila de Espindola <espindola@google.com>
551
552 PR41871
553 * lto-plugin.c (claim_file_handler): Close files that we created.
554
aff4273c
RAE
5552009-10-28 Rafael Avila de Espindola <espindola@google.com>
556
557 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
558 LDPL_ERROR
559
4c0f4b0b
DG
5602009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
561
562 PR lto/41652
563 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
564 * configure: Regenerate.
565
03428d41
RG
5662009-10-26 Richard Guenther <rguenther@suse.de>
567
568 * configure.ac: Use AM_MAINTAINER_MODE.
569 * acinclude.m4: Remove.
570 * configure: Re-generate.
571 * Makefile.in: Likewise.
572 * aclocal.m4: Likewise.
573
941e566a
RE
5742009-10-19 Rafael Avila de Espindola <espindola@google.com>
575
576 PR40790
577 * configure: Regenerate.
578 * configure.ac: Add AC_TYPE_UINT64_T.
579
33662270
RAE
5802009-10-16 Rafael Avila de Espindola <espindola@google.com>
581
582 * lto-plugin.c (message): New variable.
583 (check): New function.
584 (parse_table_entry, translate, write_resolution,add_output_files,
585 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
586 assert.
587 (cleanup_handler): Use check instead of assert. Remove the arguments
588 file if it exists.
589
b10071c5
RAE
5902009-10-15 Rafael Avila de Espindola <espindola@google.com>
591
592 * lto-plugin.c (resolution_file): New.
593 (free_1): Update comment.
594 (free_2): Free resolution_file.
595 (write_resolution): Write resolution to specified file. Use the
596 syms array from the symbol table.
597 (all_symbols_read_handler): Delay call to free_1 past call to
598 write_resolution.
599 (process_option): Add a -resolution option.
600
076c7ebe
RG
6012009-10-13 Richard Guenther <rguenther@suse.de>
602
603 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
604 correct libiberty.
605 * Makefile.in: Regenerated.
606
d520c7fb
RAE
6072009-10-08 Rafael Avila de Espindola <espindola@google.com>
608
609 * lto-plugin.c (add_input_library): New.
610 (all_symbols_read_handler): Use add_input_library for items that
611 start with -l.
612 (process_option): Fit in 80 columns.
613 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
614
d7f09764
DN
6152009-10-02 Diego Novillo <dnovillo@google.com>
616
617 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
618 and -D_FILE_OFFSET_BITS=64.
619 * configure.ac: Add AC_SYS_LARGEFILE.
620 * configure: Regenerate.
621 * Makefile.in: Regenerate.
622 * lto-plugin.c: Fix copyright boilerplate.
623
6242009-10-02 Diego Novillo <dnovillo@google.com>
625
626 * Makefile.am (ACLOCAL_AMFLAGS): Define.
627 * aclocal.m4: Regenerate with aclocal-2.64
628 * acinclude.m4: Remove.
629 * Makefile.in: Regenerate with automake-1.11
630 * configure.ac (AC_PREREQ): Update to 2.64.
631 * configure: Regenerate.
632
6332009-10-02 Diego Novillo <dnovillo@google.com>
634
635 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
636 and -D_FILE_OFFSET_BITS=64.
637 * configure.ac: Add AC_SYS_LARGEFILE.
638 * configure: Regenerate.
639 * Makefile.in: Regenerate.
640 * lto-plugin.c: Fix copyright boilerplate.
641
6422009-10-02 Diego Novillo <dnovillo@google.com>
643
644 * Makefile.am (ACLOCAL_AMFLAGS): Define.
645 * aclocal.m4: Regenerate with aclocal-2.64
646 * acinclude.m4: Remove.
647 * Makefile.in: Regenerate with automake-1.11
648 * configure.ac (AC_PREREQ): Update to 2.64.
649 * configure: Regenerate.
650
6512009-10-02 Rafael Avila de Espindola <espindola@google.com>
652
653 * Makefile.am (liblto_plugin_la_SOURCES): Remove
654 $(top_srcdir)/../gcc/lto/common.c
655 * Makefile.in: Regenerate.
656
6572009-10-01 Rafael Avila de Espindola <espindola@google.com>
658
659 * lto-plugin.c (pass_through_items): New.
660 (num_pass_through_items): New.
661 (all_symbols_read_handler): Update to use the -pass-through option.
662 (process_option): Replace -libgcc with -pass-through.
663
6642009-09-30 Rafael Avila de Espindola <espindola@google.com>
665
666 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
667 register_cleanup to be set.
668
6692009-09-30 Rafael Avila de Espindola <espindola@google.com>
670
671 * Makefile.am: Remove all reference to ltosymtab.
672 * Makefile.in: Regenerate.
673 * lto-symtab.c: Remove.
674
6752009-05-21 Diego Novillo <dnovillo@google.com>
676
677 * configure.ac: Remove call to AC_CHECK_GELF.
678 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
679 * acinclude.m4: Do not include ../config/libelf.m4
680 * Makefile.am (LIBELFLIBS): Define.
681 (LIBELFINC): Define.
682 (AM_CPPFLAGS): Add $(LIBELFINC).
683 (ltosymtab_LDADD): Add $(LIBELFLIBS).
684 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
685 * lto-plugin.c: Always include <gelf.h>
686 * lto-symtab.c: Likewise.
687 * configure: Regenerate.
688 * Makefile.in: Regenerate.
689
6902009-03-23 Rafael Avila de Espindola <espindola@google.com>
691
692 * lto-plugin.c (libgcc_filename): New.
693 (all_symbols_read_handler): Pass libgcc to the linker.
694 (all_symbols_read_handler): Parse -libgcc
695
6962009-02-05 Rafael Avila de Espindola <espindola@google.com>
697
698 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
699 * Makefile.in: Regenerate.
700 * lto-plugin.c (add_output_files): Argument is now a FILE.
701 (exec_lto_wrapper): Use writeargv and pex.
702
7032009-02-04 Rafael Avila de Espindola <espindola@google.com>
704
705 Revert:
706 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
707 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
708
709
7102009-02-04 Rafael Avila de Espindola <espindola@google.com>
711
712 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
713
7142009-01-29 Rafael Avila de Espindola <espindola@google.com>
715
716 * lto-plugin.c: Include libiberty.h.
717 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
718 snprintf.
719
7202009-01-29 Rafael Avila de Espindola <espindola@google.com>
721
722 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
723 file to lto-wrapper.
724
7252009-01-28 Rafael Avila de Espindola <espindola@google.com>
726
727 * lto-plugin.c (plugin_file_info): Remove fd and elf.
728 (parse_table_entry): strdup entry->name and entry->comdat_key.
729 (free_1): Free name and comdat_key. Don't close the file. Don't call
730 elf_end.
731 (claim_file_handler): Always call elf_end.
732
7332008-12-23 Rafael Avila de Espindola <espindola@google.com>
734
735 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
736 -D_FILE_OFFSET_BITS=64
737 * Makefile.in: Regenerate
738
7392008-12-22 Rafael Avila de Espindola <espindola@google.com>
740
741 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
742 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
743 * Makefile.in: Regenerate.
744 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
745 * configure: Regenerate.
746 * configure.ac: Add AC_SUBST(target_noncanonical).
747
7482008-12-08 Rafael Avila de Espindola <espindola@google.com>
749
750 * lto-plugin.c: Include stdbool.h.
751 (debug, nop): Declare as bool.
752
7532008-12-08 Rafael Avila de Espindola <espindola@google.com>
754
755 * lto-plugin.c (nop): New.
756 (use_original_files): New.
757 (all_symbols_read_handler): Call use_original_files if nop is true.
758 (process_option): Parse the -nop option.
759
7602008-12-08 Rafael Avila de Espindola <espindola@google.com>
761
762 * lto-plugin.c (debug): New.
763 (exec_lto_wrapper): Print argv if debug is true.
764 (process_option): Process the -debug command line option.
765
7662008-12-03 Rafael Avila de Espindola <espindola@google.com>
767
768 * lto-plugin.c (process_option): The argument is now a single option,
769 not a space separated list.
770
7712008-12-02 Rafael Avila de Espindola <espindola@google.com>
772
773 * lto-plugin.c: Include sys/types.h and sys/wait.h
774 (output_files, num_output_files, lto_wrapper_argv,
775 lto_wrapper_num_args): New.
776 (free_2): Free output_files.
777 (write_resolution): Disable.
778 (add_output_files): New.
779 (exec_lto_wrapper): New.
780 (all_symbols_read_handler): Run lto-wrapper.
781 (claim_file_handler): Free lto_file.name and call elf_end.
782 (process_option): New.
783
7842008-11-26 Rafael Espindola <espindola@google.com>
785
786 * lto-plugin.c (add_input_file): New.
787 (get_section): Return NULL if get_section fails.
788 (write_resolution): New.
789 (all_symbols_read_handler): Call add_input_file.
790 (claim_file_handler): Unlink the correct file.
791 (onload): Record add_input_file.
792
7932008-09-23 Rafael Espindola <espindola@google.com>
794
795 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
796 Update the location of common.c.
797 * Makefile.in: Regenerate.
798 * common.c: Moved to gcc/lto.
799 * common.h: Moved to gcc/lto.
800 * lto-plugin.c: Update the location of common.h.
801 * lto-symtab.c: Update the location of common.h.
802
8032008-09-23 Rafael Espindola <espindola@google.com>
804
805 * common.c: Include common.h.
806 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
807 sizes.
808 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
809 explicit sizes.
810
8112008-09-23 Rafael Espindola <espindola@google.com>
812
813 * lto-plugin.c (plugin_file_info): Add temp.
814 (cleanup_handler): Only delete temporary files.
815 (claim_file_handler): Initialize lto_file.temp.
816
8172008-09-23 Rafael Espindola <espindola@google.com>
818
819 * plugin-api.h: Moved to include.
820
8212008-09-23 Rafael Espindola <espindola@google.com>
822
823 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
824 format.
825
8262008-09-22 Rafael Espindola <espindola@google.com>
827
828 * plugin-api.h: Copy from binutils' cvs.
829
8302008-09-22 Rafael Espindola <espindola@google.com>
831
832 * lto-symtab.c (get_symbols, add_symbols): Update signature.
833 * plugin-api.h: Copy from binutils' cvs.
834
8352008-09-22 Rafael Espindola <espindola@google.com>
836
837 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
838 Make extern
839
8402008-09-10 Rafael Espindola <espindola@google.com>
841
842 * lto-plugin.c (onload): add missing break statements and asserts.
843 * lto-symtab.c (claim_file_handler): Make it static.
844 (all_symbols_read_handler): Make it static.
845 (all_file_handles): Make it static.
846 (num_file_handles): Make it static.
847 (register_claim_file): Make it static.
848 (register_object): Indent properly.
849
8502008-09-10 Rafael Avila de Espindola <espindola@google.com>
851
852 * Makefile.am (ltosymtab_LDADD): Add -lelf.
853 * Makefiel.in: Regenerate.
854 * lto-plugin.c: Include ar.h.
855 (claim_file_handler): Handle file->offset != 0.
856 * lto-symtab.c: Include gelf.h.
857 (all_file_handles): Change type.
858 (register_object): New.
859 (register_file): Add support for archives.
860 (resolve): Update to new type of all_file_handles.
861 (print): Update to new type of all_file_handles.
862 (free_all): Update to new type of all_file_handles.
863 (main): Update to new type of all_file_handles.
864
8652008-09-10 Rafael Avila de Espindola <espindola@google.com>
866
867 * lto-plugin.c (get_string_table): Remove.
868 (get_section): Use elf_strptr instead of get_string_table.
869
8702008-09-08 Doug Kwan <dougkwan@google.com>
871
872 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
873 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
874
8752008-09-08 Rafael Avila de Espindola <espindola@google.com>
876
877 * Makefile.am (ltosymtab_SOURCES): add common.c.
878 (ltosymtab_CFLAGS): New.
879 (liblto_plugin_la_SOURCES): Add common.c.
880 * Makefile.in: Regenerate.
881 * common.c: New.
882 * common.h: New.
883 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
884 (plugin_symtab): New.
885 (plugin_file_info): New.
886 (register_all_symbols_read): New.
887 (get_symbols): New.
888 (claimed_files): New.
889 (num_claimed_files): New.
890 (translate): Don't drop the slot number.
891 (free_1): New.
892 (free_2): New.
893 (all_symbols_read_handler): New.
894 (claim_file_handler): Record every claimed file.
895 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
896 LDPT_GET_SYMBOLS.
897 * lto-symtab.c: Include stdlib.h, string.h and common.h.
898 (current_file_handle): Remove.
899 (ld_plugin_all_symbols_read_handler): New.
900 (plugin_handle): New.
901 (file_handle): New.
902 (all_file_handles): New.
903 (num_file_handles): New.
904 (get_symbols): New.
905 (register_all_symbols_read): New.
906 (add_symbols): Don't print the symbols, just record them.
907 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
908 LDPT_GET_SYMBOLS.
909 (load_plugin): Use plugin_handle.
910 (register_file): Add the file handle to all_file_handles.
911 (resolve): New.
912 (print): New.
913 (unload_plugin): New.
914 (free_all): New.
915 (main): Call all_symbols_read_handler and free resources.
916
9172008-09-03 Rafael Avila de Espindola <espindola@google.com>
918
919 * Makefile.am (AM_CFLAGS): New.
920 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
921 (lib_LTLIBRARIES): New.
922 (liblto_plugin_la_SOURCES): New.
923 (liblto_plugin_la_LIBADD): New.
924 * Makefile.in: Regenerate.
925 * acinclude.m4: Don't include ../config/acx.m4 and
926 ../config/no-executables.m4.
927 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
928 ../libtool.m4.
929 * aclocal.m4: Regenerate.
930 * configure: Regenerate.
931 * configure.ac: Use AM_PROG_LIBTOOL.
932 * lto-plugin.c: New.
933 * lto-symtab.c: Rewrite to use the plugin.
934 * plugin-api.h: New.
935
9362008-08-25 Rafael Avila de Espindola <espindola@google.com>
937
938 * configure: Regenerate.
939 * configure.ac: Use AC_CHECK_GELF.
940 * lto-symtab.c: Include gelf.h.
941 (get_string_table): Use size independent API.
942 (printTable): Use lld to print 64 bit integers.
943
9442008-08-22 Rafael Avila de Espindola <espindola@google.com>
945
946 * lto-symtab.c (parse_table_entry): Assert entry->kind and
947 entry->visibility are valid.
948
9492008-07-22 Rafael Avila de Espindola <espindola@google.com>
950 * lto-symtab.c (table_entry): Add comdat.
951 (parse_table_entry): Read comdat.
952
9532008-08-21 Rafael Espindola <espindola@google.com>
954
955 * Makefile.am: New.
956 * Makefile.in: New.
957 * acinclude.m4: New.
958 * aclocal.m4: New.
959 * configure: New.
960 * configure.ac: New.
961 * lto-symtab.c: New.