gcc/gcc/testsuite/lib
Dave Korn 3bec79c52e re PR lto/42776 (LTO doesn't work on non-ELF platforms.)
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.

From-SVN: r158762
2010-04-27 02:22:40 +00:00
..
c-compat.exp
c-torture.exp Merge lto branch into trunk. 2009-10-03 17:10:11 -04:00
compat.exp lto.exp (lto_option_list): Rename from option_list. 2009-11-23 22:49:20 +00:00
copy-file.exp
dejapatches.exp
dg-pch.exp re PR objc/35165 (Massive failures of objc on i686-apple-darwin9) 2010-04-27 00:08:28 +00:00
file-format.exp
fortran-torture.exp
g++-dg.exp
g++.exp re PR target/41605 (Static linking of libgcc/libgfortran/libstdc++ can cause inconsistent symbol resolution.) 2009-12-22 22:11:27 +00:00
gcc-defs.exp
gcc-dg.exp libgomp.exp (libgomp_init): Add host-dependent settings for LC_ALL and LANG. 2009-11-30 23:30:57 +00:00
gcc-gdb-test.exp re PR debug/41558 (gfortran -O code excessive DW_OP_deref's) 2009-10-05 21:50:57 +02:00
gcc.exp
gcov.exp
gfortran-dg.exp
gfortran.exp libgomp.exp (libgomp_init): Add host-dependent settings for LC_ALL and LANG. 2009-11-30 23:30:57 +00:00
gnat-dg.exp re PR testsuite/32547 (gnat.dg tasking tests fail on IRIX 5.3) 2010-02-24 12:51:44 +00:00
gnat.exp gnat.exp (gnat_init): Remove GNAT_UNDER_TEST_ORIG. 2010-03-05 11:39:17 +00:00
lto.exp re PR lto/42776 (LTO doesn't work on non-ELF platforms.) 2010-04-27 02:22:40 +00:00
mike-g++.exp
mike-gcc.exp
obj-c++-dg.exp
obj-c++.exp re PR testsuite/42348 (Syntax of dg-skip-if in two obj-c++ tests) 2010-03-24 22:51:08 +00:00
objc-dg.exp
objc-torture.exp re PR objc/35165 (Massive failures of objc on i686-apple-darwin9) 2010-04-27 00:08:28 +00:00
objc.exp re PR testsuite/42348 (Syntax of dg-skip-if in two obj-c++ tests) 2010-03-24 22:51:08 +00:00
options.exp libgomp.exp (libgomp_init): Add host-dependent settings for LC_ALL and LANG. 2009-11-30 23:30:57 +00:00
plugin-support.exp re PR target/43715 (configure option --enable-plugin fails on darwin) 2010-04-26 20:33:49 +00:00
profopt.exp
prune.exp re PR c++/9335 (repeated diagnostic when maximum template depth is exceeded) 2010-04-21 02:06:27 -04:00
scanasm.exp
scandump.exp
scanipa.exp
scanrtl.exp
scantree.exp
target-libpath.exp
target-supports-dg.exp sourcebuild.texi (Test directives): Document that arguments include-opts and exclude-opts are now optional for... 2010-03-03 22:05:30 +00:00
target-supports.exp re PR tree-optimization/37027 (SLP loop vectorization missing support for reductions) 2010-04-19 09:10:45 +00:00
timeout-dg.exp
timeout.exp
torture-options.exp Merge lto branch into trunk. 2009-10-03 17:10:11 -04:00
wrapper.exp