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