]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/ChangeLog
Daily bump.
[thirdparty/gcc.git] / lto-plugin / ChangeLog
CommitLineData
4b92dba7
GA
12023-08-07 Nick Alcock <nick.alcock@oracle.com>
2
3 * configure: Regenerate.
4
52023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
6
7 * configure: Regenerate.
8
92023-08-07 Nick Alcock <nick.alcock@oracle.com>
10
11 * configure: Regenerate.
12
132023-08-07 Nick Alcock <nick.alcock@oracle.com>
14
15 * configure: Regenerate.
16
172023-08-07 H.J. Lu <hjl.tools@gmail.com>
18
19 * configure: Regenerate.
20
212023-08-07 H.J. Lu <hjl.tools@gmail.com>
22
23 * configure: Regenerate.
24
69d3015a
GA
252023-06-30 Martin Jambor <mjambor@suse.cz>
26
27 * Makefile.in: Regenerate.
28
270742ce
GA
292023-06-22 Marek Polacek <polacek@redhat.com>
30
31 * configure.ac (--enable-host-bind-now): New check. Link with
32 -z,now.
33 * configure: Regenerate.
34
3d125c91
GA
352023-05-11 Joseph Myers <joseph@codesourcery.com>
36
37 PR middle-end/109128
38 * lto-plugin.c (register_claim_file_v2): New.
39 (claim_file_handler_v2): New.
40 (claim_file_handler): Wrap claim_file_handler_v2.
41 (onload): Handle LDPT_REGISTER_CLAIM_FILE_HOOK_V2.
42
8761284f
GA
432022-11-23 Marek Polacek <polacek@redhat.com>
44
45 Revert:
46 2022-11-23 Marek Polacek <polacek@redhat.com>
47
48 * configure.ac (--enable-host-bind-now): New check. Link with
49 -z,now.
50 * configure: Regenerate.
51
522022-11-23 Marek Polacek <polacek@redhat.com>
53
54 * configure.ac (--enable-host-bind-now): New check. Link with
55 -z,now.
56 * configure: Regenerate.
57
781f477a
GA
582022-10-12 Martin Liska <mliska@suse.cz>
59
60 * configure: Regenerate.
61
ab332cd7
GA
622022-10-11 Olivier Hainque <hainque@adacore.com>
63 Olivier Hainque <hainque@adacore.com>
64
65 * configure: Regenerate.
66
32510382
GA
672022-08-01 Martin Liska <mliska@suse.cz>
68
69 PR lto/106170
70 * configure.ac: Replace $target with $host.
71 * configure: Regenerate.
72
e0e07bc7
GA
732022-07-14 Martin Liska <mliska@suse.cz>
74
75 PR bootstrap/106156
76 * Makefile.am: Use ac_lto_plugin_extra_ldflags for AM_LDFLAGS.
77 * configure.ac: Use AC_SUBST(ac_lto_plugin_extra_ldflags).
78 * Makefile.in: Regenerate.
79 * configure: Regenerate.
80
43997608
GA
812022-07-12 Martin Liska <mliska@suse.cz>
82
83 * lto-plugin.c (negotiate_api_version): New.
84 (onload): Negotiate API version.
85 * Makefile.am: Add -DBASE_VERSION.
86 * Makefile.in: Regenerate.
87
6345c414
GA
882022-07-07 Martin Liska <mliska@suse.cz>
89
90 PR lto/106170
91 * configure.ac: Configure HAVE_PTHREAD_LOCKING.
92 * lto-plugin.c (LOCK_SECTION): New.
93 (UNLOCK_SECTION): New.
94 (claim_file_handler): Use the newly added macros.
95 (onload): Likewise.
96 * config.h.in: Regenerate.
97 * configure: Regenerate.
98
ed974488
GA
992022-07-01 Pekka Seppänen <pexu@gcc.mail.kapsi.fi>
100
101 PR lto/106118
102 * configure.ac: Move -pthread from here...
103 * Makefile.am: ...to here.
104 * configure: Regenerate.
105 * Makefile.in: Likewise.
106
9d3dd218
GA
1072022-06-27 Martin Liska <mliska@suse.cz>
108
109 * lto-plugin.c (plugin_lock): New lock.
110 (claim_file_handler): Use mutex for critical section.
111 (onload): Initialize mutex.
112 * configure.ac: Check for pthread.h.
113 * configure: Regenerate.
114 * config.h.in: Regenerate.
115
d6ba3211
GA
1162022-06-20 Martin Liska <mliska@suse.cz>
117
118 * lto-plugin.c (struct plugin_file_info): Add skip_file flag.
119 (write_resolution): Write resolution only if get_symbols != LDPS_NO_SYMS.
120 (all_symbols_read_handler): Ignore file if skip_file is true.
121 (onload): Handle LDPT_GET_SYMBOLS_V3.
122
3e7db517
GA
1232022-05-04 Martin Liska <mliska@suse.cz>
124
125 * lto-plugin.c (struct plugin_objfile): Use bool for offset
126 field.
127 (exec_lto_wrapper): Assign true/false to bool variables.
128 (process_offload_section): Likewise.
129 (claim_file_handler): Likewise.
130 (onload): Likewise.
131
a2287813
GA
1322022-03-22 Jakub Jelinek <jakub@redhat.com>
133
134 PR lto/102426
135 * configure.ac (LTO_PLUGIN_USE_SYMVER, LTO_PLUGIN_USE_SYMVER_GNU,
136 LTO_PLUGIN_USE_SYMVER_SUN): New test for symbol versioning support.
137 * Makefile.am (version_arg, version_dep): Set conditionally based
138 on LTO_PLUGIN_USE_SYMVER*.
139 (liblto_plugin_la_LDFLAGS): Use $(version_arg) instead of
140 -export-symbols-regex onload.
141 (liblto_plugin_la_DEPENDENCIES): Depend on $(version_dep).
142 * lto-plugin.map: New file.
143 * configure: Regenerated.
144 * Makefile.in: Regenerated.
145
b00f9761
GA
1462022-03-11 Tobias Burnus <tobias@codesourcery.com>
147
148 * lto-plugin.c (all_symbols_read_handler): With -save-temps, use
149 link_output_name for -foffload-objects's file name, if available.
150
12d4552e
GA
1512022-03-01 Martin Liska <mliska@suse.cz>
152
153 * lto-plugin.c (process_offload_section): Use a linker as many
154 comments are connected to gold linker.
155 (process_option): Likewise.
156
ea6ef320
GA
1572021-12-02 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
158
159 * lto-plugin.c: Fix -linker-output-auto-notlo-rel ->
160 -linker-output-auto-nolto-rel typo.
161 (process_option): Adjust accordingly, accepting both old and
162 new spelling.
163
07985c47
GA
1642021-09-13 Andrew Pinski <apinski@marvell.com>
165
166 PR lto/49664
167 * Makefile.am: Export only onload.
168 * Makefile.in: Regenerate.
169
90708f87
GA
1702021-06-25 Richard Biener <rguenther@suse.de>
171
172 * lto-plugin.c (ltrans_objects): New global.
173 (all_symbols_read_handler): If -ltrans-objects was specified,
174 add the output files from the specified file directly.
175 (process_option): Handle -ltrans-objects.
176
aa891c56
GA
1772021-05-10 Martin Liska <mliska@suse.cz>
178
179 * lto-plugin.c (LTO_SEGMENT_NAME): Remove.
180 (LTO_SYMTAB_PREFIX): Likewise.
181 (LTO_SYMTAB_PREFIX_LEN): Likewise.
182 (LTO_SYMTAB_EXT_PREFIX): Likewise.
183 (LTO_SYMTAB_EXT_PREFIX_LEN): Likewise.
184 (LTO_LTO_PREFIX): Likewise.
185 (LTO_LTO_PREFIX_LEN): Likewise.
186 (OFFLOAD_SECTION): Likewise.
187 (OFFLOAD_SECTION_LEN): Likewise.
188 (startswith): New function.
189 (all_symbols_read_handler): Use it.
190 (process_symtab): Likewise.
191 (process_symtab_extension): Likewise.
192 (process_offload_section): Likewise.
193 (process_option): Likewise.
194
e690396d
GA
1952021-05-03 H.J. Lu <hjl.tools@gmail.com>
196
197 PR bootstrap/99703
198 * configure: Regenerated.
199
c1ef0c92
GA
2002021-04-21 Martin Liska <mliska@suse.cz>
201
202 * lto-plugin.c (exec_lto_wrapper): Make a temp variable.
203
651b8a50
GA
2042021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
205
206 * configure: Re-generate.
207
a9625c50
GA
2082020-11-29 John David Anglin <danglin@gcc.gnu.org>
209
210 * configure: Regenerate.
211
360258da
GA
2122020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
213
214 * Makefile.am: Avoid using sanitizer.
215 * Makefile.in: Regenerate.
216
fdcc0283
GA
2172020-09-10 Jonathan Yong <10walls@gmail.com>
218
219 * Makefile.am: drop versioning from libtool completely.
220 * Makefile.in: regenerate.
221
80f86e78
GA
2222020-09-09 Nick Clifton <nickc@redhat.com>
223
224 * lto-plugin.c (struct plugin_symtab): Add last_sym field.
225 (parse_symtab_extension): Only read as many entries as are
226 available in the buffer. Store the data read into the symbol
227 table indexed from last_sym. Increment last_sym.
228
d48cca8f
GA
2292020-07-30 H.J. Lu <hjl.tools@gmail.com>
230
231 PR bootstrap/96202
232 * configure: Regenerated.
233
885ef72f
GA
2342020-05-29 H.J. Lu <hjl.tools@gmail.com>
235
236 PR bootstrap/95413
237 * configure: Regenerated.
238
c3a4169b
GA
2392020-05-26 Alexandre Oliva <oliva@adacore.com>
240
241 * lto-plugin.c (skip_in_suffix): New.
242 (exec_lto_wrapper): Use skip_in_suffix and concat to build
243 non-temporary output names.
244 (onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
245 override link_output_name with it.
246
d17cdc17
L
2472020-05-12 H.J. Lu <hongjiu.lu@intel.com>
248
249 PR bootstrap/94998
250 * configure: Regenerated.
251
5269b246
EB
2522020-05-05 Eric Botcazou <ebotcazou@adacore.com>
253
254 * lto-plugin.c: Document -linker-output-auto-notlo-rel option.
255 (linker_output_set): Change type to bool.
256 (linker_output_known): Likewise.
257 (linker_output_auto_nolto_rel): New variable.
258 (all_symbols_read_handler): Take it into account.
259 <LDPO_REL>: Do not issue the warning if it is set.
260 (process_option): Process -linker-output-auto-notlo-rel.
261 (cleanup_handler): Remove unused variable.
262 (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
263
eedc73a2
L
2642020-04-28 H.J. Lu <hongjiu.lu@intel.com>
265
266 PR bootstrap/94739
267 * configure: Regenerated.
268
8fc8bf80
L
2692020-04-25 H.J. Lu <hongjiu.lu@intel.com>
270
271 PR bootstrap/94739
272 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
273 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
274 AC_SUBST(CET_HOST_FLAGS).
275 * Makefile.in: Regenerated.
276 * aclocal.m4: Likewise.
277 * configure: Likewise.
278
c8429c2a
ML
2792020-03-19 Martin Liska <mliska@suse.cz>
280
281 * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
282 (LTO_SYMTAB_PREFIX): ... this.
283 (LTO_SECTION_PREFIX_LEN): Rename to ...
284 (LTO_SYMTAB_PREFIX_LEN): ... this.
285 (LTO_SYMTAB_EXT_PREFIX): New.
286 (LTO_SYMTAB_EXT_PREFIX_LEN): New.
287 (LTO_LTO_PREFIX): New.
288 (LTO_LTO_PREFIX_LEN): New.
289 (parse_table_entry): Fill up unused to zero.
290 (parse_table_entry_extension): New.
291 (parse_symtab_extension): New.
292 (finish_conflict_resolution): Change type
293 for resolution.
294 (process_symtab): Use new macro name.
295 (process_symtab_extension): New.
296 (claim_file_handler): Parse also process_symtab_extension.
297 (onload): Call new add_symbols_v2.
298
8d9254fc
JJ
2992020-01-01 Jakub Jelinek <jakub@redhat.com>
300
301 Update copyright years.
302
e9085da5
MR
3032019-09-27 Maciej W. Rozycki <macro@wdc.com>
304
305 * configure: Regenerate.
306
2e97dfdd
IS
3072019-05-15 Iain Sandoe <iain@sandoe.co.uk>
308
309 * lto-plugin.c (cleanup_handler): Remove unused var.
310
c101cff8
IS
3112019-05-15 Iain Sandoe <iain@sandoe.co.uk>
312
313 * lto-plugin.c (exec_lto_wrapper): Make the wrapper
314 arguments filename more user-friendly.
315 (file_exists, maybe_unlink): New.
316 (cleanup_handler): Use maybe unlink to handle the
317 case when temps should be saved.
318 (process_option): Look for -v, —-version, -save-temps.
319 (onload): Record the linker output file name.
320 Check for -v, —-version, -save-temps in the GCC collect
321 options environment.
322
24f0c842
ML
3232019-02-26 Martin Liska <mliska@suse.cz>
324
325 * lto-symtab.c: Remove.
326
a5544970
JJ
3272019-01-01 Jakub Jelinek <jakub@redhat.com>
328
329 Update copyright years.
330
22e05272
JM
3312018-10-31 Joseph Myers <joseph@codesourcery.com>
332
333 PR bootstrap/82856
334 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
335 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
336
de54061d
JH
3372018-05-30 Jan Hubicka <jh@suse.cz>
338
339 * lto-plugin.c: (non_claimed_files): New static var.
340 (linker_ouput_known): New static var.
341 (all_symbols_read_handler): When user specifies linker output do not
342 imply it; output warning when nonlto-rel mode is forced.
343 (claim_file_header): Record number of nonclaimed files.
344 (process_option): Remember if linker output is known
345
001ddaa8
DM
3462018-04-18 David Malcolm <dmalcolm@redhat.com>
347
348 PR jit/85384
349 * configure: Regenerate.
350
85ec4feb
JJ
3512018-01-03 Jakub Jelinek <jakub@redhat.com>
352
353 Update copyright years.
354
5c2dee6f
GJL
3552017-07-21 Georg-Johann Lay <avr@gjlay.de>
356
357 PR lto/81487
358 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
359 asprintf.
360 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
361
3c36aa6b
JJ
3622017-01-17 Jakub Jelinek <jakub@redhat.com>
363
364 PR other/79046
365 * configure.ac: Add GCC_BASE_VER.
366 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
367 get version from BASE-VER file.
368 * configure: Regenerated.
369 * Makefile.in: Regenerated.
370
2afd3180
JJ
3712017-01-04 Jakub Jelinek <jakub@redhat.com>
372
373 Update copyright years.
374
84c1b9d3
MK
3752016-11-15 Matthias Klose <doko@ubuntu.com>
376
377 * configure: Regenerate.
378
e6861a99
IV
3792016-02-25 Ilya Verbin <ilya.verbin@intel.com>
380
381 PR driver/68463
382 * lto-plugin.c (struct plugin_offload_file): New.
383 (offload_files): Change type.
384 (offload_files_last, offload_files_last_obj): New.
385 (offload_files_last_lto): New.
386 (free_2): Adjust accordingly.
387 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
388 Don't call free_1 for offload_files. Write names of object files with
389 offloading to the temporary file. Add new option to lto_arg_ptr.
390 (claim_file_handler): Don't claim file if it contains offload sections
391 without LTO sections. If it contains offload sections, add to the list.
392
aea40b08
ML
3932016-01-15 Martin Liska <mliska@suse.cz>
394
395 * lto-plugin.c (all_symbols_read_handler): Assign default
396 value to a string variable.
397
1ff9ed6f
JH
3982015-11-25 Jan Hubicka <jh@suse.cz>
399
400 PR lto/67548
401 * lto-plugin.c (linker_output, linker_output_set): New statics.
402 (all_symbols_read_handler): Add -flinker-output option.
403 (onload): Record linker_output info.
404
dcbc9df9
UB
4052015-07-02 Uros Bizjak <ubizjak@gmail.com>
406
407 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
408 * configure: Regenerate.
409 * config.h.in: Ditto.
410
ed9b4ae3
MH
4112015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
412
413 * Makefile.am: Drop 'by automake version' from top-level comment.
414 * Makefile.in: Regenerated with automake-1.11.6.
415 * aclocal.m4: Likewise.
416 * configure: Likewise.
417
514ba9e4
L
4182015-02-06 H.J. Lu <hongjiu.lu@intel.com>
419
420 * lto-plugin.c (release_input_file): Removed.
421 (claim_file_handler): Don't call release_input_file.
422 (onload): Don't set release_input_file.
423
11c17039
L
4242015-02-05 H.J. Lu <hongjiu.lu@intel.com>
425
426 * lto-plugin.c (claim_file_handler): Pass handle to
427 release_input_file.
428
06fa4f00
L
4292015-02-05 H.J. Lu <hongjiu.lu@intel.com>
430
431 * lto-plugin.c (claim_file_handler): Call release_input_file only
432 if file is claimed.
433
380c25ea
L
4342015-01-28 H.J. Lu <hongjiu.lu@intel.com>
435
436 * lto-plugin.c (claim_file_handler): Call release_input_file only
437 if it is not NULL.
438
1e081eda
L
4392015-01-28 H.J. Lu <hongjiu.lu@intel.com>
440
441 PR lto/64837
442 * lto-plugin.c (release_input_file): New.
443 (claim_file_handler): Call release_input_file.
444 (onload): Set release_input_file.
445
443743fd
IV
4462014-12-09 Ilya Verbin <ilya.verbin@intel.com>
447
448 * lto-plugin.c (offload_files, num_offload_files): New static variables.
449 (free_1): Use arguments instead of global variables.
450 (free_2): Free offload_files.
451 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
452 arguments.
453 (claim_file_handler): Do not add file to claimed_files if it contains
454 offload sections without LTO sections. Add it to offload_files instead.
455
a699d672
L
4562014-11-21 H.J. Lu <hongjiu.lu@intel.com>
457
458 PR bootstrap/63784
459 * configure: Regenerated.
460
fc8b3540
IV
4612014-11-13 Ilya Verbin <ilya.verbin@intel.com>
462 Bernd Schmidt <bernds@codesourcery.com>
463 Andrey Turetskiy <andrey.turetskiy@intel.com>
464 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
465
466 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
467 (struct plugin_objfile): Add new field "offload".
468 (process_offload_section): New static function.
469 (claim_file_handler): Claim file if it contains offload sections.
470
85c64bbe
BS
4712014-11-13 Bernd Schmidt <bernds@codesourcery.com>
472 Thomas Schwinge <thomas@codesourcery.com>
473 Ilya Verbin <ilya.verbin@intel.com>
474 Andrey Turetskiy <andrey.turetskiy@intel.com>
475
476 * Makefile.am (libexecsubdir): Tweak for the possibility of being
477 configured for offload compiler.
478 (accel_dir_suffix, real_target_noncanonical): New variables substituted
479 by configure.
480 * Makefile.in: Regenerate.
481 * configure: Regenerate.
482 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
483 variables.
484
ebf6d33b
FXC
4852014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
486
487 PR target/63610
488 * configure: Regenerate.
489
43f4a446
L
4902014-08-26 H.J. Lu <hongjiu.lu@intel.com>
491
492 PR bootstrap/62260
493 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
494 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
495 $host_subdir.
496 * Makefile.in: Regenerated.
497 * configure: Likewise.
498
2a7a8388
TS
4992014-06-13 Thomas Schwinge <thomas@codesourcery.com>
500
501 * configure.ac (--with-libiberty): New configure option.
502 * configure: Regenerate.
503 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
504 variables.
505 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
506 (liblto_plugin_la_DEPENDENCIES): Use them.
507 * Makefile.in: Regenerate.
508
a2555c65
RO
5092014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
510
511 PR lto/60981
512 * configure.ac: Check for -static-libgcc.
513 * configure: Regenerate.
514
ffe7f7a7
JJ
5152014-04-17 Jakub Jelinek <jakub@redhat.com>
516
4f148bbc
JJ
517 PR sanitizer/56781
518 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
519 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
520 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
521 over ../libiberty/pic/libiberty.a if the former exists.
522 * Makefile.in: Regenerated.
523
ffe7f7a7
JJ
524 PR sanitizer/56781
525 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
526 * Makefile.in: Regenerated.
527
21b624f0
RB
5282014-04-02 Richard Biener <rguenther@suse.de>
529
530 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
531 is set in COLLECT_GCC_OPTIONS.
532
2486c24a
RB
5332014-03-28 Richard Biener <rguenther@suse.de>
534
535 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
536
5523efdf
RO
5372014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
538
539 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
540 for gcc.
541 * configure: Regenerate.
542 * Makefile.am (AM_LDFLAGS): New variable.
543 (liblto_plugin_la_LDFLAGS): Add it.
544 * Makefile.in: Regenerate.
545
3cbe17f7
AM
5462013-09-20 Alan Modra <amodra@gmail.com>
547
548 * configure: Regenerate.
549
de973ab7
DE
5502012-09-14 David Edelsohn <dje.gcc@gmail.com>
551
552 * configure: Regenerated.
553
3f417959
JM
5542012-05-29 Joseph Myers <joseph@codesourcery.com>
555
556 * lto-plugin.c: Fix typo.
557
e6d5f8c9
L
5582012-05-16 H.J. Lu <hongjiu.lu@intel.com>
559
560 * configure: Regenerated.
561
8cfa7899
KT
5622012-02-22 Kai Tietz <ktietz@redhat.com>
563
564 PR lto/50616
565 * lto-plugin.c (PRI_LL): New macro.
566 (dump_symtab): Use PRI_LL instead of ll in print.
567 (process_symtab): Use PRI_LL instead of ll in scan.
568
4a5e00ca
AS
5692011-12-20 Andreas Schwab <schwab@linux-m68k.org>
570
571 * configure: Regenerate.
572
095af58f
AS
5732011-12-19 Andreas Schwab <schwab@linux-m68k.org>
574
575 * configure: Regenerate.
576
c6084f68
AT
5772011-11-21 Andreas Tobler <andreast@fgznet.ch>
578
579 * configure: Regenerate.
580
ed0d2da0
JH
5812011-10-02 Jan Hubicka <jh@suse.cz>
582
583 PR lto/47247
584 * lto-plugin.c (get_symbols_v2): New variable.
585 (write_resolution): Use V2 API when available.
586 (onload): Handle LDPT_GET_SYMBOLS_V2.
587
ad7715f3
L
5882011-09-30 H.J. Lu <hongjiu.lu@intel.com>
589 Andi Kleen <ak@linux.intel.com>
590
591 PR lto/50568
592 * lto-plugin.c (sym_aux): Change id to unsigned long long.
593 (plugin_symtab): Likewise.
594 (dump_symtab): Likewise.
595 (resolve_conflicts): Likewise.
596 (process_symtab): Likewise.
597
f3016c47
RG
5982011-08-10 Richard Guenther <rguenther@suse.de>
599
600 PR bootstrap/49907
601 lto-plugin/
602 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
603 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
604 * configure: Regenerate.
605 * Makefile.in: Likewise.
606 * aclocal.m4: Likewise.
607
04695783
JM
6082011-04-20 Jim Meyering <meyering@redhat.com>
609
610 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
611
3b8c1a3f
RG
6122011-04-05 Richard Guenther <rguenther@suse.de>
613
614 PR bootstrap/48431
615 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
616
029c8f3e
RW
6172011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
618
619 * Makefile.in: Regenerate.
620 * aclocal.m4: Regenerate.
621 * configure: Regenerate.
622
3917813c
RW
6232011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
624
625 * Makefile.am (all-local): Rename from 'all'.
626 * Makefile.in: Regenerate.
627
f3d533d3
AO
6282011-02-12 Alexandre Oliva <aoliva@redhat.com>
629
630 PR lto/47225
631 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
632 (liblto_plugin_la_LDFLAGS): Add -module.
633 (copy_lto_plugin): Renamed to...
634 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
635 of static modules.
636 * Makefile.in: Rebuild.
637
f43c3935
KT
6382011-02-07 Kai Tietz <kai.tietz@onevision.com>
639
640 PR lto/47225
641 * Makefile.am (Wc): New helper for encoding -Wc,.
642 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
643 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
644 * Makefile.in: Regenerated.
645
e6d926d7
PB
6462011-02-07 Paolo Bonzini <bonzini@gnu.org>
647
648 Revert:
649
650 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
651
652 PR lto/47225
653 * Makefile.am (Wl): New helper for encoding -Wl,.
654 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
655 * Makefile.in: Regenerated.
656
c7b5125d
KT
6572011-02-07 Kai Tietz <kai.tietz@onevision.com>
658
659 PR lto/47225
660 * Makefile.am (Wl): New helper for encoding -Wl,.
661 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
662 * Makefile.in: Regenerated.
663
e3bb089d
ILT
6642011-01-25 Ian Lance Taylor <iant@google.com>
665
666 * lto-plugin.c (gold_version): New static variable.
667 (all_symbols_read_handler): Don't check pass_through_items if
668 using gold 1.11 or later.
669 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
670
47782a9d
RG
6712011-01-12 Richard Guenther <rguenther@suse.de>
672
673 PR lto/47264
674 * lto-plugin.c (parse_table_entry): Use memcpy to access
675 unaligned fields.
676
5b64bab9
DK
6772010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
678
679 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
680 * Makefile.in: Regenerate.
681
be3ea0c8
RO
6822010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
683
684 Revert last change.
685
dd8587d6
RO
6862010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
687
688 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
689 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
690 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
691 * Makefile.in: Regenerate.
692
77754180
DK
6932010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
694
695 PR middle-end/46674
696 PR lto/43157
697 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
698 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
699 * configure: Regenerate.
700 * config.h.in: Likewise.
701
7de6ba7a
DK
7022010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
703
704 PR target/40125
705 PR lto/46695
706 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
707 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
708 override -bindir setting.
709 * aclocal.m4: Regenerate.
710 * configure: Regenerate.
711 * Makefile.in: Regenerate.
712
ec692d5f
KT
7132010-12-05 Kai Tietz <kai.tietz@onevision.com>
714
715 * config.h.in: Regenerated.
716 * configure: Regenerated.
717 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
718 * lto-plugin.c (WIFEXITED): Define default.
719 (WEXITSTATUS): Likeiwse.
720
a2254c5d
KT
7212010-12-01 Kai Tietz <kai.tietz@onevision.com>
722
723 * config.h.in: Regenerated.
724 * configure: Regenerated.
725 * Makefile.in: Regenerated.
726 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
727 * lto-plugin.c: Include sys/wait.h conditionally.
728 * aclocal.m4: Regenerated.
729
44538c62
KT
7302010-11-13 Kai Tietz <kai.tietz@onevision.com>
731
732 * lto-plugin.c (add_output_files): Fix memory leak.
733
d19e0f01
DK
7342010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
735
736 PR bootstrap/46397
737 PR bootstrap/46362
738 * configure.ac: Add AC_TYPE_INT64_T test.
739 * config.h.in: Regenerate.
740 * configure: Likewise.
741 * lto-plugin.c (debug): Use char not bool.
742 (nop): Likewise.
743 (check_1): Rename from check, and use int not bool for gate argument.
744 (check): Macro wrapper for the above to coerce gate argument into
745 boolean-valued integer in case it has pointer type.
746 (parse_table_entry): Use 0 not false.
747 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
748 into two 32-bit parts and printing as hex ints.
749
37da3688
DK
7502010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
751
752 PR lto/46291
753 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
754
48215350
DK
7552010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
756
757 PR lto/46273
758 * lto-plugin.h: Delete.
759 * lto-plugin-elf.c: Likewise.
760 * lto-plugin-coff.c: Likewise.
761 * configure.ac: Don't use libelf, don't source config.gcc.
762 (LIBELFLIBS): Delete.
763 (LIBELFINC): Delete.
764 (LTO_FORMAT): Delete.
765 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
766 (config.h): Add AC_CONFIG_HEADERS directive.
767 * Makefile.am (LIBELFLIBS): Delete.
768 (LIBELFINC): Delete.
769 (LTO_FORMAT): Delete.
770 (DEFS): Import.
771 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
772 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
773 any object-format-specific source file in the link.
774 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
775 * config.h.in: Generate.
776 * configure: Regenerate.
777 * Makefile.in: Likewise.
778 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
779 (LTO_SEGMENT_NAME): New definition.
780 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
781 (LTO_SECTION_PREFIX_LEN): New definition.
782 (struct sym_aux): Struct definition moved here from lto-plugin.h.
783 (struct plugin_symtab): Likewise.
784 (struct plugin_objfile): Likewise.
785 (struct plugin_objfile): New struct def.
786 (enum symbol_style): New enum type.
787 (add_symbols): Make static.
788 (claimed_files): Likewise.
789 (num_claimed_files): Likewise.
790 (sym_style): New global.
791 (check): Make static.
792 (parse_table_entry): Likewise. Respect sym_style when extracting
793 symbol from symtab entry.
794 (translate): Make static.
795 (resolve_conflicts): Likewise.
796 (process_symtab): New function, per-section callback version of
797 old object-format-specific handling from deleted lto-plugin-elf.c.
798 (claim_file_handler): Convert ELF-specific version from deleted
799 lto-plugin-elf.c to simple_object interface and move here.
800 (process_options): Allow new '-sym-style=' option.
801 (onload): Don't call deleted onload_format_checks hook.
802
9df2493c
KT
8032010-10-11 Kai Tietz <kai.tietz@onevision.com>
804
805 * lto-plugin.c (dump_symtab): Correct printf argument type.
806 (finish_conflict_resolution): Initialize resolution.
807
73d5e770
L
8082010-10-08 H.J. Lu <hongjiu.lu@intel.com>
809
810 PR bootstrap/45951
811 * configure.ac: Add AC_CANONICAL_SYSTEM.
812 * configure: Regenerated.
813
1cd0b716
DK
8142010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
815
816 * configure.ac: Source config.gcc to determine lto_binary_reader.
817 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
818 * Makefile.am (LTO_FORMAT): Import.
819 (liblto_plugin_la_SOURCES): Add object format dependent module
820 defined by LTO_FORMAT.
821 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
822 and work around libtool warning.
823 * configure: Regenerate.
824 * Makefile.in: Likewise.
825 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
826 (struct sym_aux): Likewise.
827 (struct plugin_symtab): Likewise.
828 (struct plugin_file_info): Likewise.
829 (LTO_SECTION_PREFIX): Likewise.
830 (add_symbols): Make non-static.
831 (claimed_files): Likewise.
832 (num_claimed_files): Likewise.
833 (check): Likewise.
834 (parse_table_entry): Likewise.
835 (translate): Likewise.
836 (resolve_conflicts): Likewise.
837 (process_symtab): Move to new lto-plugin-elf.c object format dependent
838 source file.
839 (claim_file_handler): Likewise, and make non-static.
840 (onload): Call new onload_format_checks function.
841 * lto-plugin.h: New file.
842 (LTO_SECTION_PREFIX): Move here.
843 (struct sym_aux): Likewise.
844 (struct plugin_symtab): Likewise.
845 (struct plugin_file_info): Likewise.
846 (claim_file_handler): Add new function prototype.
847 (onload_format_checks): Likewise.
848 (check): Declare extern.
849 (translate): Likewise.
850 (parse_table_entry): Likewise.
851 (resolve_conflicts): Likewise.
852 (add_symbols): Likewise.
853 (claimed_files): Likewise.
854 (num_claimed_files): Likewise.
855 * lto-plugin-elf.c (process_symtab): Move here.
856 (claim_file_handler): Likewise, and make non-static.
857 (onload_format_checks): New function factored out from onload.
858 * lto-plugin-coff.c (claim_file_handler): New function stub.
859 (onload_format_checks): Likewise.
860
d2c57fe9
AK
8612010-08-05 Andi Kleen <ak@linux.intel.com>
862
863 * lto-plugin.c: Include <hashtab.h>
864 (sym_aux): Add next_conflict field to save conflict chains.
865 (plugin_file_info): Add conflicts symtab.
866 (parse_table_entry): Initialize aux->next_conflict.
867 (process_symtab): Increment found.
868 (dump_symtab): Add.
869 (finish_conflict_resolution): Add.
870 (free_symtab): Add.
871 (write_resolution): Remove symbols loop and move into
872 dump_symtab. Call dump_symtab for main symbol and conflicts table.
873 Call free_symtab to free conflicts table.
874 (SWAP): Add.
875 (eq_sym): Add.
876 (hash_sym): Add.
877 (symbol_strength): Add.
878 (resolve_conflicts): Add.
879 (claim_file_handler): Add n variable. Check return value of
880 process_symtab. Call resolve_conflicts.
881
ecdbd01a 8822010-07-27 Andi Kleen <ak@linux.intel.com>
90e26247
AK
883
884 * lto-plugin.c (translate): Remove debug fprintf.
885
9477ccb2
L
8862010-07-23 H.J. Lu <hongjiu.lu@intel.com>
887
888 PR bootstrap/45042
889 * lto-plugin.c (translate): Cast to unsigned long.
890
ecdbd01a 8912010-07-23 Andi Kleen <ak@linux.intel.com>
73ce4d1e
AK
892
893 PR lto/44992
894 * lto-plugin.c (sym_aux): Add.
895 (plugin_symtab): Remove slots. Add aux and id.
896 (parse_table_entry): Change to use aux instead of slots.
897 (LTO_SECTION_PREFIX): Add.
898 (translate): Improve buffer allocation. Change to append
899 symbols to existing out buffer.
900 (get_section): Remove.
901 (process_symtab): Add.
902 (free_2): Free symtab->aux.
903 (write_resolution): Handle aux instead of slots.
904 Print sub id to resolution file.
905 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
906 calls with call to process_symtab.
907
553fc582
RG
9082010-07-22 Richard Guenther <rguenther@suse.de>
909
910 * Makefile.am: New copy_lto_plugin rule to install the plugin
911 into ../gcc.
912 * Makefile.in: Regenerated.
913
bdc89f9e
RG
9142010-05-21 Richard Guenther <rguenther@suse.de>
915
916 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
917
5cd0e96b
RG
9182010-05-07 Richard Guenther <rguenther@suse.de>
919
920 * lto-plugin.c (free_2): Do not free resolution_file.
921 (write_resolution): Check that we were passed a resolution file.
922 (all_symbols_read_handler): Adjust.
923 (cleanup_handler): Do not remove the resolution file.
924 (process_option): Handle -fresolution=.
925
13917ae3
RW
9262010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
927
928 PR other/43620
929 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
930 * Makefile.in: Regenerate.
931
ed0f0c0f
RG
9322010-04-23 Richard Guenther <rguenther@suse.de>
933
934 PR lto/41550
935 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
936 (translate): Likewise.
937 (all_symbols_read_handler): Likewise.
938 (claim_file_handler): Likewise.
939 (process_option): Likewise.
940 (add_output_files): Likewise. Remove filename length limit.
941
4d9e8446
RW
9422010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
943
944 * Makefile.in: Regenerate.
945 * aclocal.m4: Regenerate.
946
a8a5ac48
DG
9472010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
948
949 PR lto/43336
950 * lto-plugin.c (cleanup_handler): Delete temporary output files.
951
c164615b
RG
9522010-01-11 Richard Guenther <rguenther@suse.de>
953
954 PR lto/41569
955 * Makefile.am: Disable dependencies.
956 * Makefile.in: Regenerated.
957
f0d61983
L
9582010-01-03 H.J. Lu <hongjiu.lu@intel.com>
959
960 PR lto/42520
961 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
962 if -v is passed.
963
52327858 9642009-12-05 H.J. Lu <hongjiu.lu@intel.com>
43e02a8a 965
52327858
L
966 PR bootstrap/42306
967 * configure: Regenerated.
968 * Makefile.in: Likewise.
43e02a8a 969
92fa7608
RAE
9702009-11-19 Rafael Avila de Espindola <espindola@google.com>
971
972 PR bootstrap/42096
973 * lto-plugin.c (claim_file_handler): Print offsets in hex.
974
06bd7f56
RAE
9752009-11-12 Rafael Avila de Espindola <espindola@google.com>
976
977 * lto-plugin.c (write_resolution): Assume resolution_file is set.
978 Print the symbol name.
979 (all_symbols_read_handler): Create a resolution file.
980 Pass it to gcc.
981 (cleanup_handler): Remove the resolution file.
982 (process_option): Drop the -resolution option.
983
94086ef6
RAE
9842009-11-05 Rafael Avila de Espindola <espindola@google.com>
985
986 * lto-plugin.c (temp_obj_dir_name): Remove.
987 (arguments_file_name): New.
988 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
989 (exec_lto_wrapper): Create arguments file with make_temp_file.
990 (cleanup_handler): Don't remove the temporary directory. Remove the
991 arguments file.
992 (onload): Don't create the temporary directory.
993
7e9dc421 9942009-11-04 Richard Guenther <rguenther@suse.de>
92a285c1 995 Rafael Avila de Espindola <espindola@google.com>
7e9dc421
RG
996
997 * lto-plugin.c (plugin_file_info): Remove temp field.
998 (cleanup_handler): Don't delete temporary objects.
999 (claim_file_handler): Don't create temporary objects.
1000
1cddcdca
RAE
10012009-11-04 Rafael Avila de Espindola <espindola@google.com>
1002
1003 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
1004
86ed04df
RAE
10052009-10-30 Rafael Avila de Espindola <espindola@google.com>
1006
1007 PR41871
1008 * lto-plugin.c (claim_file_handler): Close files that we created.
1009
aff4273c
RAE
10102009-10-28 Rafael Avila de Espindola <espindola@google.com>
1011
1012 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
1013 LDPL_ERROR
1014
4c0f4b0b
DG
10152009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
1016
1017 PR lto/41652
1018 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
1019 * configure: Regenerate.
1020
03428d41
RG
10212009-10-26 Richard Guenther <rguenther@suse.de>
1022
1023 * configure.ac: Use AM_MAINTAINER_MODE.
1024 * acinclude.m4: Remove.
1025 * configure: Re-generate.
1026 * Makefile.in: Likewise.
1027 * aclocal.m4: Likewise.
1028
941e566a
RE
10292009-10-19 Rafael Avila de Espindola <espindola@google.com>
1030
92a285c1
ML
1031 PR40790
1032 * configure: Regenerate.
1033 * configure.ac: Add AC_TYPE_UINT64_T.
941e566a 1034
33662270
RAE
10352009-10-16 Rafael Avila de Espindola <espindola@google.com>
1036
1037 * lto-plugin.c (message): New variable.
1038 (check): New function.
1039 (parse_table_entry, translate, write_resolution,add_output_files,
1040 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
1041 assert.
1042 (cleanup_handler): Use check instead of assert. Remove the arguments
1043 file if it exists.
1044
b10071c5
RAE
10452009-10-15 Rafael Avila de Espindola <espindola@google.com>
1046
1047 * lto-plugin.c (resolution_file): New.
1048 (free_1): Update comment.
1049 (free_2): Free resolution_file.
1050 (write_resolution): Write resolution to specified file. Use the
1051 syms array from the symbol table.
1052 (all_symbols_read_handler): Delay call to free_1 past call to
1053 write_resolution.
1054 (process_option): Add a -resolution option.
1055
076c7ebe
RG
10562009-10-13 Richard Guenther <rguenther@suse.de>
1057
1058 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
1059 correct libiberty.
1060 * Makefile.in: Regenerated.
1061
d520c7fb
RAE
10622009-10-08 Rafael Avila de Espindola <espindola@google.com>
1063
1064 * lto-plugin.c (add_input_library): New.
1065 (all_symbols_read_handler): Use add_input_library for items that
1066 start with -l.
1067 (process_option): Fit in 80 columns.
1068 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
1069
d7f09764
DN
10702009-10-02 Diego Novillo <dnovillo@google.com>
1071
1072 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1073 and -D_FILE_OFFSET_BITS=64.
1074 * configure.ac: Add AC_SYS_LARGEFILE.
1075 * configure: Regenerate.
1076 * Makefile.in: Regenerate.
1077 * lto-plugin.c: Fix copyright boilerplate.
1078
10792009-10-02 Diego Novillo <dnovillo@google.com>
1080
1081 * Makefile.am (ACLOCAL_AMFLAGS): Define.
1082 * aclocal.m4: Regenerate with aclocal-2.64
1083 * acinclude.m4: Remove.
1084 * Makefile.in: Regenerate with automake-1.11
1085 * configure.ac (AC_PREREQ): Update to 2.64.
1086 * configure: Regenerate.
1087
10882009-10-02 Diego Novillo <dnovillo@google.com>
1089
1090 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1091 and -D_FILE_OFFSET_BITS=64.
1092 * configure.ac: Add AC_SYS_LARGEFILE.
1093 * configure: Regenerate.
1094 * Makefile.in: Regenerate.
1095 * lto-plugin.c: Fix copyright boilerplate.
1096
10972009-10-02 Diego Novillo <dnovillo@google.com>
1098
1099 * Makefile.am (ACLOCAL_AMFLAGS): Define.
1100 * aclocal.m4: Regenerate with aclocal-2.64
1101 * acinclude.m4: Remove.
1102 * Makefile.in: Regenerate with automake-1.11
1103 * configure.ac (AC_PREREQ): Update to 2.64.
1104 * configure: Regenerate.
1105
11062009-10-02 Rafael Avila de Espindola <espindola@google.com>
1107
1108 * Makefile.am (liblto_plugin_la_SOURCES): Remove
1109 $(top_srcdir)/../gcc/lto/common.c
1110 * Makefile.in: Regenerate.
1111
11122009-10-01 Rafael Avila de Espindola <espindola@google.com>
1113
1114 * lto-plugin.c (pass_through_items): New.
1115 (num_pass_through_items): New.
1116 (all_symbols_read_handler): Update to use the -pass-through option.
1117 (process_option): Replace -libgcc with -pass-through.
1118
11192009-09-30 Rafael Avila de Espindola <espindola@google.com>
1120
1121 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
1122 register_cleanup to be set.
1123
11242009-09-30 Rafael Avila de Espindola <espindola@google.com>
1125
1126 * Makefile.am: Remove all reference to ltosymtab.
1127 * Makefile.in: Regenerate.
1128 * lto-symtab.c: Remove.
1129
11302009-05-21 Diego Novillo <dnovillo@google.com>
1131
1132 * configure.ac: Remove call to AC_CHECK_GELF.
1133 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
1134 * acinclude.m4: Do not include ../config/libelf.m4
1135 * Makefile.am (LIBELFLIBS): Define.
1136 (LIBELFINC): Define.
1137 (AM_CPPFLAGS): Add $(LIBELFINC).
1138 (ltosymtab_LDADD): Add $(LIBELFLIBS).
1139 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
1140 * lto-plugin.c: Always include <gelf.h>
1141 * lto-symtab.c: Likewise.
1142 * configure: Regenerate.
1143 * Makefile.in: Regenerate.
1144
11452009-03-23 Rafael Avila de Espindola <espindola@google.com>
1146
1147 * lto-plugin.c (libgcc_filename): New.
1148 (all_symbols_read_handler): Pass libgcc to the linker.
1149 (all_symbols_read_handler): Parse -libgcc
1150
11512009-02-05 Rafael Avila de Espindola <espindola@google.com>
1152
1153 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
1154 * Makefile.in: Regenerate.
1155 * lto-plugin.c (add_output_files): Argument is now a FILE.
1156 (exec_lto_wrapper): Use writeargv and pex.
1157
11582009-02-04 Rafael Avila de Espindola <espindola@google.com>
1159
1160 Revert:
1161 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1162 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1163
1164
11652009-02-04 Rafael Avila de Espindola <espindola@google.com>
1166
1167 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1168
11692009-01-29 Rafael Avila de Espindola <espindola@google.com>
1170
1171 * lto-plugin.c: Include libiberty.h.
1172 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
1173 snprintf.
1174
11752009-01-29 Rafael Avila de Espindola <espindola@google.com>
1176
1177 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
1178 file to lto-wrapper.
1179
11802009-01-28 Rafael Avila de Espindola <espindola@google.com>
1181
1182 * lto-plugin.c (plugin_file_info): Remove fd and elf.
1183 (parse_table_entry): strdup entry->name and entry->comdat_key.
1184 (free_1): Free name and comdat_key. Don't close the file. Don't call
1185 elf_end.
1186 (claim_file_handler): Always call elf_end.
1187
11882008-12-23 Rafael Avila de Espindola <espindola@google.com>
1189
1190 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
1191 -D_FILE_OFFSET_BITS=64
1192 * Makefile.in: Regenerate
1193
11942008-12-22 Rafael Avila de Espindola <espindola@google.com>
1195
1196 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
1197 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
1198 * Makefile.in: Regenerate.
1199 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
1200 * configure: Regenerate.
1201 * configure.ac: Add AC_SUBST(target_noncanonical).
1202
12032008-12-08 Rafael Avila de Espindola <espindola@google.com>
1204
1205 * lto-plugin.c: Include stdbool.h.
1206 (debug, nop): Declare as bool.
1207
12082008-12-08 Rafael Avila de Espindola <espindola@google.com>
1209
1210 * lto-plugin.c (nop): New.
1211 (use_original_files): New.
1212 (all_symbols_read_handler): Call use_original_files if nop is true.
1213 (process_option): Parse the -nop option.
1214
12152008-12-08 Rafael Avila de Espindola <espindola@google.com>
1216
1217 * lto-plugin.c (debug): New.
1218 (exec_lto_wrapper): Print argv if debug is true.
1219 (process_option): Process the -debug command line option.
1220
12212008-12-03 Rafael Avila de Espindola <espindola@google.com>
1222
1223 * lto-plugin.c (process_option): The argument is now a single option,
1224 not a space separated list.
1225
12262008-12-02 Rafael Avila de Espindola <espindola@google.com>
1227
1228 * lto-plugin.c: Include sys/types.h and sys/wait.h
1229 (output_files, num_output_files, lto_wrapper_argv,
1230 lto_wrapper_num_args): New.
1231 (free_2): Free output_files.
1232 (write_resolution): Disable.
1233 (add_output_files): New.
1234 (exec_lto_wrapper): New.
1235 (all_symbols_read_handler): Run lto-wrapper.
1236 (claim_file_handler): Free lto_file.name and call elf_end.
1237 (process_option): New.
1238
12392008-11-26 Rafael Espindola <espindola@google.com>
1240
1241 * lto-plugin.c (add_input_file): New.
1242 (get_section): Return NULL if get_section fails.
1243 (write_resolution): New.
1244 (all_symbols_read_handler): Call add_input_file.
1245 (claim_file_handler): Unlink the correct file.
1246 (onload): Record add_input_file.
1247
12482008-09-23 Rafael Espindola <espindola@google.com>
1249
1250 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
1251 Update the location of common.c.
1252 * Makefile.in: Regenerate.
1253 * common.c: Moved to gcc/lto.
1254 * common.h: Moved to gcc/lto.
1255 * lto-plugin.c: Update the location of common.h.
1256 * lto-symtab.c: Update the location of common.h.
1257
12582008-09-23 Rafael Espindola <espindola@google.com>
1259
1260 * common.c: Include common.h.
1261 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
1262 sizes.
1263 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
1264 explicit sizes.
1265
12662008-09-23 Rafael Espindola <espindola@google.com>
1267
1268 * lto-plugin.c (plugin_file_info): Add temp.
1269 (cleanup_handler): Only delete temporary files.
1270 (claim_file_handler): Initialize lto_file.temp.
1271
12722008-09-23 Rafael Espindola <espindola@google.com>
1273
92a285c1 1274 * plugin-api.h: Moved to include.
d7f09764
DN
1275
12762008-09-23 Rafael Espindola <espindola@google.com>
1277
1278 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1279 format.
1280
12812008-09-22 Rafael Espindola <espindola@google.com>
1282
1283 * plugin-api.h: Copy from binutils' cvs.
1284
12852008-09-22 Rafael Espindola <espindola@google.com>
1286
1287 * lto-symtab.c (get_symbols, add_symbols): Update signature.
1288 * plugin-api.h: Copy from binutils' cvs.
1289
12902008-09-22 Rafael Espindola <espindola@google.com>
1291
1292 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1293 Make extern
1294
12952008-09-10 Rafael Espindola <espindola@google.com>
1296
1297 * lto-plugin.c (onload): add missing break statements and asserts.
1298 * lto-symtab.c (claim_file_handler): Make it static.
1299 (all_symbols_read_handler): Make it static.
1300 (all_file_handles): Make it static.
1301 (num_file_handles): Make it static.
1302 (register_claim_file): Make it static.
1303 (register_object): Indent properly.
1304
13052008-09-10 Rafael Avila de Espindola <espindola@google.com>
1306
1307 * Makefile.am (ltosymtab_LDADD): Add -lelf.
1308 * Makefiel.in: Regenerate.
1309 * lto-plugin.c: Include ar.h.
1310 (claim_file_handler): Handle file->offset != 0.
1311 * lto-symtab.c: Include gelf.h.
1312 (all_file_handles): Change type.
1313 (register_object): New.
1314 (register_file): Add support for archives.
1315 (resolve): Update to new type of all_file_handles.
1316 (print): Update to new type of all_file_handles.
1317 (free_all): Update to new type of all_file_handles.
1318 (main): Update to new type of all_file_handles.
1319
13202008-09-10 Rafael Avila de Espindola <espindola@google.com>
1321
1322 * lto-plugin.c (get_string_table): Remove.
1323 (get_section): Use elf_strptr instead of get_string_table.
1324
13252008-09-08 Doug Kwan <dougkwan@google.com>
1326
1327 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1328 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1329
13302008-09-08 Rafael Avila de Espindola <espindola@google.com>
1331
1332 * Makefile.am (ltosymtab_SOURCES): add common.c.
1333 (ltosymtab_CFLAGS): New.
1334 (liblto_plugin_la_SOURCES): Add common.c.
1335 * Makefile.in: Regenerate.
1336 * common.c: New.
1337 * common.h: New.
1338 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1339 (plugin_symtab): New.
1340 (plugin_file_info): New.
1341 (register_all_symbols_read): New.
1342 (get_symbols): New.
1343 (claimed_files): New.
1344 (num_claimed_files): New.
1345 (translate): Don't drop the slot number.
1346 (free_1): New.
1347 (free_2): New.
1348 (all_symbols_read_handler): New.
1349 (claim_file_handler): Record every claimed file.
1350 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1351 LDPT_GET_SYMBOLS.
1352 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1353 (current_file_handle): Remove.
1354 (ld_plugin_all_symbols_read_handler): New.
1355 (plugin_handle): New.
1356 (file_handle): New.
1357 (all_file_handles): New.
1358 (num_file_handles): New.
1359 (get_symbols): New.
1360 (register_all_symbols_read): New.
1361 (add_symbols): Don't print the symbols, just record them.
1362 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1363 LDPT_GET_SYMBOLS.
1364 (load_plugin): Use plugin_handle.
1365 (register_file): Add the file handle to all_file_handles.
1366 (resolve): New.
1367 (print): New.
1368 (unload_plugin): New.
1369 (free_all): New.
1370 (main): Call all_symbols_read_handler and free resources.
1371
13722008-09-03 Rafael Avila de Espindola <espindola@google.com>
1373
1374 * Makefile.am (AM_CFLAGS): New.
1375 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1376 (lib_LTLIBRARIES): New.
1377 (liblto_plugin_la_SOURCES): New.
1378 (liblto_plugin_la_LIBADD): New.
1379 * Makefile.in: Regenerate.
1380 * acinclude.m4: Don't include ../config/acx.m4 and
1381 ../config/no-executables.m4.
1382 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1383 ../libtool.m4.
1384 * aclocal.m4: Regenerate.
1385 * configure: Regenerate.
1386 * configure.ac: Use AM_PROG_LIBTOOL.
1387 * lto-plugin.c: New.
1388 * lto-symtab.c: Rewrite to use the plugin.
1389 * plugin-api.h: New.
1390
13912008-08-25 Rafael Avila de Espindola <espindola@google.com>
1392
1393 * configure: Regenerate.
1394 * configure.ac: Use AC_CHECK_GELF.
1395 * lto-symtab.c: Include gelf.h.
1396 (get_string_table): Use size independent API.
1397 (printTable): Use lld to print 64 bit integers.
1398
13992008-08-22 Rafael Avila de Espindola <espindola@google.com>
1400
1401 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1402 entry->visibility are valid.
1403
14042008-07-22 Rafael Avila de Espindola <espindola@google.com>
1405 * lto-symtab.c (table_entry): Add comdat.
1406 (parse_table_entry): Read comdat.
1407
14082008-08-21 Rafael Espindola <espindola@google.com>
1409
1410 * Makefile.am: New.
1411 * Makefile.in: New.
1412 * acinclude.m4: New.
1413 * aclocal.m4: New.
1414 * configure: New.
1415 * configure.ac: New.
1416 * lto-symtab.c: New.