1 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4 * lto-plugin.c (struct plugin_offload_file): New.
5 (offload_files): Change type.
6 (offload_files_last, offload_files_last_obj): New.
7 (offload_files_last_lto): New.
8 (free_2): Adjust accordingly.
9 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
10 Don't call free_1 for offload_files. Write names of object files with
11 offloading to the temporary file. Add new option to lto_arg_ptr.
12 (claim_file_handler): Don't claim file if it contains offload sections
13 without LTO sections. If it contains offload sections, add to the list.
15 2016-01-15 Martin Liska <mliska@suse.cz>
17 * lto-plugin.c (all_symbols_read_handler): Assign default
18 value to a string variable.
20 2015-11-25 Jan Hubicka <jh@suse.cz>
23 * lto-plugin.c (linker_output, linker_output_set): New statics.
24 (all_symbols_read_handler): Add -flinker-output option.
25 (onload): Record linker_output info.
27 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
29 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
30 * configure: Regenerate.
33 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35 * Makefile.am: Drop 'by automake version' from top-level comment.
36 * Makefile.in: Regenerated with automake-1.11.6.
37 * aclocal.m4: Likewise.
38 * configure: Likewise.
40 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
42 * lto-plugin.c (release_input_file): Removed.
43 (claim_file_handler): Don't call release_input_file.
44 (onload): Don't set release_input_file.
46 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
48 * lto-plugin.c (claim_file_handler): Pass handle to
51 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
53 * lto-plugin.c (claim_file_handler): Call release_input_file only
56 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
58 * lto-plugin.c (claim_file_handler): Call release_input_file only
61 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
64 * lto-plugin.c (release_input_file): New.
65 (claim_file_handler): Call release_input_file.
66 (onload): Set release_input_file.
68 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
70 * lto-plugin.c (offload_files, num_offload_files): New static variables.
71 (free_1): Use arguments instead of global variables.
72 (free_2): Free offload_files.
73 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
75 (claim_file_handler): Do not add file to claimed_files if it contains
76 offload sections without LTO sections. Add it to offload_files instead.
78 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
81 * configure: Regenerated.
83 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
84 Bernd Schmidt <bernds@codesourcery.com>
85 Andrey Turetskiy <andrey.turetskiy@intel.com>
86 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
88 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
89 (struct plugin_objfile): Add new field "offload".
90 (process_offload_section): New static function.
91 (claim_file_handler): Claim file if it contains offload sections.
93 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
94 Thomas Schwinge <thomas@codesourcery.com>
95 Ilya Verbin <ilya.verbin@intel.com>
96 Andrey Turetskiy <andrey.turetskiy@intel.com>
98 * Makefile.am (libexecsubdir): Tweak for the possibility of being
99 configured for offload compiler.
100 (accel_dir_suffix, real_target_noncanonical): New variables substituted
102 * Makefile.in: Regenerate.
103 * configure: Regenerate.
104 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
107 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
110 * configure: Regenerate.
112 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
115 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
116 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
118 * Makefile.in: Regenerated.
119 * configure: Likewise.
121 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
123 * configure.ac (--with-libiberty): New configure option.
124 * configure: Regenerate.
125 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
127 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
128 (liblto_plugin_la_DEPENDENCIES): Use them.
129 * Makefile.in: Regenerate.
131 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
134 * configure.ac: Check for -static-libgcc.
135 * configure: Regenerate.
137 2014-04-17 Jakub Jelinek <jakub@redhat.com>
140 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
141 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
142 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
143 over ../libiberty/pic/libiberty.a if the former exists.
144 * Makefile.in: Regenerated.
147 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
148 * Makefile.in: Regenerated.
150 2014-04-02 Richard Biener <rguenther@suse.de>
152 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
153 is set in COLLECT_GCC_OPTIONS.
155 2014-03-28 Richard Biener <rguenther@suse.de>
157 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
159 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
161 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
163 * configure: Regenerate.
164 * Makefile.am (AM_LDFLAGS): New variable.
165 (liblto_plugin_la_LDFLAGS): Add it.
166 * Makefile.in: Regenerate.
168 2013-09-20 Alan Modra <amodra@gmail.com>
170 * configure: Regenerate.
172 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
174 * configure: Regenerated.
176 2012-05-29 Joseph Myers <joseph@codesourcery.com>
178 * lto-plugin.c: Fix typo.
180 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
182 * configure: Regenerated.
184 2012-02-22 Kai Tietz <ktietz@redhat.com>
187 * lto-plugin.c (PRI_LL): New macro.
188 (dump_symtab): Use PRI_LL instead of ll in print.
189 (process_symtab): Use PRI_LL instead of ll in scan.
191 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
193 * configure: Regenerate.
195 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
197 * configure: Regenerate.
199 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
201 * configure: Regenerate.
203 2011-10-02 Jan Hubicka <jh@suse.cz>
206 * lto-plugin.c (get_symbols_v2): New variable.
207 (write_resolution): Use V2 API when available.
208 (onload): Handle LDPT_GET_SYMBOLS_V2.
210 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
211 Andi Kleen <ak@linux.intel.com>
214 * lto-plugin.c (sym_aux): Change id to unsigned long long.
215 (plugin_symtab): Likewise.
216 (dump_symtab): Likewise.
217 (resolve_conflicts): Likewise.
218 (process_symtab): Likewise.
220 2011-08-10 Richard Guenther <rguenther@suse.de>
224 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
225 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
226 * configure: Regenerate.
227 * Makefile.in: Likewise.
228 * aclocal.m4: Likewise.
230 2011-04-20 Jim Meyering <meyering@redhat.com>
232 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
234 2011-04-05 Richard Guenther <rguenther@suse.de>
237 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
239 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
241 * Makefile.in: Regenerate.
242 * aclocal.m4: Regenerate.
243 * configure: Regenerate.
245 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
247 * Makefile.am (all-local): Rename from 'all'.
248 * Makefile.in: Regenerate.
250 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
253 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
254 (liblto_plugin_la_LDFLAGS): Add -module.
255 (copy_lto_plugin): Renamed to...
256 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
258 * Makefile.in: Rebuild.
260 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
263 * Makefile.am (Wc): New helper for encoding -Wc,.
264 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
265 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
266 * Makefile.in: Regenerated.
268 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
272 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
275 * Makefile.am (Wl): New helper for encoding -Wl,.
276 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
277 * Makefile.in: Regenerated.
279 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
282 * Makefile.am (Wl): New helper for encoding -Wl,.
283 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
284 * Makefile.in: Regenerated.
286 2011-01-25 Ian Lance Taylor <iant@google.com>
288 * lto-plugin.c (gold_version): New static variable.
289 (all_symbols_read_handler): Don't check pass_through_items if
290 using gold 1.11 or later.
291 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
293 2011-01-12 Richard Guenther <rguenther@suse.de>
296 * lto-plugin.c (parse_table_entry): Use memcpy to access
299 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
301 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
302 * Makefile.in: Regenerate.
304 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
308 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
310 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
311 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
312 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
313 * Makefile.in: Regenerate.
315 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
319 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
320 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
321 * configure: Regenerate.
322 * config.h.in: Likewise.
324 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
328 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
329 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
330 override -bindir setting.
331 * aclocal.m4: Regenerate.
332 * configure: Regenerate.
333 * Makefile.in: Regenerate.
335 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
337 * config.h.in: Regenerated.
338 * configure: Regenerated.
339 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
340 * lto-plugin.c (WIFEXITED): Define default.
341 (WEXITSTATUS): Likeiwse.
343 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
345 * config.h.in: Regenerated.
346 * configure: Regenerated.
347 * Makefile.in: Regenerated.
348 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
349 * lto-plugin.c: Include sys/wait.h conditionally.
350 * aclocal.m4: Regenerated.
352 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
354 * lto-plugin.c (add_output_files): Fix memory leak.
356 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
360 * configure.ac: Add AC_TYPE_INT64_T test.
361 * config.h.in: Regenerate.
362 * configure: Likewise.
363 * lto-plugin.c (debug): Use char not bool.
365 (check_1): Rename from check, and use int not bool for gate argument.
366 (check): Macro wrapper for the above to coerce gate argument into
367 boolean-valued integer in case it has pointer type.
368 (parse_table_entry): Use 0 not false.
369 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
370 into two 32-bit parts and printing as hex ints.
372 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
375 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
377 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
380 * lto-plugin.h: Delete.
381 * lto-plugin-elf.c: Likewise.
382 * lto-plugin-coff.c: Likewise.
383 * configure.ac: Don't use libelf, don't source config.gcc.
384 (LIBELFLIBS): Delete.
386 (LTO_FORMAT): Delete.
387 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
388 (config.h): Add AC_CONFIG_HEADERS directive.
389 * Makefile.am (LIBELFLIBS): Delete.
391 (LTO_FORMAT): Delete.
393 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
394 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
395 any object-format-specific source file in the link.
396 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
397 * config.h.in: Generate.
398 * configure: Regenerate.
399 * Makefile.in: Likewise.
400 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
401 (LTO_SEGMENT_NAME): New definition.
402 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
403 (LTO_SECTION_PREFIX_LEN): New definition.
404 (struct sym_aux): Struct definition moved here from lto-plugin.h.
405 (struct plugin_symtab): Likewise.
406 (struct plugin_objfile): Likewise.
407 (struct plugin_objfile): New struct def.
408 (enum symbol_style): New enum type.
409 (add_symbols): Make static.
410 (claimed_files): Likewise.
411 (num_claimed_files): Likewise.
412 (sym_style): New global.
413 (check): Make static.
414 (parse_table_entry): Likewise. Respect sym_style when extracting
415 symbol from symtab entry.
416 (translate): Make static.
417 (resolve_conflicts): Likewise.
418 (process_symtab): New function, per-section callback version of
419 old object-format-specific handling from deleted lto-plugin-elf.c.
420 (claim_file_handler): Convert ELF-specific version from deleted
421 lto-plugin-elf.c to simple_object interface and move here.
422 (process_options): Allow new '-sym-style=' option.
423 (onload): Don't call deleted onload_format_checks hook.
425 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
427 * lto-plugin.c (dump_symtab): Correct printf argument type.
428 (finish_conflict_resolution): Initialize resolution.
430 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
433 * configure.ac: Add AC_CANONICAL_SYSTEM.
434 * configure: Regenerated.
436 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
438 * configure.ac: Source config.gcc to determine lto_binary_reader.
439 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
440 * Makefile.am (LTO_FORMAT): Import.
441 (liblto_plugin_la_SOURCES): Add object format dependent module
442 defined by LTO_FORMAT.
443 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
444 and work around libtool warning.
445 * configure: Regenerate.
446 * Makefile.in: Likewise.
447 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
448 (struct sym_aux): Likewise.
449 (struct plugin_symtab): Likewise.
450 (struct plugin_file_info): Likewise.
451 (LTO_SECTION_PREFIX): Likewise.
452 (add_symbols): Make non-static.
453 (claimed_files): Likewise.
454 (num_claimed_files): Likewise.
456 (parse_table_entry): Likewise.
457 (translate): Likewise.
458 (resolve_conflicts): Likewise.
459 (process_symtab): Move to new lto-plugin-elf.c object format dependent
461 (claim_file_handler): Likewise, and make non-static.
462 (onload): Call new onload_format_checks function.
463 * lto-plugin.h: New file.
464 (LTO_SECTION_PREFIX): Move here.
465 (struct sym_aux): Likewise.
466 (struct plugin_symtab): Likewise.
467 (struct plugin_file_info): Likewise.
468 (claim_file_handler): Add new function prototype.
469 (onload_format_checks): Likewise.
470 (check): Declare extern.
471 (translate): Likewise.
472 (parse_table_entry): Likewise.
473 (resolve_conflicts): Likewise.
474 (add_symbols): Likewise.
475 (claimed_files): Likewise.
476 (num_claimed_files): Likewise.
477 * lto-plugin-elf.c (process_symtab): Move here.
478 (claim_file_handler): Likewise, and make non-static.
479 (onload_format_checks): New function factored out from onload.
480 * lto-plugin-coff.c (claim_file_handler): New function stub.
481 (onload_format_checks): Likewise.
483 2010-08-05 Andi Kleen <ak@linux.intel.com>
485 * lto-plugin.c: Include <hashtab.h>
486 (sym_aux): Add next_conflict field to save conflict chains.
487 (plugin_file_info): Add conflicts symtab.
488 (parse_table_entry): Initialize aux->next_conflict.
489 (process_symtab): Increment found.
491 (finish_conflict_resolution): Add.
493 (write_resolution): Remove symbols loop and move into
494 dump_symtab. Call dump_symtab for main symbol and conflicts table.
495 Call free_symtab to free conflicts table.
499 (symbol_strength): Add.
500 (resolve_conflicts): Add.
501 (claim_file_handler): Add n variable. Check return value of
502 process_symtab. Call resolve_conflicts.
504 2010-07-27 Andi Kleen <ak@linux.intel.com>
506 * lto-plugin.c (translate): Remove debug fprintf.
508 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
511 * lto-plugin.c (translate): Cast to unsigned long.
513 2010-07-23 Andi Kleen <ak@linux.intel.com>
516 * lto-plugin.c (sym_aux): Add.
517 (plugin_symtab): Remove slots. Add aux and id.
518 (parse_table_entry): Change to use aux instead of slots.
519 (LTO_SECTION_PREFIX): Add.
520 (translate): Improve buffer allocation. Change to append
521 symbols to existing out buffer.
522 (get_section): Remove.
523 (process_symtab): Add.
524 (free_2): Free symtab->aux.
525 (write_resolution): Handle aux instead of slots.
526 Print sub id to resolution file.
527 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
528 calls with call to process_symtab.
530 2010-07-22 Richard Guenther <rguenther@suse.de>
532 * Makefile.am: New copy_lto_plugin rule to install the plugin
534 * Makefile.in: Regenerated.
536 2010-05-21 Richard Guenther <rguenther@suse.de>
538 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
540 2010-05-07 Richard Guenther <rguenther@suse.de>
542 * lto-plugin.c (free_2): Do not free resolution_file.
543 (write_resolution): Check that we were passed a resolution file.
544 (all_symbols_read_handler): Adjust.
545 (cleanup_handler): Do not remove the resolution file.
546 (process_option): Handle -fresolution=.
548 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
551 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
552 * Makefile.in: Regenerate.
554 2010-04-23 Richard Guenther <rguenther@suse.de>
557 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
558 (translate): Likewise.
559 (all_symbols_read_handler): Likewise.
560 (claim_file_handler): Likewise.
561 (process_option): Likewise.
562 (add_output_files): Likewise. Remove filename length limit.
564 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
566 * Makefile.in: Regenerate.
567 * aclocal.m4: Regenerate.
569 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
572 * lto-plugin.c (cleanup_handler): Delete temporary output files.
574 2010-01-11 Richard Guenther <rguenther@suse.de>
577 * Makefile.am: Disable dependencies.
578 * Makefile.in: Regenerated.
580 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
583 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
586 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
589 * configure: Regenerated.
590 * Makefile.in: Likewise.
592 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
595 * lto-plugin.c (claim_file_handler): Print offsets in hex.
597 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
599 * lto-plugin.c (write_resolution): Assume resolution_file is set.
600 Print the symbol name.
601 (all_symbols_read_handler): Create a resolution file.
603 (cleanup_handler): Remove the resolution file.
604 (process_option): Drop the -resolution option.
606 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
608 * lto-plugin.c (temp_obj_dir_name): Remove.
609 (arguments_file_name): New.
610 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
611 (exec_lto_wrapper): Create arguments file with make_temp_file.
612 (cleanup_handler): Don't remove the temporary directory. Remove the
614 (onload): Don't create the temporary directory.
616 2009-11-04 Richard Guenther <rguenther@suse.de>
617 Rafael Avila de Espindola <espindola@google.com>
619 * lto-plugin.c (plugin_file_info): Remove temp field.
620 (cleanup_handler): Don't delete temporary objects.
621 (claim_file_handler): Don't create temporary objects.
623 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
625 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
627 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
630 * lto-plugin.c (claim_file_handler): Close files that we created.
632 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
634 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
637 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
640 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
641 * configure: Regenerate.
643 2009-10-26 Richard Guenther <rguenther@suse.de>
645 * configure.ac: Use AM_MAINTAINER_MODE.
646 * acinclude.m4: Remove.
647 * configure: Re-generate.
648 * Makefile.in: Likewise.
649 * aclocal.m4: Likewise.
651 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
654 * configure: Regenerate.
655 * configure.ac: Add AC_TYPE_UINT64_T.
657 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
659 * lto-plugin.c (message): New variable.
660 (check): New function.
661 (parse_table_entry, translate, write_resolution,add_output_files,
662 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
664 (cleanup_handler): Use check instead of assert. Remove the arguments
667 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
669 * lto-plugin.c (resolution_file): New.
670 (free_1): Update comment.
671 (free_2): Free resolution_file.
672 (write_resolution): Write resolution to specified file. Use the
673 syms array from the symbol table.
674 (all_symbols_read_handler): Delay call to free_1 past call to
676 (process_option): Add a -resolution option.
678 2009-10-13 Richard Guenther <rguenther@suse.de>
680 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
682 * Makefile.in: Regenerated.
684 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
686 * lto-plugin.c (add_input_library): New.
687 (all_symbols_read_handler): Use add_input_library for items that
689 (process_option): Fit in 80 columns.
690 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
692 2009-10-02 Diego Novillo <dnovillo@google.com>
694 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
695 and -D_FILE_OFFSET_BITS=64.
696 * configure.ac: Add AC_SYS_LARGEFILE.
697 * configure: Regenerate.
698 * Makefile.in: Regenerate.
699 * lto-plugin.c: Fix copyright boilerplate.
701 2009-10-02 Diego Novillo <dnovillo@google.com>
703 * Makefile.am (ACLOCAL_AMFLAGS): Define.
704 * aclocal.m4: Regenerate with aclocal-2.64
705 * acinclude.m4: Remove.
706 * Makefile.in: Regenerate with automake-1.11
707 * configure.ac (AC_PREREQ): Update to 2.64.
708 * configure: Regenerate.
710 2009-10-02 Diego Novillo <dnovillo@google.com>
712 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
713 and -D_FILE_OFFSET_BITS=64.
714 * configure.ac: Add AC_SYS_LARGEFILE.
715 * configure: Regenerate.
716 * Makefile.in: Regenerate.
717 * lto-plugin.c: Fix copyright boilerplate.
719 2009-10-02 Diego Novillo <dnovillo@google.com>
721 * Makefile.am (ACLOCAL_AMFLAGS): Define.
722 * aclocal.m4: Regenerate with aclocal-2.64
723 * acinclude.m4: Remove.
724 * Makefile.in: Regenerate with automake-1.11
725 * configure.ac (AC_PREREQ): Update to 2.64.
726 * configure: Regenerate.
728 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
730 * Makefile.am (liblto_plugin_la_SOURCES): Remove
731 $(top_srcdir)/../gcc/lto/common.c
732 * Makefile.in: Regenerate.
734 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
736 * lto-plugin.c (pass_through_items): New.
737 (num_pass_through_items): New.
738 (all_symbols_read_handler): Update to use the -pass-through option.
739 (process_option): Replace -libgcc with -pass-through.
741 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
743 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
744 register_cleanup to be set.
746 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
748 * Makefile.am: Remove all reference to ltosymtab.
749 * Makefile.in: Regenerate.
750 * lto-symtab.c: Remove.
752 2009-05-21 Diego Novillo <dnovillo@google.com>
754 * configure.ac: Remove call to AC_CHECK_GELF.
755 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
756 * acinclude.m4: Do not include ../config/libelf.m4
757 * Makefile.am (LIBELFLIBS): Define.
759 (AM_CPPFLAGS): Add $(LIBELFINC).
760 (ltosymtab_LDADD): Add $(LIBELFLIBS).
761 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
762 * lto-plugin.c: Always include <gelf.h>
763 * lto-symtab.c: Likewise.
764 * configure: Regenerate.
765 * Makefile.in: Regenerate.
767 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
769 * lto-plugin.c (libgcc_filename): New.
770 (all_symbols_read_handler): Pass libgcc to the linker.
771 (all_symbols_read_handler): Parse -libgcc
773 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
775 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
776 * Makefile.in: Regenerate.
777 * lto-plugin.c (add_output_files): Argument is now a FILE.
778 (exec_lto_wrapper): Use writeargv and pex.
780 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
783 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
784 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
787 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
789 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
791 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
793 * lto-plugin.c: Include libiberty.h.
794 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
797 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
799 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
802 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
804 * lto-plugin.c (plugin_file_info): Remove fd and elf.
805 (parse_table_entry): strdup entry->name and entry->comdat_key.
806 (free_1): Free name and comdat_key. Don't close the file. Don't call
808 (claim_file_handler): Always call elf_end.
810 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
812 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
813 -D_FILE_OFFSET_BITS=64
814 * Makefile.in: Regenerate
816 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
818 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
819 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
820 * Makefile.in: Regenerate.
821 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
822 * configure: Regenerate.
823 * configure.ac: Add AC_SUBST(target_noncanonical).
825 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
827 * lto-plugin.c: Include stdbool.h.
828 (debug, nop): Declare as bool.
830 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
832 * lto-plugin.c (nop): New.
833 (use_original_files): New.
834 (all_symbols_read_handler): Call use_original_files if nop is true.
835 (process_option): Parse the -nop option.
837 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
839 * lto-plugin.c (debug): New.
840 (exec_lto_wrapper): Print argv if debug is true.
841 (process_option): Process the -debug command line option.
843 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
845 * lto-plugin.c (process_option): The argument is now a single option,
846 not a space separated list.
848 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
850 * lto-plugin.c: Include sys/types.h and sys/wait.h
851 (output_files, num_output_files, lto_wrapper_argv,
852 lto_wrapper_num_args): New.
853 (free_2): Free output_files.
854 (write_resolution): Disable.
855 (add_output_files): New.
856 (exec_lto_wrapper): New.
857 (all_symbols_read_handler): Run lto-wrapper.
858 (claim_file_handler): Free lto_file.name and call elf_end.
859 (process_option): New.
861 2008-11-26 Rafael Espindola <espindola@google.com>
863 * lto-plugin.c (add_input_file): New.
864 (get_section): Return NULL if get_section fails.
865 (write_resolution): New.
866 (all_symbols_read_handler): Call add_input_file.
867 (claim_file_handler): Unlink the correct file.
868 (onload): Record add_input_file.
870 2008-09-23 Rafael Espindola <espindola@google.com>
872 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
873 Update the location of common.c.
874 * Makefile.in: Regenerate.
875 * common.c: Moved to gcc/lto.
876 * common.h: Moved to gcc/lto.
877 * lto-plugin.c: Update the location of common.h.
878 * lto-symtab.c: Update the location of common.h.
880 2008-09-23 Rafael Espindola <espindola@google.com>
882 * common.c: Include common.h.
883 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
885 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
888 2008-09-23 Rafael Espindola <espindola@google.com>
890 * lto-plugin.c (plugin_file_info): Add temp.
891 (cleanup_handler): Only delete temporary files.
892 (claim_file_handler): Initialize lto_file.temp.
894 2008-09-23 Rafael Espindola <espindola@google.com>
896 * plugin-api.h: Moved to include.
898 2008-09-23 Rafael Espindola <espindola@google.com>
900 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
903 2008-09-22 Rafael Espindola <espindola@google.com>
905 * plugin-api.h: Copy from binutils' cvs.
907 2008-09-22 Rafael Espindola <espindola@google.com>
909 * lto-symtab.c (get_symbols, add_symbols): Update signature.
910 * plugin-api.h: Copy from binutils' cvs.
912 2008-09-22 Rafael Espindola <espindola@google.com>
914 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
917 2008-09-10 Rafael Espindola <espindola@google.com>
919 * lto-plugin.c (onload): add missing break statements and asserts.
920 * lto-symtab.c (claim_file_handler): Make it static.
921 (all_symbols_read_handler): Make it static.
922 (all_file_handles): Make it static.
923 (num_file_handles): Make it static.
924 (register_claim_file): Make it static.
925 (register_object): Indent properly.
927 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
929 * Makefile.am (ltosymtab_LDADD): Add -lelf.
930 * Makefiel.in: Regenerate.
931 * lto-plugin.c: Include ar.h.
932 (claim_file_handler): Handle file->offset != 0.
933 * lto-symtab.c: Include gelf.h.
934 (all_file_handles): Change type.
935 (register_object): New.
936 (register_file): Add support for archives.
937 (resolve): Update to new type of all_file_handles.
938 (print): Update to new type of all_file_handles.
939 (free_all): Update to new type of all_file_handles.
940 (main): Update to new type of all_file_handles.
942 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
944 * lto-plugin.c (get_string_table): Remove.
945 (get_section): Use elf_strptr instead of get_string_table.
947 2008-09-08 Doug Kwan <dougkwan@google.com>
949 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
950 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
952 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
954 * Makefile.am (ltosymtab_SOURCES): add common.c.
955 (ltosymtab_CFLAGS): New.
956 (liblto_plugin_la_SOURCES): Add common.c.
957 * Makefile.in: Regenerate.
960 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
961 (plugin_symtab): New.
962 (plugin_file_info): New.
963 (register_all_symbols_read): New.
965 (claimed_files): New.
966 (num_claimed_files): New.
967 (translate): Don't drop the slot number.
970 (all_symbols_read_handler): New.
971 (claim_file_handler): Record every claimed file.
972 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
974 * lto-symtab.c: Include stdlib.h, string.h and common.h.
975 (current_file_handle): Remove.
976 (ld_plugin_all_symbols_read_handler): New.
977 (plugin_handle): New.
979 (all_file_handles): New.
980 (num_file_handles): New.
982 (register_all_symbols_read): New.
983 (add_symbols): Don't print the symbols, just record them.
984 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
986 (load_plugin): Use plugin_handle.
987 (register_file): Add the file handle to all_file_handles.
990 (unload_plugin): New.
992 (main): Call all_symbols_read_handler and free resources.
994 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
996 * Makefile.am (AM_CFLAGS): New.
997 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
998 (lib_LTLIBRARIES): New.
999 (liblto_plugin_la_SOURCES): New.
1000 (liblto_plugin_la_LIBADD): New.
1001 * Makefile.in: Regenerate.
1002 * acinclude.m4: Don't include ../config/acx.m4 and
1003 ../config/no-executables.m4.
1004 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1006 * aclocal.m4: Regenerate.
1007 * configure: Regenerate.
1008 * configure.ac: Use AM_PROG_LIBTOOL.
1009 * lto-plugin.c: New.
1010 * lto-symtab.c: Rewrite to use the plugin.
1011 * plugin-api.h: New.
1013 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1015 * configure: Regenerate.
1016 * configure.ac: Use AC_CHECK_GELF.
1017 * lto-symtab.c: Include gelf.h.
1018 (get_string_table): Use size independent API.
1019 (printTable): Use lld to print 64 bit integers.
1021 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1023 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1024 entry->visibility are valid.
1026 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1027 * lto-symtab.c (table_entry): Add comdat.
1028 (parse_table_entry): Read comdat.
1030 2008-08-21 Rafael Espindola <espindola@google.com>
1034 * acinclude.m4: New.
1037 * configure.ac: New.
1038 * lto-symtab.c: New.