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