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