]> gcc.gnu.org Git - gcc.git/blame - lto-plugin/ChangeLog
Daily bump.
[gcc.git] / lto-plugin / ChangeLog
CommitLineData
69d3015a
GA
12023-06-30 Martin Jambor <mjambor@suse.cz>
2
3 * Makefile.in: Regenerate.
4
270742ce
GA
52023-06-22 Marek Polacek <polacek@redhat.com>
6
7 * configure.ac (--enable-host-bind-now): New check. Link with
8 -z,now.
9 * configure: Regenerate.
10
3d125c91
GA
112023-05-11 Joseph Myers <joseph@codesourcery.com>
12
13 PR middle-end/109128
14 * lto-plugin.c (register_claim_file_v2): New.
15 (claim_file_handler_v2): New.
16 (claim_file_handler): Wrap claim_file_handler_v2.
17 (onload): Handle LDPT_REGISTER_CLAIM_FILE_HOOK_V2.
18
8761284f
GA
192022-11-23 Marek Polacek <polacek@redhat.com>
20
21 Revert:
22 2022-11-23 Marek Polacek <polacek@redhat.com>
23
24 * configure.ac (--enable-host-bind-now): New check. Link with
25 -z,now.
26 * configure: Regenerate.
27
282022-11-23 Marek Polacek <polacek@redhat.com>
29
30 * configure.ac (--enable-host-bind-now): New check. Link with
31 -z,now.
32 * configure: Regenerate.
33
781f477a
GA
342022-10-12 Martin Liska <mliska@suse.cz>
35
36 * configure: Regenerate.
37
ab332cd7
GA
382022-10-11 Olivier Hainque <hainque@adacore.com>
39 Olivier Hainque <hainque@adacore.com>
40
41 * configure: Regenerate.
42
32510382
GA
432022-08-01 Martin Liska <mliska@suse.cz>
44
45 PR lto/106170
46 * configure.ac: Replace $target with $host.
47 * configure: Regenerate.
48
e0e07bc7
GA
492022-07-14 Martin Liska <mliska@suse.cz>
50
51 PR bootstrap/106156
52 * Makefile.am: Use ac_lto_plugin_extra_ldflags for AM_LDFLAGS.
53 * configure.ac: Use AC_SUBST(ac_lto_plugin_extra_ldflags).
54 * Makefile.in: Regenerate.
55 * configure: Regenerate.
56
43997608
GA
572022-07-12 Martin Liska <mliska@suse.cz>
58
59 * lto-plugin.c (negotiate_api_version): New.
60 (onload): Negotiate API version.
61 * Makefile.am: Add -DBASE_VERSION.
62 * Makefile.in: Regenerate.
63
6345c414
GA
642022-07-07 Martin Liska <mliska@suse.cz>
65
66 PR lto/106170
67 * configure.ac: Configure HAVE_PTHREAD_LOCKING.
68 * lto-plugin.c (LOCK_SECTION): New.
69 (UNLOCK_SECTION): New.
70 (claim_file_handler): Use the newly added macros.
71 (onload): Likewise.
72 * config.h.in: Regenerate.
73 * configure: Regenerate.
74
ed974488
GA
752022-07-01 Pekka Seppänen <pexu@gcc.mail.kapsi.fi>
76
77 PR lto/106118
78 * configure.ac: Move -pthread from here...
79 * Makefile.am: ...to here.
80 * configure: Regenerate.
81 * Makefile.in: Likewise.
82
9d3dd218
GA
832022-06-27 Martin Liska <mliska@suse.cz>
84
85 * lto-plugin.c (plugin_lock): New lock.
86 (claim_file_handler): Use mutex for critical section.
87 (onload): Initialize mutex.
88 * configure.ac: Check for pthread.h.
89 * configure: Regenerate.
90 * config.h.in: Regenerate.
91
d6ba3211
GA
922022-06-20 Martin Liska <mliska@suse.cz>
93
94 * lto-plugin.c (struct plugin_file_info): Add skip_file flag.
95 (write_resolution): Write resolution only if get_symbols != LDPS_NO_SYMS.
96 (all_symbols_read_handler): Ignore file if skip_file is true.
97 (onload): Handle LDPT_GET_SYMBOLS_V3.
98
3e7db517
GA
992022-05-04 Martin Liska <mliska@suse.cz>
100
101 * lto-plugin.c (struct plugin_objfile): Use bool for offset
102 field.
103 (exec_lto_wrapper): Assign true/false to bool variables.
104 (process_offload_section): Likewise.
105 (claim_file_handler): Likewise.
106 (onload): Likewise.
107
a2287813
GA
1082022-03-22 Jakub Jelinek <jakub@redhat.com>
109
110 PR lto/102426
111 * configure.ac (LTO_PLUGIN_USE_SYMVER, LTO_PLUGIN_USE_SYMVER_GNU,
112 LTO_PLUGIN_USE_SYMVER_SUN): New test for symbol versioning support.
113 * Makefile.am (version_arg, version_dep): Set conditionally based
114 on LTO_PLUGIN_USE_SYMVER*.
115 (liblto_plugin_la_LDFLAGS): Use $(version_arg) instead of
116 -export-symbols-regex onload.
117 (liblto_plugin_la_DEPENDENCIES): Depend on $(version_dep).
118 * lto-plugin.map: New file.
119 * configure: Regenerated.
120 * Makefile.in: Regenerated.
121
b00f9761
GA
1222022-03-11 Tobias Burnus <tobias@codesourcery.com>
123
124 * lto-plugin.c (all_symbols_read_handler): With -save-temps, use
125 link_output_name for -foffload-objects's file name, if available.
126
12d4552e
GA
1272022-03-01 Martin Liska <mliska@suse.cz>
128
129 * lto-plugin.c (process_offload_section): Use a linker as many
130 comments are connected to gold linker.
131 (process_option): Likewise.
132
ea6ef320
GA
1332021-12-02 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
134
135 * lto-plugin.c: Fix -linker-output-auto-notlo-rel ->
136 -linker-output-auto-nolto-rel typo.
137 (process_option): Adjust accordingly, accepting both old and
138 new spelling.
139
07985c47
GA
1402021-09-13 Andrew Pinski <apinski@marvell.com>
141
142 PR lto/49664
143 * Makefile.am: Export only onload.
144 * Makefile.in: Regenerate.
145
90708f87
GA
1462021-06-25 Richard Biener <rguenther@suse.de>
147
148 * lto-plugin.c (ltrans_objects): New global.
149 (all_symbols_read_handler): If -ltrans-objects was specified,
150 add the output files from the specified file directly.
151 (process_option): Handle -ltrans-objects.
152
aa891c56
GA
1532021-05-10 Martin Liska <mliska@suse.cz>
154
155 * lto-plugin.c (LTO_SEGMENT_NAME): Remove.
156 (LTO_SYMTAB_PREFIX): Likewise.
157 (LTO_SYMTAB_PREFIX_LEN): Likewise.
158 (LTO_SYMTAB_EXT_PREFIX): Likewise.
159 (LTO_SYMTAB_EXT_PREFIX_LEN): Likewise.
160 (LTO_LTO_PREFIX): Likewise.
161 (LTO_LTO_PREFIX_LEN): Likewise.
162 (OFFLOAD_SECTION): Likewise.
163 (OFFLOAD_SECTION_LEN): Likewise.
164 (startswith): New function.
165 (all_symbols_read_handler): Use it.
166 (process_symtab): Likewise.
167 (process_symtab_extension): Likewise.
168 (process_offload_section): Likewise.
169 (process_option): Likewise.
170
e690396d
GA
1712021-05-03 H.J. Lu <hjl.tools@gmail.com>
172
173 PR bootstrap/99703
174 * configure: Regenerated.
175
c1ef0c92
GA
1762021-04-21 Martin Liska <mliska@suse.cz>
177
178 * lto-plugin.c (exec_lto_wrapper): Make a temp variable.
179
651b8a50
GA
1802021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
181
182 * configure: Re-generate.
183
a9625c50
GA
1842020-11-29 John David Anglin <danglin@gcc.gnu.org>
185
186 * configure: Regenerate.
187
360258da
GA
1882020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
189
190 * Makefile.am: Avoid using sanitizer.
191 * Makefile.in: Regenerate.
192
fdcc0283
GA
1932020-09-10 Jonathan Yong <10walls@gmail.com>
194
195 * Makefile.am: drop versioning from libtool completely.
196 * Makefile.in: regenerate.
197
80f86e78
GA
1982020-09-09 Nick Clifton <nickc@redhat.com>
199
200 * lto-plugin.c (struct plugin_symtab): Add last_sym field.
201 (parse_symtab_extension): Only read as many entries as are
202 available in the buffer. Store the data read into the symbol
203 table indexed from last_sym. Increment last_sym.
204
d48cca8f
GA
2052020-07-30 H.J. Lu <hjl.tools@gmail.com>
206
207 PR bootstrap/96202
208 * configure: Regenerated.
209
885ef72f
GA
2102020-05-29 H.J. Lu <hjl.tools@gmail.com>
211
212 PR bootstrap/95413
213 * configure: Regenerated.
214
c3a4169b
GA
2152020-05-26 Alexandre Oliva <oliva@adacore.com>
216
217 * lto-plugin.c (skip_in_suffix): New.
218 (exec_lto_wrapper): Use skip_in_suffix and concat to build
219 non-temporary output names.
220 (onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
221 override link_output_name with it.
222
d17cdc17
L
2232020-05-12 H.J. Lu <hongjiu.lu@intel.com>
224
225 PR bootstrap/94998
226 * configure: Regenerated.
227
5269b246
EB
2282020-05-05 Eric Botcazou <ebotcazou@adacore.com>
229
230 * lto-plugin.c: Document -linker-output-auto-notlo-rel option.
231 (linker_output_set): Change type to bool.
232 (linker_output_known): Likewise.
233 (linker_output_auto_nolto_rel): New variable.
234 (all_symbols_read_handler): Take it into account.
235 <LDPO_REL>: Do not issue the warning if it is set.
236 (process_option): Process -linker-output-auto-notlo-rel.
237 (cleanup_handler): Remove unused variable.
238 (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
239
eedc73a2
L
2402020-04-28 H.J. Lu <hongjiu.lu@intel.com>
241
242 PR bootstrap/94739
243 * configure: Regenerated.
244
8fc8bf80
L
2452020-04-25 H.J. Lu <hongjiu.lu@intel.com>
246
247 PR bootstrap/94739
248 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
249 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
250 AC_SUBST(CET_HOST_FLAGS).
251 * Makefile.in: Regenerated.
252 * aclocal.m4: Likewise.
253 * configure: Likewise.
254
c8429c2a
ML
2552020-03-19 Martin Liska <mliska@suse.cz>
256
257 * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
258 (LTO_SYMTAB_PREFIX): ... this.
259 (LTO_SECTION_PREFIX_LEN): Rename to ...
260 (LTO_SYMTAB_PREFIX_LEN): ... this.
261 (LTO_SYMTAB_EXT_PREFIX): New.
262 (LTO_SYMTAB_EXT_PREFIX_LEN): New.
263 (LTO_LTO_PREFIX): New.
264 (LTO_LTO_PREFIX_LEN): New.
265 (parse_table_entry): Fill up unused to zero.
266 (parse_table_entry_extension): New.
267 (parse_symtab_extension): New.
268 (finish_conflict_resolution): Change type
269 for resolution.
270 (process_symtab): Use new macro name.
271 (process_symtab_extension): New.
272 (claim_file_handler): Parse also process_symtab_extension.
273 (onload): Call new add_symbols_v2.
274
8d9254fc
JJ
2752020-01-01 Jakub Jelinek <jakub@redhat.com>
276
277 Update copyright years.
278
e9085da5
MR
2792019-09-27 Maciej W. Rozycki <macro@wdc.com>
280
281 * configure: Regenerate.
282
2e97dfdd
IS
2832019-05-15 Iain Sandoe <iain@sandoe.co.uk>
284
285 * lto-plugin.c (cleanup_handler): Remove unused var.
286
c101cff8
IS
2872019-05-15 Iain Sandoe <iain@sandoe.co.uk>
288
289 * lto-plugin.c (exec_lto_wrapper): Make the wrapper
290 arguments filename more user-friendly.
291 (file_exists, maybe_unlink): New.
292 (cleanup_handler): Use maybe unlink to handle the
293 case when temps should be saved.
294 (process_option): Look for -v, —-version, -save-temps.
295 (onload): Record the linker output file name.
296 Check for -v, —-version, -save-temps in the GCC collect
297 options environment.
298
24f0c842
ML
2992019-02-26 Martin Liska <mliska@suse.cz>
300
301 * lto-symtab.c: Remove.
302
a5544970
JJ
3032019-01-01 Jakub Jelinek <jakub@redhat.com>
304
305 Update copyright years.
306
22e05272
JM
3072018-10-31 Joseph Myers <joseph@codesourcery.com>
308
309 PR bootstrap/82856
310 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
311 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
312
de54061d
JH
3132018-05-30 Jan Hubicka <jh@suse.cz>
314
315 * lto-plugin.c: (non_claimed_files): New static var.
316 (linker_ouput_known): New static var.
317 (all_symbols_read_handler): When user specifies linker output do not
318 imply it; output warning when nonlto-rel mode is forced.
319 (claim_file_header): Record number of nonclaimed files.
320 (process_option): Remember if linker output is known
321
001ddaa8
DM
3222018-04-18 David Malcolm <dmalcolm@redhat.com>
323
324 PR jit/85384
325 * configure: Regenerate.
326
85ec4feb
JJ
3272018-01-03 Jakub Jelinek <jakub@redhat.com>
328
329 Update copyright years.
330
5c2dee6f
GJL
3312017-07-21 Georg-Johann Lay <avr@gjlay.de>
332
333 PR lto/81487
334 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
335 asprintf.
336 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
337
3c36aa6b
JJ
3382017-01-17 Jakub Jelinek <jakub@redhat.com>
339
340 PR other/79046
341 * configure.ac: Add GCC_BASE_VER.
342 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
343 get version from BASE-VER file.
344 * configure: Regenerated.
345 * Makefile.in: Regenerated.
346
2afd3180
JJ
3472017-01-04 Jakub Jelinek <jakub@redhat.com>
348
349 Update copyright years.
350
84c1b9d3
MK
3512016-11-15 Matthias Klose <doko@ubuntu.com>
352
353 * configure: Regenerate.
354
e6861a99
IV
3552016-02-25 Ilya Verbin <ilya.verbin@intel.com>
356
357 PR driver/68463
358 * lto-plugin.c (struct plugin_offload_file): New.
359 (offload_files): Change type.
360 (offload_files_last, offload_files_last_obj): New.
361 (offload_files_last_lto): New.
362 (free_2): Adjust accordingly.
363 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
364 Don't call free_1 for offload_files. Write names of object files with
365 offloading to the temporary file. Add new option to lto_arg_ptr.
366 (claim_file_handler): Don't claim file if it contains offload sections
367 without LTO sections. If it contains offload sections, add to the list.
368
aea40b08
ML
3692016-01-15 Martin Liska <mliska@suse.cz>
370
371 * lto-plugin.c (all_symbols_read_handler): Assign default
372 value to a string variable.
373
1ff9ed6f
JH
3742015-11-25 Jan Hubicka <jh@suse.cz>
375
376 PR lto/67548
377 * lto-plugin.c (linker_output, linker_output_set): New statics.
378 (all_symbols_read_handler): Add -flinker-output option.
379 (onload): Record linker_output info.
380
dcbc9df9
UB
3812015-07-02 Uros Bizjak <ubizjak@gmail.com>
382
383 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
384 * configure: Regenerate.
385 * config.h.in: Ditto.
386
ed9b4ae3
MH
3872015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
388
389 * Makefile.am: Drop 'by automake version' from top-level comment.
390 * Makefile.in: Regenerated with automake-1.11.6.
391 * aclocal.m4: Likewise.
392 * configure: Likewise.
393
514ba9e4
L
3942015-02-06 H.J. Lu <hongjiu.lu@intel.com>
395
396 * lto-plugin.c (release_input_file): Removed.
397 (claim_file_handler): Don't call release_input_file.
398 (onload): Don't set release_input_file.
399
11c17039
L
4002015-02-05 H.J. Lu <hongjiu.lu@intel.com>
401
402 * lto-plugin.c (claim_file_handler): Pass handle to
403 release_input_file.
404
06fa4f00
L
4052015-02-05 H.J. Lu <hongjiu.lu@intel.com>
406
407 * lto-plugin.c (claim_file_handler): Call release_input_file only
408 if file is claimed.
409
380c25ea
L
4102015-01-28 H.J. Lu <hongjiu.lu@intel.com>
411
412 * lto-plugin.c (claim_file_handler): Call release_input_file only
413 if it is not NULL.
414
1e081eda
L
4152015-01-28 H.J. Lu <hongjiu.lu@intel.com>
416
417 PR lto/64837
418 * lto-plugin.c (release_input_file): New.
419 (claim_file_handler): Call release_input_file.
420 (onload): Set release_input_file.
421
443743fd
IV
4222014-12-09 Ilya Verbin <ilya.verbin@intel.com>
423
424 * lto-plugin.c (offload_files, num_offload_files): New static variables.
425 (free_1): Use arguments instead of global variables.
426 (free_2): Free offload_files.
427 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
428 arguments.
429 (claim_file_handler): Do not add file to claimed_files if it contains
430 offload sections without LTO sections. Add it to offload_files instead.
431
a699d672
L
4322014-11-21 H.J. Lu <hongjiu.lu@intel.com>
433
434 PR bootstrap/63784
435 * configure: Regenerated.
436
fc8b3540
IV
4372014-11-13 Ilya Verbin <ilya.verbin@intel.com>
438 Bernd Schmidt <bernds@codesourcery.com>
439 Andrey Turetskiy <andrey.turetskiy@intel.com>
440 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
441
442 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
443 (struct plugin_objfile): Add new field "offload".
444 (process_offload_section): New static function.
445 (claim_file_handler): Claim file if it contains offload sections.
446
85c64bbe
BS
4472014-11-13 Bernd Schmidt <bernds@codesourcery.com>
448 Thomas Schwinge <thomas@codesourcery.com>
449 Ilya Verbin <ilya.verbin@intel.com>
450 Andrey Turetskiy <andrey.turetskiy@intel.com>
451
452 * Makefile.am (libexecsubdir): Tweak for the possibility of being
453 configured for offload compiler.
454 (accel_dir_suffix, real_target_noncanonical): New variables substituted
455 by configure.
456 * Makefile.in: Regenerate.
457 * configure: Regenerate.
458 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
459 variables.
460
ebf6d33b
FXC
4612014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
462
463 PR target/63610
464 * configure: Regenerate.
465
43f4a446
L
4662014-08-26 H.J. Lu <hongjiu.lu@intel.com>
467
468 PR bootstrap/62260
469 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
470 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
471 $host_subdir.
472 * Makefile.in: Regenerated.
473 * configure: Likewise.
474
2a7a8388
TS
4752014-06-13 Thomas Schwinge <thomas@codesourcery.com>
476
477 * configure.ac (--with-libiberty): New configure option.
478 * configure: Regenerate.
479 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
480 variables.
481 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
482 (liblto_plugin_la_DEPENDENCIES): Use them.
483 * Makefile.in: Regenerate.
484
a2555c65
RO
4852014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
486
487 PR lto/60981
488 * configure.ac: Check for -static-libgcc.
489 * configure: Regenerate.
490
ffe7f7a7
JJ
4912014-04-17 Jakub Jelinek <jakub@redhat.com>
492
4f148bbc
JJ
493 PR sanitizer/56781
494 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
495 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
496 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
497 over ../libiberty/pic/libiberty.a if the former exists.
498 * Makefile.in: Regenerated.
499
ffe7f7a7
JJ
500 PR sanitizer/56781
501 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
502 * Makefile.in: Regenerated.
503
21b624f0
RB
5042014-04-02 Richard Biener <rguenther@suse.de>
505
506 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
507 is set in COLLECT_GCC_OPTIONS.
508
2486c24a
RB
5092014-03-28 Richard Biener <rguenther@suse.de>
510
511 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
512
5523efdf
RO
5132014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
514
515 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
516 for gcc.
517 * configure: Regenerate.
518 * Makefile.am (AM_LDFLAGS): New variable.
519 (liblto_plugin_la_LDFLAGS): Add it.
520 * Makefile.in: Regenerate.
521
3cbe17f7
AM
5222013-09-20 Alan Modra <amodra@gmail.com>
523
524 * configure: Regenerate.
525
de973ab7
DE
5262012-09-14 David Edelsohn <dje.gcc@gmail.com>
527
528 * configure: Regenerated.
529
3f417959
JM
5302012-05-29 Joseph Myers <joseph@codesourcery.com>
531
532 * lto-plugin.c: Fix typo.
533
e6d5f8c9
L
5342012-05-16 H.J. Lu <hongjiu.lu@intel.com>
535
536 * configure: Regenerated.
537
8cfa7899
KT
5382012-02-22 Kai Tietz <ktietz@redhat.com>
539
540 PR lto/50616
541 * lto-plugin.c (PRI_LL): New macro.
542 (dump_symtab): Use PRI_LL instead of ll in print.
543 (process_symtab): Use PRI_LL instead of ll in scan.
544
4a5e00ca
AS
5452011-12-20 Andreas Schwab <schwab@linux-m68k.org>
546
547 * configure: Regenerate.
548
095af58f
AS
5492011-12-19 Andreas Schwab <schwab@linux-m68k.org>
550
551 * configure: Regenerate.
552
c6084f68
AT
5532011-11-21 Andreas Tobler <andreast@fgznet.ch>
554
555 * configure: Regenerate.
556
ed0d2da0
JH
5572011-10-02 Jan Hubicka <jh@suse.cz>
558
559 PR lto/47247
560 * lto-plugin.c (get_symbols_v2): New variable.
561 (write_resolution): Use V2 API when available.
562 (onload): Handle LDPT_GET_SYMBOLS_V2.
563
ad7715f3
L
5642011-09-30 H.J. Lu <hongjiu.lu@intel.com>
565 Andi Kleen <ak@linux.intel.com>
566
567 PR lto/50568
568 * lto-plugin.c (sym_aux): Change id to unsigned long long.
569 (plugin_symtab): Likewise.
570 (dump_symtab): Likewise.
571 (resolve_conflicts): Likewise.
572 (process_symtab): Likewise.
573
f3016c47
RG
5742011-08-10 Richard Guenther <rguenther@suse.de>
575
576 PR bootstrap/49907
577 lto-plugin/
578 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
579 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
580 * configure: Regenerate.
581 * Makefile.in: Likewise.
582 * aclocal.m4: Likewise.
583
04695783
JM
5842011-04-20 Jim Meyering <meyering@redhat.com>
585
586 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
587
3b8c1a3f
RG
5882011-04-05 Richard Guenther <rguenther@suse.de>
589
590 PR bootstrap/48431
591 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
592
029c8f3e
RW
5932011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
594
595 * Makefile.in: Regenerate.
596 * aclocal.m4: Regenerate.
597 * configure: Regenerate.
598
3917813c
RW
5992011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
600
601 * Makefile.am (all-local): Rename from 'all'.
602 * Makefile.in: Regenerate.
603
f3d533d3
AO
6042011-02-12 Alexandre Oliva <aoliva@redhat.com>
605
606 PR lto/47225
607 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
608 (liblto_plugin_la_LDFLAGS): Add -module.
609 (copy_lto_plugin): Renamed to...
610 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
611 of static modules.
612 * Makefile.in: Rebuild.
613
f43c3935
KT
6142011-02-07 Kai Tietz <kai.tietz@onevision.com>
615
616 PR lto/47225
617 * Makefile.am (Wc): New helper for encoding -Wc,.
618 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
619 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
620 * Makefile.in: Regenerated.
621
e6d926d7
PB
6222011-02-07 Paolo Bonzini <bonzini@gnu.org>
623
624 Revert:
625
626 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
627
628 PR lto/47225
629 * Makefile.am (Wl): New helper for encoding -Wl,.
630 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
631 * Makefile.in: Regenerated.
632
c7b5125d
KT
6332011-02-07 Kai Tietz <kai.tietz@onevision.com>
634
635 PR lto/47225
636 * Makefile.am (Wl): New helper for encoding -Wl,.
637 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
638 * Makefile.in: Regenerated.
639
e3bb089d
ILT
6402011-01-25 Ian Lance Taylor <iant@google.com>
641
642 * lto-plugin.c (gold_version): New static variable.
643 (all_symbols_read_handler): Don't check pass_through_items if
644 using gold 1.11 or later.
645 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
646
47782a9d
RG
6472011-01-12 Richard Guenther <rguenther@suse.de>
648
649 PR lto/47264
650 * lto-plugin.c (parse_table_entry): Use memcpy to access
651 unaligned fields.
652
5b64bab9
DK
6532010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
654
655 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
656 * Makefile.in: Regenerate.
657
be3ea0c8
RO
6582010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
659
660 Revert last change.
661
dd8587d6
RO
6622010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
663
664 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
665 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
666 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
667 * Makefile.in: Regenerate.
668
77754180
DK
6692010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
670
671 PR middle-end/46674
672 PR lto/43157
673 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
674 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
675 * configure: Regenerate.
676 * config.h.in: Likewise.
677
7de6ba7a
DK
6782010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
679
680 PR target/40125
681 PR lto/46695
682 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
683 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
684 override -bindir setting.
685 * aclocal.m4: Regenerate.
686 * configure: Regenerate.
687 * Makefile.in: Regenerate.
688
ec692d5f
KT
6892010-12-05 Kai Tietz <kai.tietz@onevision.com>
690
691 * config.h.in: Regenerated.
692 * configure: Regenerated.
693 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
694 * lto-plugin.c (WIFEXITED): Define default.
695 (WEXITSTATUS): Likeiwse.
696
a2254c5d
KT
6972010-12-01 Kai Tietz <kai.tietz@onevision.com>
698
699 * config.h.in: Regenerated.
700 * configure: Regenerated.
701 * Makefile.in: Regenerated.
702 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
703 * lto-plugin.c: Include sys/wait.h conditionally.
704 * aclocal.m4: Regenerated.
705
44538c62
KT
7062010-11-13 Kai Tietz <kai.tietz@onevision.com>
707
708 * lto-plugin.c (add_output_files): Fix memory leak.
709
d19e0f01
DK
7102010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
711
712 PR bootstrap/46397
713 PR bootstrap/46362
714 * configure.ac: Add AC_TYPE_INT64_T test.
715 * config.h.in: Regenerate.
716 * configure: Likewise.
717 * lto-plugin.c (debug): Use char not bool.
718 (nop): Likewise.
719 (check_1): Rename from check, and use int not bool for gate argument.
720 (check): Macro wrapper for the above to coerce gate argument into
721 boolean-valued integer in case it has pointer type.
722 (parse_table_entry): Use 0 not false.
723 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
724 into two 32-bit parts and printing as hex ints.
725
37da3688
DK
7262010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
727
728 PR lto/46291
729 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
730
48215350
DK
7312010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
732
733 PR lto/46273
734 * lto-plugin.h: Delete.
735 * lto-plugin-elf.c: Likewise.
736 * lto-plugin-coff.c: Likewise.
737 * configure.ac: Don't use libelf, don't source config.gcc.
738 (LIBELFLIBS): Delete.
739 (LIBELFINC): Delete.
740 (LTO_FORMAT): Delete.
741 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
742 (config.h): Add AC_CONFIG_HEADERS directive.
743 * Makefile.am (LIBELFLIBS): Delete.
744 (LIBELFINC): Delete.
745 (LTO_FORMAT): Delete.
746 (DEFS): Import.
747 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
748 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
749 any object-format-specific source file in the link.
750 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
751 * config.h.in: Generate.
752 * configure: Regenerate.
753 * Makefile.in: Likewise.
754 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
755 (LTO_SEGMENT_NAME): New definition.
756 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
757 (LTO_SECTION_PREFIX_LEN): New definition.
758 (struct sym_aux): Struct definition moved here from lto-plugin.h.
759 (struct plugin_symtab): Likewise.
760 (struct plugin_objfile): Likewise.
761 (struct plugin_objfile): New struct def.
762 (enum symbol_style): New enum type.
763 (add_symbols): Make static.
764 (claimed_files): Likewise.
765 (num_claimed_files): Likewise.
766 (sym_style): New global.
767 (check): Make static.
768 (parse_table_entry): Likewise. Respect sym_style when extracting
769 symbol from symtab entry.
770 (translate): Make static.
771 (resolve_conflicts): Likewise.
772 (process_symtab): New function, per-section callback version of
773 old object-format-specific handling from deleted lto-plugin-elf.c.
774 (claim_file_handler): Convert ELF-specific version from deleted
775 lto-plugin-elf.c to simple_object interface and move here.
776 (process_options): Allow new '-sym-style=' option.
777 (onload): Don't call deleted onload_format_checks hook.
778
9df2493c
KT
7792010-10-11 Kai Tietz <kai.tietz@onevision.com>
780
781 * lto-plugin.c (dump_symtab): Correct printf argument type.
782 (finish_conflict_resolution): Initialize resolution.
783
73d5e770
L
7842010-10-08 H.J. Lu <hongjiu.lu@intel.com>
785
786 PR bootstrap/45951
787 * configure.ac: Add AC_CANONICAL_SYSTEM.
788 * configure: Regenerated.
789
1cd0b716
DK
7902010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
791
792 * configure.ac: Source config.gcc to determine lto_binary_reader.
793 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
794 * Makefile.am (LTO_FORMAT): Import.
795 (liblto_plugin_la_SOURCES): Add object format dependent module
796 defined by LTO_FORMAT.
797 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
798 and work around libtool warning.
799 * configure: Regenerate.
800 * Makefile.in: Likewise.
801 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
802 (struct sym_aux): Likewise.
803 (struct plugin_symtab): Likewise.
804 (struct plugin_file_info): Likewise.
805 (LTO_SECTION_PREFIX): Likewise.
806 (add_symbols): Make non-static.
807 (claimed_files): Likewise.
808 (num_claimed_files): Likewise.
809 (check): Likewise.
810 (parse_table_entry): Likewise.
811 (translate): Likewise.
812 (resolve_conflicts): Likewise.
813 (process_symtab): Move to new lto-plugin-elf.c object format dependent
814 source file.
815 (claim_file_handler): Likewise, and make non-static.
816 (onload): Call new onload_format_checks function.
817 * lto-plugin.h: New file.
818 (LTO_SECTION_PREFIX): Move here.
819 (struct sym_aux): Likewise.
820 (struct plugin_symtab): Likewise.
821 (struct plugin_file_info): Likewise.
822 (claim_file_handler): Add new function prototype.
823 (onload_format_checks): Likewise.
824 (check): Declare extern.
825 (translate): Likewise.
826 (parse_table_entry): Likewise.
827 (resolve_conflicts): Likewise.
828 (add_symbols): Likewise.
829 (claimed_files): Likewise.
830 (num_claimed_files): Likewise.
831 * lto-plugin-elf.c (process_symtab): Move here.
832 (claim_file_handler): Likewise, and make non-static.
833 (onload_format_checks): New function factored out from onload.
834 * lto-plugin-coff.c (claim_file_handler): New function stub.
835 (onload_format_checks): Likewise.
836
d2c57fe9
AK
8372010-08-05 Andi Kleen <ak@linux.intel.com>
838
839 * lto-plugin.c: Include <hashtab.h>
840 (sym_aux): Add next_conflict field to save conflict chains.
841 (plugin_file_info): Add conflicts symtab.
842 (parse_table_entry): Initialize aux->next_conflict.
843 (process_symtab): Increment found.
844 (dump_symtab): Add.
845 (finish_conflict_resolution): Add.
846 (free_symtab): Add.
847 (write_resolution): Remove symbols loop and move into
848 dump_symtab. Call dump_symtab for main symbol and conflicts table.
849 Call free_symtab to free conflicts table.
850 (SWAP): Add.
851 (eq_sym): Add.
852 (hash_sym): Add.
853 (symbol_strength): Add.
854 (resolve_conflicts): Add.
855 (claim_file_handler): Add n variable. Check return value of
856 process_symtab. Call resolve_conflicts.
857
ecdbd01a 8582010-07-27 Andi Kleen <ak@linux.intel.com>
90e26247
AK
859
860 * lto-plugin.c (translate): Remove debug fprintf.
861
9477ccb2
L
8622010-07-23 H.J. Lu <hongjiu.lu@intel.com>
863
864 PR bootstrap/45042
865 * lto-plugin.c (translate): Cast to unsigned long.
866
ecdbd01a 8672010-07-23 Andi Kleen <ak@linux.intel.com>
73ce4d1e
AK
868
869 PR lto/44992
870 * lto-plugin.c (sym_aux): Add.
871 (plugin_symtab): Remove slots. Add aux and id.
872 (parse_table_entry): Change to use aux instead of slots.
873 (LTO_SECTION_PREFIX): Add.
874 (translate): Improve buffer allocation. Change to append
875 symbols to existing out buffer.
876 (get_section): Remove.
877 (process_symtab): Add.
878 (free_2): Free symtab->aux.
879 (write_resolution): Handle aux instead of slots.
880 Print sub id to resolution file.
881 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
882 calls with call to process_symtab.
883
553fc582
RG
8842010-07-22 Richard Guenther <rguenther@suse.de>
885
886 * Makefile.am: New copy_lto_plugin rule to install the plugin
887 into ../gcc.
888 * Makefile.in: Regenerated.
889
bdc89f9e
RG
8902010-05-21 Richard Guenther <rguenther@suse.de>
891
892 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
893
5cd0e96b
RG
8942010-05-07 Richard Guenther <rguenther@suse.de>
895
896 * lto-plugin.c (free_2): Do not free resolution_file.
897 (write_resolution): Check that we were passed a resolution file.
898 (all_symbols_read_handler): Adjust.
899 (cleanup_handler): Do not remove the resolution file.
900 (process_option): Handle -fresolution=.
901
13917ae3
RW
9022010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
903
904 PR other/43620
905 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
906 * Makefile.in: Regenerate.
907
ed0f0c0f
RG
9082010-04-23 Richard Guenther <rguenther@suse.de>
909
910 PR lto/41550
911 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
912 (translate): Likewise.
913 (all_symbols_read_handler): Likewise.
914 (claim_file_handler): Likewise.
915 (process_option): Likewise.
916 (add_output_files): Likewise. Remove filename length limit.
917
4d9e8446
RW
9182010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
919
920 * Makefile.in: Regenerate.
921 * aclocal.m4: Regenerate.
922
a8a5ac48
DG
9232010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
924
925 PR lto/43336
926 * lto-plugin.c (cleanup_handler): Delete temporary output files.
927
c164615b
RG
9282010-01-11 Richard Guenther <rguenther@suse.de>
929
930 PR lto/41569
931 * Makefile.am: Disable dependencies.
932 * Makefile.in: Regenerated.
933
f0d61983
L
9342010-01-03 H.J. Lu <hongjiu.lu@intel.com>
935
936 PR lto/42520
937 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
938 if -v is passed.
939
52327858 9402009-12-05 H.J. Lu <hongjiu.lu@intel.com>
43e02a8a 941
52327858
L
942 PR bootstrap/42306
943 * configure: Regenerated.
944 * Makefile.in: Likewise.
43e02a8a 945
92fa7608
RAE
9462009-11-19 Rafael Avila de Espindola <espindola@google.com>
947
948 PR bootstrap/42096
949 * lto-plugin.c (claim_file_handler): Print offsets in hex.
950
06bd7f56
RAE
9512009-11-12 Rafael Avila de Espindola <espindola@google.com>
952
953 * lto-plugin.c (write_resolution): Assume resolution_file is set.
954 Print the symbol name.
955 (all_symbols_read_handler): Create a resolution file.
956 Pass it to gcc.
957 (cleanup_handler): Remove the resolution file.
958 (process_option): Drop the -resolution option.
959
94086ef6
RAE
9602009-11-05 Rafael Avila de Espindola <espindola@google.com>
961
962 * lto-plugin.c (temp_obj_dir_name): Remove.
963 (arguments_file_name): New.
964 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
965 (exec_lto_wrapper): Create arguments file with make_temp_file.
966 (cleanup_handler): Don't remove the temporary directory. Remove the
967 arguments file.
968 (onload): Don't create the temporary directory.
969
7e9dc421 9702009-11-04 Richard Guenther <rguenther@suse.de>
92a285c1 971 Rafael Avila de Espindola <espindola@google.com>
7e9dc421
RG
972
973 * lto-plugin.c (plugin_file_info): Remove temp field.
974 (cleanup_handler): Don't delete temporary objects.
975 (claim_file_handler): Don't create temporary objects.
976
1cddcdca
RAE
9772009-11-04 Rafael Avila de Espindola <espindola@google.com>
978
979 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
980
86ed04df
RAE
9812009-10-30 Rafael Avila de Espindola <espindola@google.com>
982
983 PR41871
984 * lto-plugin.c (claim_file_handler): Close files that we created.
985
aff4273c
RAE
9862009-10-28 Rafael Avila de Espindola <espindola@google.com>
987
988 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
989 LDPL_ERROR
990
4c0f4b0b
DG
9912009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
992
993 PR lto/41652
994 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
995 * configure: Regenerate.
996
03428d41
RG
9972009-10-26 Richard Guenther <rguenther@suse.de>
998
999 * configure.ac: Use AM_MAINTAINER_MODE.
1000 * acinclude.m4: Remove.
1001 * configure: Re-generate.
1002 * Makefile.in: Likewise.
1003 * aclocal.m4: Likewise.
1004
941e566a
RE
10052009-10-19 Rafael Avila de Espindola <espindola@google.com>
1006
92a285c1
ML
1007 PR40790
1008 * configure: Regenerate.
1009 * configure.ac: Add AC_TYPE_UINT64_T.
941e566a 1010
33662270
RAE
10112009-10-16 Rafael Avila de Espindola <espindola@google.com>
1012
1013 * lto-plugin.c (message): New variable.
1014 (check): New function.
1015 (parse_table_entry, translate, write_resolution,add_output_files,
1016 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
1017 assert.
1018 (cleanup_handler): Use check instead of assert. Remove the arguments
1019 file if it exists.
1020
b10071c5
RAE
10212009-10-15 Rafael Avila de Espindola <espindola@google.com>
1022
1023 * lto-plugin.c (resolution_file): New.
1024 (free_1): Update comment.
1025 (free_2): Free resolution_file.
1026 (write_resolution): Write resolution to specified file. Use the
1027 syms array from the symbol table.
1028 (all_symbols_read_handler): Delay call to free_1 past call to
1029 write_resolution.
1030 (process_option): Add a -resolution option.
1031
076c7ebe
RG
10322009-10-13 Richard Guenther <rguenther@suse.de>
1033
1034 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
1035 correct libiberty.
1036 * Makefile.in: Regenerated.
1037
d520c7fb
RAE
10382009-10-08 Rafael Avila de Espindola <espindola@google.com>
1039
1040 * lto-plugin.c (add_input_library): New.
1041 (all_symbols_read_handler): Use add_input_library for items that
1042 start with -l.
1043 (process_option): Fit in 80 columns.
1044 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
1045
d7f09764
DN
10462009-10-02 Diego Novillo <dnovillo@google.com>
1047
1048 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1049 and -D_FILE_OFFSET_BITS=64.
1050 * configure.ac: Add AC_SYS_LARGEFILE.
1051 * configure: Regenerate.
1052 * Makefile.in: Regenerate.
1053 * lto-plugin.c: Fix copyright boilerplate.
1054
10552009-10-02 Diego Novillo <dnovillo@google.com>
1056
1057 * Makefile.am (ACLOCAL_AMFLAGS): Define.
1058 * aclocal.m4: Regenerate with aclocal-2.64
1059 * acinclude.m4: Remove.
1060 * Makefile.in: Regenerate with automake-1.11
1061 * configure.ac (AC_PREREQ): Update to 2.64.
1062 * configure: Regenerate.
1063
10642009-10-02 Diego Novillo <dnovillo@google.com>
1065
1066 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1067 and -D_FILE_OFFSET_BITS=64.
1068 * configure.ac: Add AC_SYS_LARGEFILE.
1069 * configure: Regenerate.
1070 * Makefile.in: Regenerate.
1071 * lto-plugin.c: Fix copyright boilerplate.
1072
10732009-10-02 Diego Novillo <dnovillo@google.com>
1074
1075 * Makefile.am (ACLOCAL_AMFLAGS): Define.
1076 * aclocal.m4: Regenerate with aclocal-2.64
1077 * acinclude.m4: Remove.
1078 * Makefile.in: Regenerate with automake-1.11
1079 * configure.ac (AC_PREREQ): Update to 2.64.
1080 * configure: Regenerate.
1081
10822009-10-02 Rafael Avila de Espindola <espindola@google.com>
1083
1084 * Makefile.am (liblto_plugin_la_SOURCES): Remove
1085 $(top_srcdir)/../gcc/lto/common.c
1086 * Makefile.in: Regenerate.
1087
10882009-10-01 Rafael Avila de Espindola <espindola@google.com>
1089
1090 * lto-plugin.c (pass_through_items): New.
1091 (num_pass_through_items): New.
1092 (all_symbols_read_handler): Update to use the -pass-through option.
1093 (process_option): Replace -libgcc with -pass-through.
1094
10952009-09-30 Rafael Avila de Espindola <espindola@google.com>
1096
1097 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
1098 register_cleanup to be set.
1099
11002009-09-30 Rafael Avila de Espindola <espindola@google.com>
1101
1102 * Makefile.am: Remove all reference to ltosymtab.
1103 * Makefile.in: Regenerate.
1104 * lto-symtab.c: Remove.
1105
11062009-05-21 Diego Novillo <dnovillo@google.com>
1107
1108 * configure.ac: Remove call to AC_CHECK_GELF.
1109 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
1110 * acinclude.m4: Do not include ../config/libelf.m4
1111 * Makefile.am (LIBELFLIBS): Define.
1112 (LIBELFINC): Define.
1113 (AM_CPPFLAGS): Add $(LIBELFINC).
1114 (ltosymtab_LDADD): Add $(LIBELFLIBS).
1115 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
1116 * lto-plugin.c: Always include <gelf.h>
1117 * lto-symtab.c: Likewise.
1118 * configure: Regenerate.
1119 * Makefile.in: Regenerate.
1120
11212009-03-23 Rafael Avila de Espindola <espindola@google.com>
1122
1123 * lto-plugin.c (libgcc_filename): New.
1124 (all_symbols_read_handler): Pass libgcc to the linker.
1125 (all_symbols_read_handler): Parse -libgcc
1126
11272009-02-05 Rafael Avila de Espindola <espindola@google.com>
1128
1129 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
1130 * Makefile.in: Regenerate.
1131 * lto-plugin.c (add_output_files): Argument is now a FILE.
1132 (exec_lto_wrapper): Use writeargv and pex.
1133
11342009-02-04 Rafael Avila de Espindola <espindola@google.com>
1135
1136 Revert:
1137 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1138 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1139
1140
11412009-02-04 Rafael Avila de Espindola <espindola@google.com>
1142
1143 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1144
11452009-01-29 Rafael Avila de Espindola <espindola@google.com>
1146
1147 * lto-plugin.c: Include libiberty.h.
1148 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
1149 snprintf.
1150
11512009-01-29 Rafael Avila de Espindola <espindola@google.com>
1152
1153 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
1154 file to lto-wrapper.
1155
11562009-01-28 Rafael Avila de Espindola <espindola@google.com>
1157
1158 * lto-plugin.c (plugin_file_info): Remove fd and elf.
1159 (parse_table_entry): strdup entry->name and entry->comdat_key.
1160 (free_1): Free name and comdat_key. Don't close the file. Don't call
1161 elf_end.
1162 (claim_file_handler): Always call elf_end.
1163
11642008-12-23 Rafael Avila de Espindola <espindola@google.com>
1165
1166 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
1167 -D_FILE_OFFSET_BITS=64
1168 * Makefile.in: Regenerate
1169
11702008-12-22 Rafael Avila de Espindola <espindola@google.com>
1171
1172 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
1173 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
1174 * Makefile.in: Regenerate.
1175 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
1176 * configure: Regenerate.
1177 * configure.ac: Add AC_SUBST(target_noncanonical).
1178
11792008-12-08 Rafael Avila de Espindola <espindola@google.com>
1180
1181 * lto-plugin.c: Include stdbool.h.
1182 (debug, nop): Declare as bool.
1183
11842008-12-08 Rafael Avila de Espindola <espindola@google.com>
1185
1186 * lto-plugin.c (nop): New.
1187 (use_original_files): New.
1188 (all_symbols_read_handler): Call use_original_files if nop is true.
1189 (process_option): Parse the -nop option.
1190
11912008-12-08 Rafael Avila de Espindola <espindola@google.com>
1192
1193 * lto-plugin.c (debug): New.
1194 (exec_lto_wrapper): Print argv if debug is true.
1195 (process_option): Process the -debug command line option.
1196
11972008-12-03 Rafael Avila de Espindola <espindola@google.com>
1198
1199 * lto-plugin.c (process_option): The argument is now a single option,
1200 not a space separated list.
1201
12022008-12-02 Rafael Avila de Espindola <espindola@google.com>
1203
1204 * lto-plugin.c: Include sys/types.h and sys/wait.h
1205 (output_files, num_output_files, lto_wrapper_argv,
1206 lto_wrapper_num_args): New.
1207 (free_2): Free output_files.
1208 (write_resolution): Disable.
1209 (add_output_files): New.
1210 (exec_lto_wrapper): New.
1211 (all_symbols_read_handler): Run lto-wrapper.
1212 (claim_file_handler): Free lto_file.name and call elf_end.
1213 (process_option): New.
1214
12152008-11-26 Rafael Espindola <espindola@google.com>
1216
1217 * lto-plugin.c (add_input_file): New.
1218 (get_section): Return NULL if get_section fails.
1219 (write_resolution): New.
1220 (all_symbols_read_handler): Call add_input_file.
1221 (claim_file_handler): Unlink the correct file.
1222 (onload): Record add_input_file.
1223
12242008-09-23 Rafael Espindola <espindola@google.com>
1225
1226 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
1227 Update the location of common.c.
1228 * Makefile.in: Regenerate.
1229 * common.c: Moved to gcc/lto.
1230 * common.h: Moved to gcc/lto.
1231 * lto-plugin.c: Update the location of common.h.
1232 * lto-symtab.c: Update the location of common.h.
1233
12342008-09-23 Rafael Espindola <espindola@google.com>
1235
1236 * common.c: Include common.h.
1237 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
1238 sizes.
1239 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
1240 explicit sizes.
1241
12422008-09-23 Rafael Espindola <espindola@google.com>
1243
1244 * lto-plugin.c (plugin_file_info): Add temp.
1245 (cleanup_handler): Only delete temporary files.
1246 (claim_file_handler): Initialize lto_file.temp.
1247
12482008-09-23 Rafael Espindola <espindola@google.com>
1249
92a285c1 1250 * plugin-api.h: Moved to include.
d7f09764
DN
1251
12522008-09-23 Rafael Espindola <espindola@google.com>
1253
1254 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1255 format.
1256
12572008-09-22 Rafael Espindola <espindola@google.com>
1258
1259 * plugin-api.h: Copy from binutils' cvs.
1260
12612008-09-22 Rafael Espindola <espindola@google.com>
1262
1263 * lto-symtab.c (get_symbols, add_symbols): Update signature.
1264 * plugin-api.h: Copy from binutils' cvs.
1265
12662008-09-22 Rafael Espindola <espindola@google.com>
1267
1268 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1269 Make extern
1270
12712008-09-10 Rafael Espindola <espindola@google.com>
1272
1273 * lto-plugin.c (onload): add missing break statements and asserts.
1274 * lto-symtab.c (claim_file_handler): Make it static.
1275 (all_symbols_read_handler): Make it static.
1276 (all_file_handles): Make it static.
1277 (num_file_handles): Make it static.
1278 (register_claim_file): Make it static.
1279 (register_object): Indent properly.
1280
12812008-09-10 Rafael Avila de Espindola <espindola@google.com>
1282
1283 * Makefile.am (ltosymtab_LDADD): Add -lelf.
1284 * Makefiel.in: Regenerate.
1285 * lto-plugin.c: Include ar.h.
1286 (claim_file_handler): Handle file->offset != 0.
1287 * lto-symtab.c: Include gelf.h.
1288 (all_file_handles): Change type.
1289 (register_object): New.
1290 (register_file): Add support for archives.
1291 (resolve): Update to new type of all_file_handles.
1292 (print): Update to new type of all_file_handles.
1293 (free_all): Update to new type of all_file_handles.
1294 (main): Update to new type of all_file_handles.
1295
12962008-09-10 Rafael Avila de Espindola <espindola@google.com>
1297
1298 * lto-plugin.c (get_string_table): Remove.
1299 (get_section): Use elf_strptr instead of get_string_table.
1300
13012008-09-08 Doug Kwan <dougkwan@google.com>
1302
1303 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1304 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1305
13062008-09-08 Rafael Avila de Espindola <espindola@google.com>
1307
1308 * Makefile.am (ltosymtab_SOURCES): add common.c.
1309 (ltosymtab_CFLAGS): New.
1310 (liblto_plugin_la_SOURCES): Add common.c.
1311 * Makefile.in: Regenerate.
1312 * common.c: New.
1313 * common.h: New.
1314 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1315 (plugin_symtab): New.
1316 (plugin_file_info): New.
1317 (register_all_symbols_read): New.
1318 (get_symbols): New.
1319 (claimed_files): New.
1320 (num_claimed_files): New.
1321 (translate): Don't drop the slot number.
1322 (free_1): New.
1323 (free_2): New.
1324 (all_symbols_read_handler): New.
1325 (claim_file_handler): Record every claimed file.
1326 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1327 LDPT_GET_SYMBOLS.
1328 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1329 (current_file_handle): Remove.
1330 (ld_plugin_all_symbols_read_handler): New.
1331 (plugin_handle): New.
1332 (file_handle): New.
1333 (all_file_handles): New.
1334 (num_file_handles): New.
1335 (get_symbols): New.
1336 (register_all_symbols_read): New.
1337 (add_symbols): Don't print the symbols, just record them.
1338 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1339 LDPT_GET_SYMBOLS.
1340 (load_plugin): Use plugin_handle.
1341 (register_file): Add the file handle to all_file_handles.
1342 (resolve): New.
1343 (print): New.
1344 (unload_plugin): New.
1345 (free_all): New.
1346 (main): Call all_symbols_read_handler and free resources.
1347
13482008-09-03 Rafael Avila de Espindola <espindola@google.com>
1349
1350 * Makefile.am (AM_CFLAGS): New.
1351 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1352 (lib_LTLIBRARIES): New.
1353 (liblto_plugin_la_SOURCES): New.
1354 (liblto_plugin_la_LIBADD): New.
1355 * Makefile.in: Regenerate.
1356 * acinclude.m4: Don't include ../config/acx.m4 and
1357 ../config/no-executables.m4.
1358 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1359 ../libtool.m4.
1360 * aclocal.m4: Regenerate.
1361 * configure: Regenerate.
1362 * configure.ac: Use AM_PROG_LIBTOOL.
1363 * lto-plugin.c: New.
1364 * lto-symtab.c: Rewrite to use the plugin.
1365 * plugin-api.h: New.
1366
13672008-08-25 Rafael Avila de Espindola <espindola@google.com>
1368
1369 * configure: Regenerate.
1370 * configure.ac: Use AC_CHECK_GELF.
1371 * lto-symtab.c: Include gelf.h.
1372 (get_string_table): Use size independent API.
1373 (printTable): Use lld to print 64 bit integers.
1374
13752008-08-22 Rafael Avila de Espindola <espindola@google.com>
1376
1377 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1378 entry->visibility are valid.
1379
13802008-07-22 Rafael Avila de Espindola <espindola@google.com>
1381 * lto-symtab.c (table_entry): Add comdat.
1382 (parse_table_entry): Read comdat.
1383
13842008-08-21 Rafael Espindola <espindola@google.com>
1385
1386 * Makefile.am: New.
1387 * Makefile.in: New.
1388 * acinclude.m4: New.
1389 * aclocal.m4: New.
1390 * configure: New.
1391 * configure.ac: New.
1392 * lto-symtab.c: New.
This page took 1.523877 seconds and 5 git commands to generate.