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