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