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