]> git.ipfire.org Git - thirdparty/gcc.git/blob - lto-plugin/ChangeLog
Daily bump.
[thirdparty/gcc.git] / lto-plugin / ChangeLog
1 2022-10-12 Martin Liska <mliska@suse.cz>
2
3 * configure: Regenerate.
4
5 2022-10-11 Olivier Hainque <hainque@adacore.com>
6 Olivier Hainque <hainque@adacore.com>
7
8 * configure: Regenerate.
9
10 2022-08-01 Martin Liska <mliska@suse.cz>
11
12 PR lto/106170
13 * configure.ac: Replace $target with $host.
14 * configure: Regenerate.
15
16 2022-07-14 Martin Liska <mliska@suse.cz>
17
18 PR bootstrap/106156
19 * Makefile.am: Use ac_lto_plugin_extra_ldflags for AM_LDFLAGS.
20 * configure.ac: Use AC_SUBST(ac_lto_plugin_extra_ldflags).
21 * Makefile.in: Regenerate.
22 * configure: Regenerate.
23
24 2022-07-12 Martin Liska <mliska@suse.cz>
25
26 * lto-plugin.c (negotiate_api_version): New.
27 (onload): Negotiate API version.
28 * Makefile.am: Add -DBASE_VERSION.
29 * Makefile.in: Regenerate.
30
31 2022-07-07 Martin Liska <mliska@suse.cz>
32
33 PR lto/106170
34 * configure.ac: Configure HAVE_PTHREAD_LOCKING.
35 * lto-plugin.c (LOCK_SECTION): New.
36 (UNLOCK_SECTION): New.
37 (claim_file_handler): Use the newly added macros.
38 (onload): Likewise.
39 * config.h.in: Regenerate.
40 * configure: Regenerate.
41
42 2022-07-01 Pekka Seppänen <pexu@gcc.mail.kapsi.fi>
43
44 PR lto/106118
45 * configure.ac: Move -pthread from here...
46 * Makefile.am: ...to here.
47 * configure: Regenerate.
48 * Makefile.in: Likewise.
49
50 2022-06-27 Martin Liska <mliska@suse.cz>
51
52 * lto-plugin.c (plugin_lock): New lock.
53 (claim_file_handler): Use mutex for critical section.
54 (onload): Initialize mutex.
55 * configure.ac: Check for pthread.h.
56 * configure: Regenerate.
57 * config.h.in: Regenerate.
58
59 2022-06-20 Martin Liska <mliska@suse.cz>
60
61 * lto-plugin.c (struct plugin_file_info): Add skip_file flag.
62 (write_resolution): Write resolution only if get_symbols != LDPS_NO_SYMS.
63 (all_symbols_read_handler): Ignore file if skip_file is true.
64 (onload): Handle LDPT_GET_SYMBOLS_V3.
65
66 2022-05-04 Martin Liska <mliska@suse.cz>
67
68 * lto-plugin.c (struct plugin_objfile): Use bool for offset
69 field.
70 (exec_lto_wrapper): Assign true/false to bool variables.
71 (process_offload_section): Likewise.
72 (claim_file_handler): Likewise.
73 (onload): Likewise.
74
75 2022-03-22 Jakub Jelinek <jakub@redhat.com>
76
77 PR lto/102426
78 * configure.ac (LTO_PLUGIN_USE_SYMVER, LTO_PLUGIN_USE_SYMVER_GNU,
79 LTO_PLUGIN_USE_SYMVER_SUN): New test for symbol versioning support.
80 * Makefile.am (version_arg, version_dep): Set conditionally based
81 on LTO_PLUGIN_USE_SYMVER*.
82 (liblto_plugin_la_LDFLAGS): Use $(version_arg) instead of
83 -export-symbols-regex onload.
84 (liblto_plugin_la_DEPENDENCIES): Depend on $(version_dep).
85 * lto-plugin.map: New file.
86 * configure: Regenerated.
87 * Makefile.in: Regenerated.
88
89 2022-03-11 Tobias Burnus <tobias@codesourcery.com>
90
91 * lto-plugin.c (all_symbols_read_handler): With -save-temps, use
92 link_output_name for -foffload-objects's file name, if available.
93
94 2022-03-01 Martin Liska <mliska@suse.cz>
95
96 * lto-plugin.c (process_offload_section): Use a linker as many
97 comments are connected to gold linker.
98 (process_option): Likewise.
99
100 2021-12-02 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
101
102 * lto-plugin.c: Fix -linker-output-auto-notlo-rel ->
103 -linker-output-auto-nolto-rel typo.
104 (process_option): Adjust accordingly, accepting both old and
105 new spelling.
106
107 2021-09-13 Andrew Pinski <apinski@marvell.com>
108
109 PR lto/49664
110 * Makefile.am: Export only onload.
111 * Makefile.in: Regenerate.
112
113 2021-06-25 Richard Biener <rguenther@suse.de>
114
115 * lto-plugin.c (ltrans_objects): New global.
116 (all_symbols_read_handler): If -ltrans-objects was specified,
117 add the output files from the specified file directly.
118 (process_option): Handle -ltrans-objects.
119
120 2021-05-10 Martin Liska <mliska@suse.cz>
121
122 * lto-plugin.c (LTO_SEGMENT_NAME): Remove.
123 (LTO_SYMTAB_PREFIX): Likewise.
124 (LTO_SYMTAB_PREFIX_LEN): Likewise.
125 (LTO_SYMTAB_EXT_PREFIX): Likewise.
126 (LTO_SYMTAB_EXT_PREFIX_LEN): Likewise.
127 (LTO_LTO_PREFIX): Likewise.
128 (LTO_LTO_PREFIX_LEN): Likewise.
129 (OFFLOAD_SECTION): Likewise.
130 (OFFLOAD_SECTION_LEN): Likewise.
131 (startswith): New function.
132 (all_symbols_read_handler): Use it.
133 (process_symtab): Likewise.
134 (process_symtab_extension): Likewise.
135 (process_offload_section): Likewise.
136 (process_option): Likewise.
137
138 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
139
140 PR bootstrap/99703
141 * configure: Regenerated.
142
143 2021-04-21 Martin Liska <mliska@suse.cz>
144
145 * lto-plugin.c (exec_lto_wrapper): Make a temp variable.
146
147 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
148
149 * configure: Re-generate.
150
151 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
152
153 * configure: Regenerate.
154
155 2020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
156
157 * Makefile.am: Avoid using sanitizer.
158 * Makefile.in: Regenerate.
159
160 2020-09-10 Jonathan Yong <10walls@gmail.com>
161
162 * Makefile.am: drop versioning from libtool completely.
163 * Makefile.in: regenerate.
164
165 2020-09-09 Nick Clifton <nickc@redhat.com>
166
167 * lto-plugin.c (struct plugin_symtab): Add last_sym field.
168 (parse_symtab_extension): Only read as many entries as are
169 available in the buffer. Store the data read into the symbol
170 table indexed from last_sym. Increment last_sym.
171
172 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
173
174 PR bootstrap/96202
175 * configure: Regenerated.
176
177 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
178
179 PR bootstrap/95413
180 * configure: Regenerated.
181
182 2020-05-26 Alexandre Oliva <oliva@adacore.com>
183
184 * lto-plugin.c (skip_in_suffix): New.
185 (exec_lto_wrapper): Use skip_in_suffix and concat to build
186 non-temporary output names.
187 (onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
188 override link_output_name with it.
189
190 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
191
192 PR bootstrap/94998
193 * configure: Regenerated.
194
195 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
196
197 * lto-plugin.c: Document -linker-output-auto-notlo-rel option.
198 (linker_output_set): Change type to bool.
199 (linker_output_known): Likewise.
200 (linker_output_auto_nolto_rel): New variable.
201 (all_symbols_read_handler): Take it into account.
202 <LDPO_REL>: Do not issue the warning if it is set.
203 (process_option): Process -linker-output-auto-notlo-rel.
204 (cleanup_handler): Remove unused variable.
205 (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
206
207 2020-04-28 H.J. Lu <hongjiu.lu@intel.com>
208
209 PR bootstrap/94739
210 * configure: Regenerated.
211
212 2020-04-25 H.J. Lu <hongjiu.lu@intel.com>
213
214 PR bootstrap/94739
215 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
216 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
217 AC_SUBST(CET_HOST_FLAGS).
218 * Makefile.in: Regenerated.
219 * aclocal.m4: Likewise.
220 * configure: Likewise.
221
222 2020-03-19 Martin Liska <mliska@suse.cz>
223
224 * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
225 (LTO_SYMTAB_PREFIX): ... this.
226 (LTO_SECTION_PREFIX_LEN): Rename to ...
227 (LTO_SYMTAB_PREFIX_LEN): ... this.
228 (LTO_SYMTAB_EXT_PREFIX): New.
229 (LTO_SYMTAB_EXT_PREFIX_LEN): New.
230 (LTO_LTO_PREFIX): New.
231 (LTO_LTO_PREFIX_LEN): New.
232 (parse_table_entry): Fill up unused to zero.
233 (parse_table_entry_extension): New.
234 (parse_symtab_extension): New.
235 (finish_conflict_resolution): Change type
236 for resolution.
237 (process_symtab): Use new macro name.
238 (process_symtab_extension): New.
239 (claim_file_handler): Parse also process_symtab_extension.
240 (onload): Call new add_symbols_v2.
241
242 2020-01-01 Jakub Jelinek <jakub@redhat.com>
243
244 Update copyright years.
245
246 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
247
248 * configure: Regenerate.
249
250 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
251
252 * lto-plugin.c (cleanup_handler): Remove unused var.
253
254 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
255
256 * lto-plugin.c (exec_lto_wrapper): Make the wrapper
257 arguments filename more user-friendly.
258 (file_exists, maybe_unlink): New.
259 (cleanup_handler): Use maybe unlink to handle the
260 case when temps should be saved.
261 (process_option): Look for -v, —-version, -save-temps.
262 (onload): Record the linker output file name.
263 Check for -v, —-version, -save-temps in the GCC collect
264 options environment.
265
266 2019-02-26 Martin Liska <mliska@suse.cz>
267
268 * lto-symtab.c: Remove.
269
270 2019-01-01 Jakub Jelinek <jakub@redhat.com>
271
272 Update copyright years.
273
274 2018-10-31 Joseph Myers <joseph@codesourcery.com>
275
276 PR bootstrap/82856
277 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
278 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
279
280 2018-05-30 Jan Hubicka <jh@suse.cz>
281
282 * lto-plugin.c: (non_claimed_files): New static var.
283 (linker_ouput_known): New static var.
284 (all_symbols_read_handler): When user specifies linker output do not
285 imply it; output warning when nonlto-rel mode is forced.
286 (claim_file_header): Record number of nonclaimed files.
287 (process_option): Remember if linker output is known
288
289 2018-04-18 David Malcolm <dmalcolm@redhat.com>
290
291 PR jit/85384
292 * configure: Regenerate.
293
294 2018-01-03 Jakub Jelinek <jakub@redhat.com>
295
296 Update copyright years.
297
298 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
299
300 PR lto/81487
301 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
302 asprintf.
303 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
304
305 2017-01-17 Jakub Jelinek <jakub@redhat.com>
306
307 PR other/79046
308 * configure.ac: Add GCC_BASE_VER.
309 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
310 get version from BASE-VER file.
311 * configure: Regenerated.
312 * Makefile.in: Regenerated.
313
314 2017-01-04 Jakub Jelinek <jakub@redhat.com>
315
316 Update copyright years.
317
318 2016-11-15 Matthias Klose <doko@ubuntu.com>
319
320 * configure: Regenerate.
321
322 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
323
324 PR driver/68463
325 * lto-plugin.c (struct plugin_offload_file): New.
326 (offload_files): Change type.
327 (offload_files_last, offload_files_last_obj): New.
328 (offload_files_last_lto): New.
329 (free_2): Adjust accordingly.
330 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
331 Don't call free_1 for offload_files. Write names of object files with
332 offloading to the temporary file. Add new option to lto_arg_ptr.
333 (claim_file_handler): Don't claim file if it contains offload sections
334 without LTO sections. If it contains offload sections, add to the list.
335
336 2016-01-15 Martin Liska <mliska@suse.cz>
337
338 * lto-plugin.c (all_symbols_read_handler): Assign default
339 value to a string variable.
340
341 2015-11-25 Jan Hubicka <jh@suse.cz>
342
343 PR lto/67548
344 * lto-plugin.c (linker_output, linker_output_set): New statics.
345 (all_symbols_read_handler): Add -flinker-output option.
346 (onload): Record linker_output info.
347
348 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
349
350 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
351 * configure: Regenerate.
352 * config.h.in: Ditto.
353
354 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
355
356 * Makefile.am: Drop 'by automake version' from top-level comment.
357 * Makefile.in: Regenerated with automake-1.11.6.
358 * aclocal.m4: Likewise.
359 * configure: Likewise.
360
361 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
362
363 * lto-plugin.c (release_input_file): Removed.
364 (claim_file_handler): Don't call release_input_file.
365 (onload): Don't set release_input_file.
366
367 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
368
369 * lto-plugin.c (claim_file_handler): Pass handle to
370 release_input_file.
371
372 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
373
374 * lto-plugin.c (claim_file_handler): Call release_input_file only
375 if file is claimed.
376
377 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
378
379 * lto-plugin.c (claim_file_handler): Call release_input_file only
380 if it is not NULL.
381
382 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
383
384 PR lto/64837
385 * lto-plugin.c (release_input_file): New.
386 (claim_file_handler): Call release_input_file.
387 (onload): Set release_input_file.
388
389 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
390
391 * lto-plugin.c (offload_files, num_offload_files): New static variables.
392 (free_1): Use arguments instead of global variables.
393 (free_2): Free offload_files.
394 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
395 arguments.
396 (claim_file_handler): Do not add file to claimed_files if it contains
397 offload sections without LTO sections. Add it to offload_files instead.
398
399 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
400
401 PR bootstrap/63784
402 * configure: Regenerated.
403
404 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
405 Bernd Schmidt <bernds@codesourcery.com>
406 Andrey Turetskiy <andrey.turetskiy@intel.com>
407 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
408
409 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
410 (struct plugin_objfile): Add new field "offload".
411 (process_offload_section): New static function.
412 (claim_file_handler): Claim file if it contains offload sections.
413
414 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
415 Thomas Schwinge <thomas@codesourcery.com>
416 Ilya Verbin <ilya.verbin@intel.com>
417 Andrey Turetskiy <andrey.turetskiy@intel.com>
418
419 * Makefile.am (libexecsubdir): Tweak for the possibility of being
420 configured for offload compiler.
421 (accel_dir_suffix, real_target_noncanonical): New variables substituted
422 by configure.
423 * Makefile.in: Regenerate.
424 * configure: Regenerate.
425 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
426 variables.
427
428 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
429
430 PR target/63610
431 * configure: Regenerate.
432
433 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
434
435 PR bootstrap/62260
436 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
437 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
438 $host_subdir.
439 * Makefile.in: Regenerated.
440 * configure: Likewise.
441
442 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
443
444 * configure.ac (--with-libiberty): New configure option.
445 * configure: Regenerate.
446 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
447 variables.
448 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
449 (liblto_plugin_la_DEPENDENCIES): Use them.
450 * Makefile.in: Regenerate.
451
452 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
453
454 PR lto/60981
455 * configure.ac: Check for -static-libgcc.
456 * configure: Regenerate.
457
458 2014-04-17 Jakub Jelinek <jakub@redhat.com>
459
460 PR sanitizer/56781
461 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
462 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
463 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
464 over ../libiberty/pic/libiberty.a if the former exists.
465 * Makefile.in: Regenerated.
466
467 PR sanitizer/56781
468 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
469 * Makefile.in: Regenerated.
470
471 2014-04-02 Richard Biener <rguenther@suse.de>
472
473 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
474 is set in COLLECT_GCC_OPTIONS.
475
476 2014-03-28 Richard Biener <rguenther@suse.de>
477
478 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
479
480 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
481
482 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
483 for gcc.
484 * configure: Regenerate.
485 * Makefile.am (AM_LDFLAGS): New variable.
486 (liblto_plugin_la_LDFLAGS): Add it.
487 * Makefile.in: Regenerate.
488
489 2013-09-20 Alan Modra <amodra@gmail.com>
490
491 * configure: Regenerate.
492
493 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
494
495 * configure: Regenerated.
496
497 2012-05-29 Joseph Myers <joseph@codesourcery.com>
498
499 * lto-plugin.c: Fix typo.
500
501 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
502
503 * configure: Regenerated.
504
505 2012-02-22 Kai Tietz <ktietz@redhat.com>
506
507 PR lto/50616
508 * lto-plugin.c (PRI_LL): New macro.
509 (dump_symtab): Use PRI_LL instead of ll in print.
510 (process_symtab): Use PRI_LL instead of ll in scan.
511
512 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
513
514 * configure: Regenerate.
515
516 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
517
518 * configure: Regenerate.
519
520 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
521
522 * configure: Regenerate.
523
524 2011-10-02 Jan Hubicka <jh@suse.cz>
525
526 PR lto/47247
527 * lto-plugin.c (get_symbols_v2): New variable.
528 (write_resolution): Use V2 API when available.
529 (onload): Handle LDPT_GET_SYMBOLS_V2.
530
531 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
532 Andi Kleen <ak@linux.intel.com>
533
534 PR lto/50568
535 * lto-plugin.c (sym_aux): Change id to unsigned long long.
536 (plugin_symtab): Likewise.
537 (dump_symtab): Likewise.
538 (resolve_conflicts): Likewise.
539 (process_symtab): Likewise.
540
541 2011-08-10 Richard Guenther <rguenther@suse.de>
542
543 PR bootstrap/49907
544 lto-plugin/
545 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
546 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
547 * configure: Regenerate.
548 * Makefile.in: Likewise.
549 * aclocal.m4: Likewise.
550
551 2011-04-20 Jim Meyering <meyering@redhat.com>
552
553 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
554
555 2011-04-05 Richard Guenther <rguenther@suse.de>
556
557 PR bootstrap/48431
558 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
559
560 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
561
562 * Makefile.in: Regenerate.
563 * aclocal.m4: Regenerate.
564 * configure: Regenerate.
565
566 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
567
568 * Makefile.am (all-local): Rename from 'all'.
569 * Makefile.in: Regenerate.
570
571 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
572
573 PR lto/47225
574 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
575 (liblto_plugin_la_LDFLAGS): Add -module.
576 (copy_lto_plugin): Renamed to...
577 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
578 of static modules.
579 * Makefile.in: Rebuild.
580
581 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
582
583 PR lto/47225
584 * Makefile.am (Wc): New helper for encoding -Wc,.
585 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
586 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
587 * Makefile.in: Regenerated.
588
589 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
590
591 Revert:
592
593 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
594
595 PR lto/47225
596 * Makefile.am (Wl): New helper for encoding -Wl,.
597 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
598 * Makefile.in: Regenerated.
599
600 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
601
602 PR lto/47225
603 * Makefile.am (Wl): New helper for encoding -Wl,.
604 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
605 * Makefile.in: Regenerated.
606
607 2011-01-25 Ian Lance Taylor <iant@google.com>
608
609 * lto-plugin.c (gold_version): New static variable.
610 (all_symbols_read_handler): Don't check pass_through_items if
611 using gold 1.11 or later.
612 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
613
614 2011-01-12 Richard Guenther <rguenther@suse.de>
615
616 PR lto/47264
617 * lto-plugin.c (parse_table_entry): Use memcpy to access
618 unaligned fields.
619
620 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
621
622 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
623 * Makefile.in: Regenerate.
624
625 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
626
627 Revert last change.
628
629 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
630
631 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
632 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
633 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
634 * Makefile.in: Regenerate.
635
636 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
637
638 PR middle-end/46674
639 PR lto/43157
640 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
641 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
642 * configure: Regenerate.
643 * config.h.in: Likewise.
644
645 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
646
647 PR target/40125
648 PR lto/46695
649 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
650 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
651 override -bindir setting.
652 * aclocal.m4: Regenerate.
653 * configure: Regenerate.
654 * Makefile.in: Regenerate.
655
656 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
657
658 * config.h.in: Regenerated.
659 * configure: Regenerated.
660 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
661 * lto-plugin.c (WIFEXITED): Define default.
662 (WEXITSTATUS): Likeiwse.
663
664 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
665
666 * config.h.in: Regenerated.
667 * configure: Regenerated.
668 * Makefile.in: Regenerated.
669 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
670 * lto-plugin.c: Include sys/wait.h conditionally.
671 * aclocal.m4: Regenerated.
672
673 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
674
675 * lto-plugin.c (add_output_files): Fix memory leak.
676
677 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
678
679 PR bootstrap/46397
680 PR bootstrap/46362
681 * configure.ac: Add AC_TYPE_INT64_T test.
682 * config.h.in: Regenerate.
683 * configure: Likewise.
684 * lto-plugin.c (debug): Use char not bool.
685 (nop): Likewise.
686 (check_1): Rename from check, and use int not bool for gate argument.
687 (check): Macro wrapper for the above to coerce gate argument into
688 boolean-valued integer in case it has pointer type.
689 (parse_table_entry): Use 0 not false.
690 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
691 into two 32-bit parts and printing as hex ints.
692
693 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
694
695 PR lto/46291
696 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
697
698 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
699
700 PR lto/46273
701 * lto-plugin.h: Delete.
702 * lto-plugin-elf.c: Likewise.
703 * lto-plugin-coff.c: Likewise.
704 * configure.ac: Don't use libelf, don't source config.gcc.
705 (LIBELFLIBS): Delete.
706 (LIBELFINC): Delete.
707 (LTO_FORMAT): Delete.
708 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
709 (config.h): Add AC_CONFIG_HEADERS directive.
710 * Makefile.am (LIBELFLIBS): Delete.
711 (LIBELFINC): Delete.
712 (LTO_FORMAT): Delete.
713 (DEFS): Import.
714 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
715 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
716 any object-format-specific source file in the link.
717 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
718 * config.h.in: Generate.
719 * configure: Regenerate.
720 * Makefile.in: Likewise.
721 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
722 (LTO_SEGMENT_NAME): New definition.
723 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
724 (LTO_SECTION_PREFIX_LEN): New definition.
725 (struct sym_aux): Struct definition moved here from lto-plugin.h.
726 (struct plugin_symtab): Likewise.
727 (struct plugin_objfile): Likewise.
728 (struct plugin_objfile): New struct def.
729 (enum symbol_style): New enum type.
730 (add_symbols): Make static.
731 (claimed_files): Likewise.
732 (num_claimed_files): Likewise.
733 (sym_style): New global.
734 (check): Make static.
735 (parse_table_entry): Likewise. Respect sym_style when extracting
736 symbol from symtab entry.
737 (translate): Make static.
738 (resolve_conflicts): Likewise.
739 (process_symtab): New function, per-section callback version of
740 old object-format-specific handling from deleted lto-plugin-elf.c.
741 (claim_file_handler): Convert ELF-specific version from deleted
742 lto-plugin-elf.c to simple_object interface and move here.
743 (process_options): Allow new '-sym-style=' option.
744 (onload): Don't call deleted onload_format_checks hook.
745
746 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
747
748 * lto-plugin.c (dump_symtab): Correct printf argument type.
749 (finish_conflict_resolution): Initialize resolution.
750
751 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
752
753 PR bootstrap/45951
754 * configure.ac: Add AC_CANONICAL_SYSTEM.
755 * configure: Regenerated.
756
757 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
758
759 * configure.ac: Source config.gcc to determine lto_binary_reader.
760 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
761 * Makefile.am (LTO_FORMAT): Import.
762 (liblto_plugin_la_SOURCES): Add object format dependent module
763 defined by LTO_FORMAT.
764 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
765 and work around libtool warning.
766 * configure: Regenerate.
767 * Makefile.in: Likewise.
768 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
769 (struct sym_aux): Likewise.
770 (struct plugin_symtab): Likewise.
771 (struct plugin_file_info): Likewise.
772 (LTO_SECTION_PREFIX): Likewise.
773 (add_symbols): Make non-static.
774 (claimed_files): Likewise.
775 (num_claimed_files): Likewise.
776 (check): Likewise.
777 (parse_table_entry): Likewise.
778 (translate): Likewise.
779 (resolve_conflicts): Likewise.
780 (process_symtab): Move to new lto-plugin-elf.c object format dependent
781 source file.
782 (claim_file_handler): Likewise, and make non-static.
783 (onload): Call new onload_format_checks function.
784 * lto-plugin.h: New file.
785 (LTO_SECTION_PREFIX): Move here.
786 (struct sym_aux): Likewise.
787 (struct plugin_symtab): Likewise.
788 (struct plugin_file_info): Likewise.
789 (claim_file_handler): Add new function prototype.
790 (onload_format_checks): Likewise.
791 (check): Declare extern.
792 (translate): Likewise.
793 (parse_table_entry): Likewise.
794 (resolve_conflicts): Likewise.
795 (add_symbols): Likewise.
796 (claimed_files): Likewise.
797 (num_claimed_files): Likewise.
798 * lto-plugin-elf.c (process_symtab): Move here.
799 (claim_file_handler): Likewise, and make non-static.
800 (onload_format_checks): New function factored out from onload.
801 * lto-plugin-coff.c (claim_file_handler): New function stub.
802 (onload_format_checks): Likewise.
803
804 2010-08-05 Andi Kleen <ak@linux.intel.com>
805
806 * lto-plugin.c: Include <hashtab.h>
807 (sym_aux): Add next_conflict field to save conflict chains.
808 (plugin_file_info): Add conflicts symtab.
809 (parse_table_entry): Initialize aux->next_conflict.
810 (process_symtab): Increment found.
811 (dump_symtab): Add.
812 (finish_conflict_resolution): Add.
813 (free_symtab): Add.
814 (write_resolution): Remove symbols loop and move into
815 dump_symtab. Call dump_symtab for main symbol and conflicts table.
816 Call free_symtab to free conflicts table.
817 (SWAP): Add.
818 (eq_sym): Add.
819 (hash_sym): Add.
820 (symbol_strength): Add.
821 (resolve_conflicts): Add.
822 (claim_file_handler): Add n variable. Check return value of
823 process_symtab. Call resolve_conflicts.
824
825 2010-07-27 Andi Kleen <ak@linux.intel.com>
826
827 * lto-plugin.c (translate): Remove debug fprintf.
828
829 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
830
831 PR bootstrap/45042
832 * lto-plugin.c (translate): Cast to unsigned long.
833
834 2010-07-23 Andi Kleen <ak@linux.intel.com>
835
836 PR lto/44992
837 * lto-plugin.c (sym_aux): Add.
838 (plugin_symtab): Remove slots. Add aux and id.
839 (parse_table_entry): Change to use aux instead of slots.
840 (LTO_SECTION_PREFIX): Add.
841 (translate): Improve buffer allocation. Change to append
842 symbols to existing out buffer.
843 (get_section): Remove.
844 (process_symtab): Add.
845 (free_2): Free symtab->aux.
846 (write_resolution): Handle aux instead of slots.
847 Print sub id to resolution file.
848 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
849 calls with call to process_symtab.
850
851 2010-07-22 Richard Guenther <rguenther@suse.de>
852
853 * Makefile.am: New copy_lto_plugin rule to install the plugin
854 into ../gcc.
855 * Makefile.in: Regenerated.
856
857 2010-05-21 Richard Guenther <rguenther@suse.de>
858
859 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
860
861 2010-05-07 Richard Guenther <rguenther@suse.de>
862
863 * lto-plugin.c (free_2): Do not free resolution_file.
864 (write_resolution): Check that we were passed a resolution file.
865 (all_symbols_read_handler): Adjust.
866 (cleanup_handler): Do not remove the resolution file.
867 (process_option): Handle -fresolution=.
868
869 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
870
871 PR other/43620
872 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
873 * Makefile.in: Regenerate.
874
875 2010-04-23 Richard Guenther <rguenther@suse.de>
876
877 PR lto/41550
878 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
879 (translate): Likewise.
880 (all_symbols_read_handler): Likewise.
881 (claim_file_handler): Likewise.
882 (process_option): Likewise.
883 (add_output_files): Likewise. Remove filename length limit.
884
885 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
886
887 * Makefile.in: Regenerate.
888 * aclocal.m4: Regenerate.
889
890 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
891
892 PR lto/43336
893 * lto-plugin.c (cleanup_handler): Delete temporary output files.
894
895 2010-01-11 Richard Guenther <rguenther@suse.de>
896
897 PR lto/41569
898 * Makefile.am: Disable dependencies.
899 * Makefile.in: Regenerated.
900
901 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
902
903 PR lto/42520
904 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
905 if -v is passed.
906
907 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
908
909 PR bootstrap/42306
910 * configure: Regenerated.
911 * Makefile.in: Likewise.
912
913 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
914
915 PR bootstrap/42096
916 * lto-plugin.c (claim_file_handler): Print offsets in hex.
917
918 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
919
920 * lto-plugin.c (write_resolution): Assume resolution_file is set.
921 Print the symbol name.
922 (all_symbols_read_handler): Create a resolution file.
923 Pass it to gcc.
924 (cleanup_handler): Remove the resolution file.
925 (process_option): Drop the -resolution option.
926
927 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
928
929 * lto-plugin.c (temp_obj_dir_name): Remove.
930 (arguments_file_name): New.
931 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
932 (exec_lto_wrapper): Create arguments file with make_temp_file.
933 (cleanup_handler): Don't remove the temporary directory. Remove the
934 arguments file.
935 (onload): Don't create the temporary directory.
936
937 2009-11-04 Richard Guenther <rguenther@suse.de>
938 Rafael Avila de Espindola <espindola@google.com>
939
940 * lto-plugin.c (plugin_file_info): Remove temp field.
941 (cleanup_handler): Don't delete temporary objects.
942 (claim_file_handler): Don't create temporary objects.
943
944 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
945
946 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
947
948 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
949
950 PR41871
951 * lto-plugin.c (claim_file_handler): Close files that we created.
952
953 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
954
955 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
956 LDPL_ERROR
957
958 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
959
960 PR lto/41652
961 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
962 * configure: Regenerate.
963
964 2009-10-26 Richard Guenther <rguenther@suse.de>
965
966 * configure.ac: Use AM_MAINTAINER_MODE.
967 * acinclude.m4: Remove.
968 * configure: Re-generate.
969 * Makefile.in: Likewise.
970 * aclocal.m4: Likewise.
971
972 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
973
974 PR40790
975 * configure: Regenerate.
976 * configure.ac: Add AC_TYPE_UINT64_T.
977
978 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
979
980 * lto-plugin.c (message): New variable.
981 (check): New function.
982 (parse_table_entry, translate, write_resolution,add_output_files,
983 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
984 assert.
985 (cleanup_handler): Use check instead of assert. Remove the arguments
986 file if it exists.
987
988 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
989
990 * lto-plugin.c (resolution_file): New.
991 (free_1): Update comment.
992 (free_2): Free resolution_file.
993 (write_resolution): Write resolution to specified file. Use the
994 syms array from the symbol table.
995 (all_symbols_read_handler): Delay call to free_1 past call to
996 write_resolution.
997 (process_option): Add a -resolution option.
998
999 2009-10-13 Richard Guenther <rguenther@suse.de>
1000
1001 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
1002 correct libiberty.
1003 * Makefile.in: Regenerated.
1004
1005 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
1006
1007 * lto-plugin.c (add_input_library): New.
1008 (all_symbols_read_handler): Use add_input_library for items that
1009 start with -l.
1010 (process_option): Fit in 80 columns.
1011 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
1012
1013 2009-10-02 Diego Novillo <dnovillo@google.com>
1014
1015 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1016 and -D_FILE_OFFSET_BITS=64.
1017 * configure.ac: Add AC_SYS_LARGEFILE.
1018 * configure: Regenerate.
1019 * Makefile.in: Regenerate.
1020 * lto-plugin.c: Fix copyright boilerplate.
1021
1022 2009-10-02 Diego Novillo <dnovillo@google.com>
1023
1024 * Makefile.am (ACLOCAL_AMFLAGS): Define.
1025 * aclocal.m4: Regenerate with aclocal-2.64
1026 * acinclude.m4: Remove.
1027 * Makefile.in: Regenerate with automake-1.11
1028 * configure.ac (AC_PREREQ): Update to 2.64.
1029 * configure: Regenerate.
1030
1031 2009-10-02 Diego Novillo <dnovillo@google.com>
1032
1033 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1034 and -D_FILE_OFFSET_BITS=64.
1035 * configure.ac: Add AC_SYS_LARGEFILE.
1036 * configure: Regenerate.
1037 * Makefile.in: Regenerate.
1038 * lto-plugin.c: Fix copyright boilerplate.
1039
1040 2009-10-02 Diego Novillo <dnovillo@google.com>
1041
1042 * Makefile.am (ACLOCAL_AMFLAGS): Define.
1043 * aclocal.m4: Regenerate with aclocal-2.64
1044 * acinclude.m4: Remove.
1045 * Makefile.in: Regenerate with automake-1.11
1046 * configure.ac (AC_PREREQ): Update to 2.64.
1047 * configure: Regenerate.
1048
1049 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
1050
1051 * Makefile.am (liblto_plugin_la_SOURCES): Remove
1052 $(top_srcdir)/../gcc/lto/common.c
1053 * Makefile.in: Regenerate.
1054
1055 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
1056
1057 * lto-plugin.c (pass_through_items): New.
1058 (num_pass_through_items): New.
1059 (all_symbols_read_handler): Update to use the -pass-through option.
1060 (process_option): Replace -libgcc with -pass-through.
1061
1062 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
1063
1064 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
1065 register_cleanup to be set.
1066
1067 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
1068
1069 * Makefile.am: Remove all reference to ltosymtab.
1070 * Makefile.in: Regenerate.
1071 * lto-symtab.c: Remove.
1072
1073 2009-05-21 Diego Novillo <dnovillo@google.com>
1074
1075 * configure.ac: Remove call to AC_CHECK_GELF.
1076 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
1077 * acinclude.m4: Do not include ../config/libelf.m4
1078 * Makefile.am (LIBELFLIBS): Define.
1079 (LIBELFINC): Define.
1080 (AM_CPPFLAGS): Add $(LIBELFINC).
1081 (ltosymtab_LDADD): Add $(LIBELFLIBS).
1082 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
1083 * lto-plugin.c: Always include <gelf.h>
1084 * lto-symtab.c: Likewise.
1085 * configure: Regenerate.
1086 * Makefile.in: Regenerate.
1087
1088 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
1089
1090 * lto-plugin.c (libgcc_filename): New.
1091 (all_symbols_read_handler): Pass libgcc to the linker.
1092 (all_symbols_read_handler): Parse -libgcc
1093
1094 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
1095
1096 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
1097 * Makefile.in: Regenerate.
1098 * lto-plugin.c (add_output_files): Argument is now a FILE.
1099 (exec_lto_wrapper): Use writeargv and pex.
1100
1101 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1102
1103 Revert:
1104 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1105 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1106
1107
1108 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1109
1110 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1111
1112 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
1113
1114 * lto-plugin.c: Include libiberty.h.
1115 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
1116 snprintf.
1117
1118 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
1119
1120 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
1121 file to lto-wrapper.
1122
1123 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
1124
1125 * lto-plugin.c (plugin_file_info): Remove fd and elf.
1126 (parse_table_entry): strdup entry->name and entry->comdat_key.
1127 (free_1): Free name and comdat_key. Don't close the file. Don't call
1128 elf_end.
1129 (claim_file_handler): Always call elf_end.
1130
1131 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
1132
1133 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
1134 -D_FILE_OFFSET_BITS=64
1135 * Makefile.in: Regenerate
1136
1137 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
1138
1139 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
1140 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
1141 * Makefile.in: Regenerate.
1142 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
1143 * configure: Regenerate.
1144 * configure.ac: Add AC_SUBST(target_noncanonical).
1145
1146 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1147
1148 * lto-plugin.c: Include stdbool.h.
1149 (debug, nop): Declare as bool.
1150
1151 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1152
1153 * lto-plugin.c (nop): New.
1154 (use_original_files): New.
1155 (all_symbols_read_handler): Call use_original_files if nop is true.
1156 (process_option): Parse the -nop option.
1157
1158 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1159
1160 * lto-plugin.c (debug): New.
1161 (exec_lto_wrapper): Print argv if debug is true.
1162 (process_option): Process the -debug command line option.
1163
1164 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
1165
1166 * lto-plugin.c (process_option): The argument is now a single option,
1167 not a space separated list.
1168
1169 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
1170
1171 * lto-plugin.c: Include sys/types.h and sys/wait.h
1172 (output_files, num_output_files, lto_wrapper_argv,
1173 lto_wrapper_num_args): New.
1174 (free_2): Free output_files.
1175 (write_resolution): Disable.
1176 (add_output_files): New.
1177 (exec_lto_wrapper): New.
1178 (all_symbols_read_handler): Run lto-wrapper.
1179 (claim_file_handler): Free lto_file.name and call elf_end.
1180 (process_option): New.
1181
1182 2008-11-26 Rafael Espindola <espindola@google.com>
1183
1184 * lto-plugin.c (add_input_file): New.
1185 (get_section): Return NULL if get_section fails.
1186 (write_resolution): New.
1187 (all_symbols_read_handler): Call add_input_file.
1188 (claim_file_handler): Unlink the correct file.
1189 (onload): Record add_input_file.
1190
1191 2008-09-23 Rafael Espindola <espindola@google.com>
1192
1193 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
1194 Update the location of common.c.
1195 * Makefile.in: Regenerate.
1196 * common.c: Moved to gcc/lto.
1197 * common.h: Moved to gcc/lto.
1198 * lto-plugin.c: Update the location of common.h.
1199 * lto-symtab.c: Update the location of common.h.
1200
1201 2008-09-23 Rafael Espindola <espindola@google.com>
1202
1203 * common.c: Include common.h.
1204 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
1205 sizes.
1206 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
1207 explicit sizes.
1208
1209 2008-09-23 Rafael Espindola <espindola@google.com>
1210
1211 * lto-plugin.c (plugin_file_info): Add temp.
1212 (cleanup_handler): Only delete temporary files.
1213 (claim_file_handler): Initialize lto_file.temp.
1214
1215 2008-09-23 Rafael Espindola <espindola@google.com>
1216
1217 * plugin-api.h: Moved to include.
1218
1219 2008-09-23 Rafael Espindola <espindola@google.com>
1220
1221 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1222 format.
1223
1224 2008-09-22 Rafael Espindola <espindola@google.com>
1225
1226 * plugin-api.h: Copy from binutils' cvs.
1227
1228 2008-09-22 Rafael Espindola <espindola@google.com>
1229
1230 * lto-symtab.c (get_symbols, add_symbols): Update signature.
1231 * plugin-api.h: Copy from binutils' cvs.
1232
1233 2008-09-22 Rafael Espindola <espindola@google.com>
1234
1235 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1236 Make extern
1237
1238 2008-09-10 Rafael Espindola <espindola@google.com>
1239
1240 * lto-plugin.c (onload): add missing break statements and asserts.
1241 * lto-symtab.c (claim_file_handler): Make it static.
1242 (all_symbols_read_handler): Make it static.
1243 (all_file_handles): Make it static.
1244 (num_file_handles): Make it static.
1245 (register_claim_file): Make it static.
1246 (register_object): Indent properly.
1247
1248 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1249
1250 * Makefile.am (ltosymtab_LDADD): Add -lelf.
1251 * Makefiel.in: Regenerate.
1252 * lto-plugin.c: Include ar.h.
1253 (claim_file_handler): Handle file->offset != 0.
1254 * lto-symtab.c: Include gelf.h.
1255 (all_file_handles): Change type.
1256 (register_object): New.
1257 (register_file): Add support for archives.
1258 (resolve): Update to new type of all_file_handles.
1259 (print): Update to new type of all_file_handles.
1260 (free_all): Update to new type of all_file_handles.
1261 (main): Update to new type of all_file_handles.
1262
1263 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1264
1265 * lto-plugin.c (get_string_table): Remove.
1266 (get_section): Use elf_strptr instead of get_string_table.
1267
1268 2008-09-08 Doug Kwan <dougkwan@google.com>
1269
1270 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1271 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1272
1273 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
1274
1275 * Makefile.am (ltosymtab_SOURCES): add common.c.
1276 (ltosymtab_CFLAGS): New.
1277 (liblto_plugin_la_SOURCES): Add common.c.
1278 * Makefile.in: Regenerate.
1279 * common.c: New.
1280 * common.h: New.
1281 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1282 (plugin_symtab): New.
1283 (plugin_file_info): New.
1284 (register_all_symbols_read): New.
1285 (get_symbols): New.
1286 (claimed_files): New.
1287 (num_claimed_files): New.
1288 (translate): Don't drop the slot number.
1289 (free_1): New.
1290 (free_2): New.
1291 (all_symbols_read_handler): New.
1292 (claim_file_handler): Record every claimed file.
1293 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1294 LDPT_GET_SYMBOLS.
1295 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1296 (current_file_handle): Remove.
1297 (ld_plugin_all_symbols_read_handler): New.
1298 (plugin_handle): New.
1299 (file_handle): New.
1300 (all_file_handles): New.
1301 (num_file_handles): New.
1302 (get_symbols): New.
1303 (register_all_symbols_read): New.
1304 (add_symbols): Don't print the symbols, just record them.
1305 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1306 LDPT_GET_SYMBOLS.
1307 (load_plugin): Use plugin_handle.
1308 (register_file): Add the file handle to all_file_handles.
1309 (resolve): New.
1310 (print): New.
1311 (unload_plugin): New.
1312 (free_all): New.
1313 (main): Call all_symbols_read_handler and free resources.
1314
1315 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1316
1317 * Makefile.am (AM_CFLAGS): New.
1318 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1319 (lib_LTLIBRARIES): New.
1320 (liblto_plugin_la_SOURCES): New.
1321 (liblto_plugin_la_LIBADD): New.
1322 * Makefile.in: Regenerate.
1323 * acinclude.m4: Don't include ../config/acx.m4 and
1324 ../config/no-executables.m4.
1325 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1326 ../libtool.m4.
1327 * aclocal.m4: Regenerate.
1328 * configure: Regenerate.
1329 * configure.ac: Use AM_PROG_LIBTOOL.
1330 * lto-plugin.c: New.
1331 * lto-symtab.c: Rewrite to use the plugin.
1332 * plugin-api.h: New.
1333
1334 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1335
1336 * configure: Regenerate.
1337 * configure.ac: Use AC_CHECK_GELF.
1338 * lto-symtab.c: Include gelf.h.
1339 (get_string_table): Use size independent API.
1340 (printTable): Use lld to print 64 bit integers.
1341
1342 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1343
1344 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1345 entry->visibility are valid.
1346
1347 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1348 * lto-symtab.c (table_entry): Add comdat.
1349 (parse_table_entry): Read comdat.
1350
1351 2008-08-21 Rafael Espindola <espindola@google.com>
1352
1353 * Makefile.am: New.
1354 * Makefile.in: New.
1355 * acinclude.m4: New.
1356 * aclocal.m4: New.
1357 * configure: New.
1358 * configure.ac: New.
1359 * lto-symtab.c: New.