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