1 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
3 * lto-plugin.c (claim_file_handler): Call release_input_file only
6 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
9 * lto-plugin.c (release_input_file): New.
10 (claim_file_handler): Call release_input_file.
11 (onload): Set release_input_file.
13 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
15 * lto-plugin.c (offload_files, num_offload_files): New static variables.
16 (free_1): Use arguments instead of global variables.
17 (free_2): Free offload_files.
18 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
20 (claim_file_handler): Do not add file to claimed_files if it contains
21 offload sections without LTO sections. Add it to offload_files instead.
23 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
26 * configure: Regenerated.
28 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
29 Bernd Schmidt <bernds@codesourcery.com>
30 Andrey Turetskiy <andrey.turetskiy@intel.com>
31 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
33 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
34 (struct plugin_objfile): Add new field "offload".
35 (process_offload_section): New static function.
36 (claim_file_handler): Claim file if it contains offload sections.
38 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
39 Thomas Schwinge <thomas@codesourcery.com>
40 Ilya Verbin <ilya.verbin@intel.com>
41 Andrey Turetskiy <andrey.turetskiy@intel.com>
43 * Makefile.am (libexecsubdir): Tweak for the possibility of being
44 configured for offload compiler.
45 (accel_dir_suffix, real_target_noncanonical): New variables substituted
47 * Makefile.in: Regenerate.
48 * configure: Regenerate.
49 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
52 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
55 * configure: Regenerate.
57 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
60 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
61 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
63 * Makefile.in: Regenerated.
64 * configure: Likewise.
66 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
68 * configure.ac (--with-libiberty): New configure option.
69 * configure: Regenerate.
70 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
72 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
73 (liblto_plugin_la_DEPENDENCIES): Use them.
74 * Makefile.in: Regenerate.
76 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
79 * configure.ac: Check for -static-libgcc.
80 * configure: Regenerate.
82 2014-04-17 Jakub Jelinek <jakub@redhat.com>
85 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
86 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
87 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
88 over ../libiberty/pic/libiberty.a if the former exists.
89 * Makefile.in: Regenerated.
92 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
93 * Makefile.in: Regenerated.
95 2014-04-02 Richard Biener <rguenther@suse.de>
97 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
98 is set in COLLECT_GCC_OPTIONS.
100 2014-03-28 Richard Biener <rguenther@suse.de>
102 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
104 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
106 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
108 * configure: Regenerate.
109 * Makefile.am (AM_LDFLAGS): New variable.
110 (liblto_plugin_la_LDFLAGS): Add it.
111 * Makefile.in: Regenerate.
113 2013-09-20 Alan Modra <amodra@gmail.com>
115 * configure: Regenerate.
117 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
119 * configure: Regenerated.
121 2012-05-29 Joseph Myers <joseph@codesourcery.com>
123 * lto-plugin.c: Fix typo.
125 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
127 * configure: Regenerated.
129 2012-02-22 Kai Tietz <ktietz@redhat.com>
132 * lto-plugin.c (PRI_LL): New macro.
133 (dump_symtab): Use PRI_LL instead of ll in print.
134 (process_symtab): Use PRI_LL instead of ll in scan.
136 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
138 * configure: Regenerate.
140 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
142 * configure: Regenerate.
144 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
146 * configure: Regenerate.
148 2011-10-02 Jan Hubicka <jh@suse.cz>
151 * lto-plugin.c (get_symbols_v2): New variable.
152 (write_resolution): Use V2 API when available.
153 (onload): Handle LDPT_GET_SYMBOLS_V2.
155 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
156 Andi Kleen <ak@linux.intel.com>
159 * lto-plugin.c (sym_aux): Change id to unsigned long long.
160 (plugin_symtab): Likewise.
161 (dump_symtab): Likewise.
162 (resolve_conflicts): Likewise.
163 (process_symtab): Likewise.
165 2011-08-10 Richard Guenther <rguenther@suse.de>
169 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
170 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
171 * configure: Regenerate.
172 * Makefile.in: Likewise.
173 * aclocal.m4: Likewise.
175 2011-04-20 Jim Meyering <meyering@redhat.com>
177 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
179 2011-04-05 Richard Guenther <rguenther@suse.de>
182 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
184 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
186 * Makefile.in: Regenerate.
187 * aclocal.m4: Regenerate.
188 * configure: Regenerate.
190 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
192 * Makefile.am (all-local): Rename from 'all'.
193 * Makefile.in: Regenerate.
195 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
198 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
199 (liblto_plugin_la_LDFLAGS): Add -module.
200 (copy_lto_plugin): Renamed to...
201 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
203 * Makefile.in: Rebuild.
205 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
208 * Makefile.am (Wc): New helper for encoding -Wc,.
209 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
210 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
211 * Makefile.in: Regenerated.
213 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
217 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
220 * Makefile.am (Wl): New helper for encoding -Wl,.
221 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
222 * Makefile.in: Regenerated.
224 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
227 * Makefile.am (Wl): New helper for encoding -Wl,.
228 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
229 * Makefile.in: Regenerated.
231 2011-01-25 Ian Lance Taylor <iant@google.com>
233 * lto-plugin.c (gold_version): New static variable.
234 (all_symbols_read_handler): Don't check pass_through_items if
235 using gold 1.11 or later.
236 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
238 2011-01-12 Richard Guenther <rguenther@suse.de>
241 * lto-plugin.c (parse_table_entry): Use memcpy to access
244 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
246 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
247 * Makefile.in: Regenerate.
249 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
253 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
255 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
256 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
257 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
258 * Makefile.in: Regenerate.
260 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
264 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
265 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
266 * configure: Regenerate.
267 * config.h.in: Likewise.
269 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
273 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
274 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
275 override -bindir setting.
276 * aclocal.m4: Regenerate.
277 * configure: Regenerate.
278 * Makefile.in: Regenerate.
280 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
282 * config.h.in: Regenerated.
283 * configure: Regenerated.
284 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
285 * lto-plugin.c (WIFEXITED): Define default.
286 (WEXITSTATUS): Likeiwse.
288 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
290 * config.h.in: Regenerated.
291 * configure: Regenerated.
292 * Makefile.in: Regenerated.
293 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
294 * lto-plugin.c: Include sys/wait.h conditionally.
295 * aclocal.m4: Regenerated.
297 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
299 * lto-plugin.c (add_output_files): Fix memory leak.
301 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
305 * configure.ac: Add AC_TYPE_INT64_T test.
306 * config.h.in: Regenerate.
307 * configure: Likewise.
308 * lto-plugin.c (debug): Use char not bool.
310 (check_1): Rename from check, and use int not bool for gate argument.
311 (check): Macro wrapper for the above to coerce gate argument into
312 boolean-valued integer in case it has pointer type.
313 (parse_table_entry): Use 0 not false.
314 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
315 into two 32-bit parts and printing as hex ints.
317 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
320 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
322 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
325 * lto-plugin.h: Delete.
326 * lto-plugin-elf.c: Likewise.
327 * lto-plugin-coff.c: Likewise.
328 * configure.ac: Don't use libelf, don't source config.gcc.
329 (LIBELFLIBS): Delete.
331 (LTO_FORMAT): Delete.
332 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
333 (config.h): Add AC_CONFIG_HEADERS directive.
334 * Makefile.am (LIBELFLIBS): Delete.
336 (LTO_FORMAT): Delete.
338 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
339 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
340 any object-format-specific source file in the link.
341 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
342 * config.h.in: Generate.
343 * configure: Regenerate.
344 * Makefile.in: Likewise.
345 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
346 (LTO_SEGMENT_NAME): New definition.
347 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
348 (LTO_SECTION_PREFIX_LEN): New definition.
349 (struct sym_aux): Struct definition moved here from lto-plugin.h.
350 (struct plugin_symtab): Likewise.
351 (struct plugin_objfile): Likewise.
352 (struct plugin_objfile): New struct def.
353 (enum symbol_style): New enum type.
354 (add_symbols): Make static.
355 (claimed_files): Likewise.
356 (num_claimed_files): Likewise.
357 (sym_style): New global.
358 (check): Make static.
359 (parse_table_entry): Likewise. Respect sym_style when extracting
360 symbol from symtab entry.
361 (translate): Make static.
362 (resolve_conflicts): Likewise.
363 (process_symtab): New function, per-section callback version of
364 old object-format-specific handling from deleted lto-plugin-elf.c.
365 (claim_file_handler): Convert ELF-specific version from deleted
366 lto-plugin-elf.c to simple_object interface and move here.
367 (process_options): Allow new '-sym-style=' option.
368 (onload): Don't call deleted onload_format_checks hook.
370 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
372 * lto-plugin.c (dump_symtab): Correct printf argument type.
373 (finish_conflict_resolution): Initialize resolution.
375 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
378 * configure.ac: Add AC_CANONICAL_SYSTEM.
379 * configure: Regenerated.
381 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
383 * configure.ac: Source config.gcc to determine lto_binary_reader.
384 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
385 * Makefile.am (LTO_FORMAT): Import.
386 (liblto_plugin_la_SOURCES): Add object format dependent module
387 defined by LTO_FORMAT.
388 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
389 and work around libtool warning.
390 * configure: Regenerate.
391 * Makefile.in: Likewise.
392 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
393 (struct sym_aux): Likewise.
394 (struct plugin_symtab): Likewise.
395 (struct plugin_file_info): Likewise.
396 (LTO_SECTION_PREFIX): Likewise.
397 (add_symbols): Make non-static.
398 (claimed_files): Likewise.
399 (num_claimed_files): Likewise.
401 (parse_table_entry): Likewise.
402 (translate): Likewise.
403 (resolve_conflicts): Likewise.
404 (process_symtab): Move to new lto-plugin-elf.c object format dependent
406 (claim_file_handler): Likewise, and make non-static.
407 (onload): Call new onload_format_checks function.
408 * lto-plugin.h: New file.
409 (LTO_SECTION_PREFIX): Move here.
410 (struct sym_aux): Likewise.
411 (struct plugin_symtab): Likewise.
412 (struct plugin_file_info): Likewise.
413 (claim_file_handler): Add new function prototype.
414 (onload_format_checks): Likewise.
415 (check): Declare extern.
416 (translate): Likewise.
417 (parse_table_entry): Likewise.
418 (resolve_conflicts): Likewise.
419 (add_symbols): Likewise.
420 (claimed_files): Likewise.
421 (num_claimed_files): Likewise.
422 * lto-plugin-elf.c (process_symtab): Move here.
423 (claim_file_handler): Likewise, and make non-static.
424 (onload_format_checks): New function factored out from onload.
425 * lto-plugin-coff.c (claim_file_handler): New function stub.
426 (onload_format_checks): Likewise.
428 2010-08-05 Andi Kleen <ak@linux.intel.com>
430 * lto-plugin.c: Include <hashtab.h>
431 (sym_aux): Add next_conflict field to save conflict chains.
432 (plugin_file_info): Add conflicts symtab.
433 (parse_table_entry): Initialize aux->next_conflict.
434 (process_symtab): Increment found.
436 (finish_conflict_resolution): Add.
438 (write_resolution): Remove symbols loop and move into
439 dump_symtab. Call dump_symtab for main symbol and conflicts table.
440 Call free_symtab to free conflicts table.
444 (symbol_strength): Add.
445 (resolve_conflicts): Add.
446 (claim_file_handler): Add n variable. Check return value of
447 process_symtab. Call resolve_conflicts.
449 2010-07-27 Andi Kleen <ak@linux.intel.com>
451 * lto-plugin.c (translate): Remove debug fprintf.
453 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
456 * lto-plugin.c (translate): Cast to unsigned long.
458 2010-07-23 Andi Kleen <ak@linux.intel.com>
461 * lto-plugin.c (sym_aux): Add.
462 (plugin_symtab): Remove slots. Add aux and id.
463 (parse_table_entry): Change to use aux instead of slots.
464 (LTO_SECTION_PREFIX): Add.
465 (translate): Improve buffer allocation. Change to append
466 symbols to existing out buffer.
467 (get_section): Remove.
468 (process_symtab): Add.
469 (free_2): Free symtab->aux.
470 (write_resolution): Handle aux instead of slots.
471 Print sub id to resolution file.
472 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
473 calls with call to process_symtab.
475 2010-07-22 Richard Guenther <rguenther@suse.de>
477 * Makefile.am: New copy_lto_plugin rule to install the plugin
479 * Makefile.in: Regenerated.
481 2010-05-21 Richard Guenther <rguenther@suse.de>
483 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
485 2010-05-07 Richard Guenther <rguenther@suse.de>
487 * lto-plugin.c (free_2): Do not free resolution_file.
488 (write_resolution): Check that we were passed a resolution file.
489 (all_symbols_read_handler): Adjust.
490 (cleanup_handler): Do not remove the resolution file.
491 (process_option): Handle -fresolution=.
493 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
496 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
497 * Makefile.in: Regenerate.
499 2010-04-23 Richard Guenther <rguenther@suse.de>
502 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
503 (translate): Likewise.
504 (all_symbols_read_handler): Likewise.
505 (claim_file_handler): Likewise.
506 (process_option): Likewise.
507 (add_output_files): Likewise. Remove filename length limit.
509 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
511 * Makefile.in: Regenerate.
512 * aclocal.m4: Regenerate.
514 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
517 * lto-plugin.c (cleanup_handler): Delete temporary output files.
519 2010-01-11 Richard Guenther <rguenther@suse.de>
522 * Makefile.am: Disable dependencies.
523 * Makefile.in: Regenerated.
525 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
528 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
531 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
534 * configure: Regenerated.
535 * Makefile.in: Likewise.
537 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
540 * lto-plugin.c (claim_file_handler): Print offsets in hex.
542 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
544 * lto-plugin.c (write_resolution): Assume resolution_file is set.
545 Print the symbol name.
546 (all_symbols_read_handler): Create a resolution file.
548 (cleanup_handler): Remove the resolution file.
549 (process_option): Drop the -resolution option.
551 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
553 * lto-plugin.c (temp_obj_dir_name): Remove.
554 (arguments_file_name): New.
555 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
556 (exec_lto_wrapper): Create arguments file with make_temp_file.
557 (cleanup_handler): Don't remove the temporary directory. Remove the
559 (onload): Don't create the temporary directory.
561 2009-11-04 Richard Guenther <rguenther@suse.de>
562 Rafael Avila de Espindola <espindola@google.com>
564 * lto-plugin.c (plugin_file_info): Remove temp field.
565 (cleanup_handler): Don't delete temporary objects.
566 (claim_file_handler): Don't create temporary objects.
568 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
570 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
572 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
575 * lto-plugin.c (claim_file_handler): Close files that we created.
577 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
579 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
582 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
585 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
586 * configure: Regenerate.
588 2009-10-26 Richard Guenther <rguenther@suse.de>
590 * configure.ac: Use AM_MAINTAINER_MODE.
591 * acinclude.m4: Remove.
592 * configure: Re-generate.
593 * Makefile.in: Likewise.
594 * aclocal.m4: Likewise.
596 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
599 * configure: Regenerate.
600 * configure.ac: Add AC_TYPE_UINT64_T.
602 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
604 * lto-plugin.c (message): New variable.
605 (check): New function.
606 (parse_table_entry, translate, write_resolution,add_output_files,
607 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
609 (cleanup_handler): Use check instead of assert. Remove the arguments
612 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
614 * lto-plugin.c (resolution_file): New.
615 (free_1): Update comment.
616 (free_2): Free resolution_file.
617 (write_resolution): Write resolution to specified file. Use the
618 syms array from the symbol table.
619 (all_symbols_read_handler): Delay call to free_1 past call to
621 (process_option): Add a -resolution option.
623 2009-10-13 Richard Guenther <rguenther@suse.de>
625 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
627 * Makefile.in: Regenerated.
629 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
631 * lto-plugin.c (add_input_library): New.
632 (all_symbols_read_handler): Use add_input_library for items that
634 (process_option): Fit in 80 columns.
635 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
637 2009-10-02 Diego Novillo <dnovillo@google.com>
639 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
640 and -D_FILE_OFFSET_BITS=64.
641 * configure.ac: Add AC_SYS_LARGEFILE.
642 * configure: Regenerate.
643 * Makefile.in: Regenerate.
644 * lto-plugin.c: Fix copyright boilerplate.
646 2009-10-02 Diego Novillo <dnovillo@google.com>
648 * Makefile.am (ACLOCAL_AMFLAGS): Define.
649 * aclocal.m4: Regenerate with aclocal-2.64
650 * acinclude.m4: Remove.
651 * Makefile.in: Regenerate with automake-1.11
652 * configure.ac (AC_PREREQ): Update to 2.64.
653 * configure: Regenerate.
655 2009-10-02 Diego Novillo <dnovillo@google.com>
657 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
658 and -D_FILE_OFFSET_BITS=64.
659 * configure.ac: Add AC_SYS_LARGEFILE.
660 * configure: Regenerate.
661 * Makefile.in: Regenerate.
662 * lto-plugin.c: Fix copyright boilerplate.
664 2009-10-02 Diego Novillo <dnovillo@google.com>
666 * Makefile.am (ACLOCAL_AMFLAGS): Define.
667 * aclocal.m4: Regenerate with aclocal-2.64
668 * acinclude.m4: Remove.
669 * Makefile.in: Regenerate with automake-1.11
670 * configure.ac (AC_PREREQ): Update to 2.64.
671 * configure: Regenerate.
673 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
675 * Makefile.am (liblto_plugin_la_SOURCES): Remove
676 $(top_srcdir)/../gcc/lto/common.c
677 * Makefile.in: Regenerate.
679 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
681 * lto-plugin.c (pass_through_items): New.
682 (num_pass_through_items): New.
683 (all_symbols_read_handler): Update to use the -pass-through option.
684 (process_option): Replace -libgcc with -pass-through.
686 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
688 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
689 register_cleanup to be set.
691 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
693 * Makefile.am: Remove all reference to ltosymtab.
694 * Makefile.in: Regenerate.
695 * lto-symtab.c: Remove.
697 2009-05-21 Diego Novillo <dnovillo@google.com>
699 * configure.ac: Remove call to AC_CHECK_GELF.
700 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
701 * acinclude.m4: Do not include ../config/libelf.m4
702 * Makefile.am (LIBELFLIBS): Define.
704 (AM_CPPFLAGS): Add $(LIBELFINC).
705 (ltosymtab_LDADD): Add $(LIBELFLIBS).
706 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
707 * lto-plugin.c: Always include <gelf.h>
708 * lto-symtab.c: Likewise.
709 * configure: Regenerate.
710 * Makefile.in: Regenerate.
712 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
714 * lto-plugin.c (libgcc_filename): New.
715 (all_symbols_read_handler): Pass libgcc to the linker.
716 (all_symbols_read_handler): Parse -libgcc
718 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
720 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
721 * Makefile.in: Regenerate.
722 * lto-plugin.c (add_output_files): Argument is now a FILE.
723 (exec_lto_wrapper): Use writeargv and pex.
725 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
728 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
729 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
732 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
734 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
736 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
738 * lto-plugin.c: Include libiberty.h.
739 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
742 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
744 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
747 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
749 * lto-plugin.c (plugin_file_info): Remove fd and elf.
750 (parse_table_entry): strdup entry->name and entry->comdat_key.
751 (free_1): Free name and comdat_key. Don't close the file. Don't call
753 (claim_file_handler): Always call elf_end.
755 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
757 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
758 -D_FILE_OFFSET_BITS=64
759 * Makefile.in: Regenerate
761 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
763 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
764 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
765 * Makefile.in: Regenerate.
766 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
767 * configure: Regenerate.
768 * configure.ac: Add AC_SUBST(target_noncanonical).
770 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
772 * lto-plugin.c: Include stdbool.h.
773 (debug, nop): Declare as bool.
775 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
777 * lto-plugin.c (nop): New.
778 (use_original_files): New.
779 (all_symbols_read_handler): Call use_original_files if nop is true.
780 (process_option): Parse the -nop option.
782 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
784 * lto-plugin.c (debug): New.
785 (exec_lto_wrapper): Print argv if debug is true.
786 (process_option): Process the -debug command line option.
788 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
790 * lto-plugin.c (process_option): The argument is now a single option,
791 not a space separated list.
793 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
795 * lto-plugin.c: Include sys/types.h and sys/wait.h
796 (output_files, num_output_files, lto_wrapper_argv,
797 lto_wrapper_num_args): New.
798 (free_2): Free output_files.
799 (write_resolution): Disable.
800 (add_output_files): New.
801 (exec_lto_wrapper): New.
802 (all_symbols_read_handler): Run lto-wrapper.
803 (claim_file_handler): Free lto_file.name and call elf_end.
804 (process_option): New.
806 2008-11-26 Rafael Espindola <espindola@google.com>
808 * lto-plugin.c (add_input_file): New.
809 (get_section): Return NULL if get_section fails.
810 (write_resolution): New.
811 (all_symbols_read_handler): Call add_input_file.
812 (claim_file_handler): Unlink the correct file.
813 (onload): Record add_input_file.
815 2008-09-23 Rafael Espindola <espindola@google.com>
817 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
818 Update the location of common.c.
819 * Makefile.in: Regenerate.
820 * common.c: Moved to gcc/lto.
821 * common.h: Moved to gcc/lto.
822 * lto-plugin.c: Update the location of common.h.
823 * lto-symtab.c: Update the location of common.h.
825 2008-09-23 Rafael Espindola <espindola@google.com>
827 * common.c: Include common.h.
828 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
830 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
833 2008-09-23 Rafael Espindola <espindola@google.com>
835 * lto-plugin.c (plugin_file_info): Add temp.
836 (cleanup_handler): Only delete temporary files.
837 (claim_file_handler): Initialize lto_file.temp.
839 2008-09-23 Rafael Espindola <espindola@google.com>
841 * plugin-api.h: Moved to include.
843 2008-09-23 Rafael Espindola <espindola@google.com>
845 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
848 2008-09-22 Rafael Espindola <espindola@google.com>
850 * plugin-api.h: Copy from binutils' cvs.
852 2008-09-22 Rafael Espindola <espindola@google.com>
854 * lto-symtab.c (get_symbols, add_symbols): Update signature.
855 * plugin-api.h: Copy from binutils' cvs.
857 2008-09-22 Rafael Espindola <espindola@google.com>
859 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
862 2008-09-10 Rafael Espindola <espindola@google.com>
864 * lto-plugin.c (onload): add missing break statements and asserts.
865 * lto-symtab.c (claim_file_handler): Make it static.
866 (all_symbols_read_handler): Make it static.
867 (all_file_handles): Make it static.
868 (num_file_handles): Make it static.
869 (register_claim_file): Make it static.
870 (register_object): Indent properly.
872 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
874 * Makefile.am (ltosymtab_LDADD): Add -lelf.
875 * Makefiel.in: Regenerate.
876 * lto-plugin.c: Include ar.h.
877 (claim_file_handler): Handle file->offset != 0.
878 * lto-symtab.c: Include gelf.h.
879 (all_file_handles): Change type.
880 (register_object): New.
881 (register_file): Add support for archives.
882 (resolve): Update to new type of all_file_handles.
883 (print): Update to new type of all_file_handles.
884 (free_all): Update to new type of all_file_handles.
885 (main): Update to new type of all_file_handles.
887 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
889 * lto-plugin.c (get_string_table): Remove.
890 (get_section): Use elf_strptr instead of get_string_table.
892 2008-09-08 Doug Kwan <dougkwan@google.com>
894 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
895 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
897 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
899 * Makefile.am (ltosymtab_SOURCES): add common.c.
900 (ltosymtab_CFLAGS): New.
901 (liblto_plugin_la_SOURCES): Add common.c.
902 * Makefile.in: Regenerate.
905 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
906 (plugin_symtab): New.
907 (plugin_file_info): New.
908 (register_all_symbols_read): New.
910 (claimed_files): New.
911 (num_claimed_files): New.
912 (translate): Don't drop the slot number.
915 (all_symbols_read_handler): New.
916 (claim_file_handler): Record every claimed file.
917 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
919 * lto-symtab.c: Include stdlib.h, string.h and common.h.
920 (current_file_handle): Remove.
921 (ld_plugin_all_symbols_read_handler): New.
922 (plugin_handle): New.
924 (all_file_handles): New.
925 (num_file_handles): New.
927 (register_all_symbols_read): New.
928 (add_symbols): Don't print the symbols, just record them.
929 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
931 (load_plugin): Use plugin_handle.
932 (register_file): Add the file handle to all_file_handles.
935 (unload_plugin): New.
937 (main): Call all_symbols_read_handler and free resources.
939 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
941 * Makefile.am (AM_CFLAGS): New.
942 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
943 (lib_LTLIBRARIES): New.
944 (liblto_plugin_la_SOURCES): New.
945 (liblto_plugin_la_LIBADD): New.
946 * Makefile.in: Regenerate.
947 * acinclude.m4: Don't include ../config/acx.m4 and
948 ../config/no-executables.m4.
949 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
951 * aclocal.m4: Regenerate.
952 * configure: Regenerate.
953 * configure.ac: Use AM_PROG_LIBTOOL.
955 * lto-symtab.c: Rewrite to use the plugin.
958 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
960 * configure: Regenerate.
961 * configure.ac: Use AC_CHECK_GELF.
962 * lto-symtab.c: Include gelf.h.
963 (get_string_table): Use size independent API.
964 (printTable): Use lld to print 64 bit integers.
966 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
968 * lto-symtab.c (parse_table_entry): Assert entry->kind and
969 entry->visibility are valid.
971 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
972 * lto-symtab.c (table_entry): Add comdat.
973 (parse_table_entry): Read comdat.
975 2008-08-21 Rafael Espindola <espindola@google.com>