OSDN Git Service

ChangeLog:
authordavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Apr 2010 02:22:40 +0000 (02:22 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 04:50:36 +0000 (13:50 +0900)
commit29583db10ef680e898e96c454408ff3bda2afa85
treecd64bc2b948587eaffdf56d9de6889e61dfad464
parent9944f0a951121f2b63b9084d921d9e44c0687b71
ChangeLog:

PR lto/42776
* configure.ac (--enable-lto): Refactor handling so libelf tests
are only performed inside then-clause of ACX_ELF_TARGET_IFELSE,
and allow LTO to be explicitly enabled on non-ELF platforms that
are known to support it inside else-clause.
* configure: Regenerate.

gcc/ChangeLog:

PR lto/42776
* configure.ac (gcc_cv_as_section_has_align): Set if installed
binutils supports extended .section directive needed by LTO, or
warn if older binutils found.
(LTO_BINARY_READER): New AC_SUBST'd variable.
(LTO_USE_LIBELF): Likewise.
* gcc/config.gcc (lto_binary_reader): New target-specific configure
variable.
* gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
(LTO_USE_LIBELF): Likewise.
* configure: Regenerate.

* collect2.c (is_elf): Rename from this ...
(is_elf_or_coff): ... to this, and recognize and allow i386 COFF
 object files in addition to ELF-formatted ones.
(scan_prog_file): Caller updated.  Also allow for LTO info marker
symbol to be prefixed or not by an extra underscore.

* config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
* config/i386/winnt.c: Also #include lto-streamer.h
(i386_pe_asm_named_section): Specify 1-byte section alignment for
LTO named sections.
(i386_pe_asm_output_aligned_decl_common): Add comment.
(i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.

gcc/lto/ChangeLog:

PR lto/42776
* Make-lang.in (LTO_OBJS): Use LTO_BINARY_READER instead of
hardcoding 'lto-elf.o'.
($(LTO_EXE)): Use LTO_USE_LIBELF instead of hardcoding '-lelf'.

* lto-coff.h: New file.
* lto-coff.c: Likewise.

gcc/testsuite/ChangeLog:

PR lto/42776
* lib/lto.exp (lto_prune_vis_warns): New function.
(lto-link-and-maybe-run): Call it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158762 138bc75d-0d04-0410-961f-82ee72b054a4
13 files changed:
ChangeLog
configure.ac
gcc/Makefile.in
gcc/collect2.c
gcc/config.gcc
gcc/configure
gcc/configure.ac
gcc/lto/ChangeLog
gcc/lto/Make-lang.in
gcc/lto/lto-coff.c
gcc/lto/lto-coff.h
gcc/testsuite/ChangeLog
gcc/testsuite/lib/lto.exp