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