Debian Codegraph @

lto-plugin/ChangeLog

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