gcc/gcc/config
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
..
alpha alpha.c (alpha_adjust_cost): Remove set but not used insn_type variable. 2010-04-14 17:23:05 +02:00
arc * config/arc/arc.c (arc_trampoline_init): Fix typo. 2009-09-23 15:17:24 +00:00
arm varasm.c (IN_NAMED_SECTION): Remove guard. 2010-04-26 16:39:24 +00:00
avr Add missing comma. 2010-04-21 14:14:55 +00:00
bfin Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
cris defaults.h (CONSTANT_ADDRESS_P): Provide a default definition. 2009-11-04 11:06:36 +00:00
crx * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove. 2009-09-22 08:12:31 -07:00
fr30 defaults.h (CONSTANT_ADDRESS_P): Provide a default definition. 2009-11-04 11:06:36 +00:00
frv defaults.h (CONSTANT_ADDRESS_P): Provide a default definition. 2009-11-04 11:06:36 +00:00
h8300 h8300.c (print_operand): Modify case 'V' and case 'W' print operands for HI mode. 2010-04-16 16:56:21 -06:00
i386 re PR lto/42776 (LTO doesn't work on non-ELF platforms.) 2010-04-27 02:22:40 +00:00
ia64 partial fix, make all 'e' class regs fixed PR rtl-optimization/43520 2010-04-19 18:16:59 -07:00
iq2000 iq2000.c (iq2000_function_value): Make static, add new 'outgoing' argument. 2009-11-15 00:07:23 +03:00
lm32 [multiple changes] 2010-04-02 04:59:07 +02:00
m32c defaults.h (CONSTANT_ADDRESS_P): Provide a default definition. 2009-11-04 11:06:36 +00:00
m32r m32r.c (m32r_is_insn): Return false for debugging insns. 2009-09-28 12:15:42 +00:00
m68hc11 defaults.h (CONSTANT_ADDRESS_P): Provide a default definition. 2009-11-04 11:06:36 +00:00
m68k re PR target/43294 (Error: junk at end of line, first unrecognized character is `@') 2010-03-09 21:57:36 +00:00
mcore mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. 2009-09-22 08:13:53 -07:00
mep Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
mips Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
mmix mmix.md ("*divdi3_nonknuth", [...]): Add missing earlyclobber for second alternative. 2010-04-27 00:55:30 +00:00
mn10300 Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
moxie Fix moxie tramponline alignment problem 2010-02-03 11:36:30 +00:00
pa pa.c (emit_move_sequence): Remove use of deleted variable flag_argument_noalias. 2010-04-12 20:01:41 +00:00
pdp11 defaults.h (CONSTANT_ADDRESS_P): Provide a default definition. 2009-11-04 11:06:36 +00:00
picochip picochip.c (picochip_rtx_costs): Use correct function template. 2010-04-09 19:25:03 +00:00
rs6000 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS. 2010-04-22 14:20:35 -04:00
rx Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
s390 re PR target/43635 (ICE in s390_emit_call, at config/s390/s390.c:9484) 2010-04-20 07:51:14 +00:00
score defaults.h (CONSTANT_ADDRESS_P): Provide a default definition. 2009-11-04 11:06:36 +00:00
sh re PR target/43744 (SH: Error: pcrel too far) 2010-04-22 22:02:55 +00:00
soft-fp Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
sparc sol2-gld.h: Remove SPARC reference. 2010-04-09 17:02:52 +00:00
spu Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
stormy16 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko. 2010-04-22 14:28:16 +00:00
v850 v850.c (function_arg): Fix handling of zero-length function arguments. 2009-11-24 15:38:39 +00:00
vax linux.h (TARGET_OS_CPP_BUILTINS): Don't define __pic__ or __PIC__. 2009-11-04 00:07:24 +00:00
vms vms-cc.c: Deleted. 2009-07-30 00:15:35 +00:00
xtensa tm.texi (STATIC_CHAIN, [...]): Remove. 2009-09-23 15:24:42 -07:00
README
darwin-64.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
darwin-c.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
darwin-crt2.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
darwin-crt3.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
darwin-driver.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
darwin-f.c
darwin-ppc-ldouble-patch.def ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
darwin-protos.h re PR java/43504 (many libjava testsuite regressions on x86_64-apple-darwin10) 2010-03-24 16:07:51 +00:00
darwin-sections.def ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
darwin.c re PR bootstrap/43684 (multiple 'set but not used' errors.) 2010-04-09 13:34:33 +00:00
darwin.h Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
darwin.opt
darwin9.h Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
darwin10.h re PR c++/41313 (r150553 causes g++.dg/tree-prof/partition1.C compilation and execution test failures on *-apple-darwin*) 2009-10-21 15:07:59 +00:00
dbx.h
dbxcoff.h
dbxelf.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
dfp-bit.c re PR c/41049 (conversion from integer to decimal float loses trailing zeros) 2009-09-17 17:07:24 +00:00
dfp-bit.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
divmod.c ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
elfos.h elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object type if available. 2009-08-18 13:01:36 -04:00
fixed-bit.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
fixed-bit.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
flat.h
floatunsidf.c
floatunsisf.c
floatunsitf.c
floatunsixf.c
fp-bit.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
fp-bit.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
freebsd-nthr.h
freebsd-spec.h unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME. 2009-09-22 16:28:26 +00:00
freebsd-stdint.h freebsd-stdint.h: New file. 2009-06-01 03:03:37 +00:00
freebsd.h freebsd.h: Update comment on types. 2009-09-18 22:15:58 +00:00
glibc-stdint.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
gnu.h re PR target/28102 (GNU Hurd bootstrap error: 'OPTION_GLIBC' undeclared) 2008-11-14 00:28:46 +01:00
gofast.h
host-darwin.c
host-darwin.h
host-hpux.c
host-linux.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
host-solaris.c re PR pch/14940 (PCH largefile test fails on various platforms) 2010-03-01 12:44:33 +00:00
hpux-stdint.h config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and add hpux-stdint.h to tm_file. 2009-04-28 15:20:07 +00:00
interix.h
interix3.h
kfreebsd-gnu.h
knetbsd-gnu.h
kopensolaris-gnu.h configure.ac: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu). 2009-01-29 18:48:41 +00:00
libgcc-glibc.ver ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
linux.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
linux.opt linux.opt: Put mglibc ahead of muclibc. 2009-06-22 16:49:03 +00:00
lynx.h
lynx.opt
memcmp.c
memcpy.c
memmove.c
memset.c
netbsd-aout.h
netbsd-elf.h
netbsd.h re PR target/41246 (should "sorry" when regparm=3 and nested functions are encountered) 2009-09-22 08:11:37 -07:00
newlib-stdint.h re PR c/448 (<stdint.h>-related issues (C99 issues)) 2009-03-31 21:30:31 +01:00
openbsd-libpthread.h config.gcc: Update OpenBSD targets. 2009-09-27 13:20:23 +00:00
openbsd-oldgas.h
openbsd-stdint.h openbsd-stdint.h: Change to reflect what c_common_nodes_and_builtins expects. 2009-11-08 22:19:45 +00:00
openbsd.h config.gcc: Update OpenBSD targets. 2009-09-27 13:20:23 +00:00
print-sysroot-suffix.sh config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file. 2009-04-07 07:10:43 +00:00
rtems.h Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
sol2-10.h
sol2-c.c Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
sol2-gld.h configure.ac (plugin -rdynamic test): Log result. 2010-04-09 17:35:18 +00:00
sol2-protos.h sol2.c: Include output.h. 2010-03-31 09:19:20 +00:00
sol2.c sysv4.h (PUSHSECTION_FORMAT): Remove undef. 2010-03-31 10:42:56 +00:00
sol2.h configure.ac (plugin -rdynamic test): Log result. 2010-04-09 17:35:18 +00:00
svr3.h
svr4.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
sync.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
t-darwin Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
t-dfprules
t-freebsd unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME. 2009-09-22 16:28:26 +00:00
t-freebsd-thread
t-gnu
t-libc-ok
t-libgcc-pic
t-libunwind ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
t-libunwind-elf ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
t-linux ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
t-lynx ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
t-netbsd
t-openbsd
t-openbsd-thread
t-rtems
t-slibgcc-darwin
t-slibgcc-elf-ver t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, [...]): New variables. 2009-09-09 20:39:52 +02:00
t-slibgcc-libgcc t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, [...]): New variables. 2009-09-09 20:39:52 +02:00
t-slibgcc-nolc-override
t-slibgcc-sld ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
t-sol2 sol2.c: Include output.h. 2010-03-31 09:19:20 +00:00
t-svr4 inclhack.def (aix_syswait, [...]): Remove. 2009-03-28 06:51:09 +00:00
t-sysroot-suffix config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file. 2009-04-07 07:10:43 +00:00
t-vxworks Makefile.in (COMPILER, [...]): Define. 2009-05-26 14:02:04 +00:00
tm-dwarf2.h
udivmod.c ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
udivmodsi4.c ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
usegas.h
vx-common.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
vxlib-tls.c vxlib-tls.c (active_tls_threads): Delete. 2009-04-23 10:39:24 +00:00
vxlib.c gthr-vxworks.h (struct __gthread_once_t): Add alignment and padding for PPC. 2009-04-22 10:53:53 +00:00
vxworks-dummy.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
vxworks.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
vxworks.h
vxworks.opt
vxworksae.h
x-cflags-O1 re PR bootstrap/37739 (bootstrap broken with core gcc > gcc-4.2.x) 2008-12-19 15:55:42 +01:00
x-darwin Makefile.in (COMPILER, [...]): Define. 2009-05-26 14:02:04 +00:00
x-hpux Makefile.in (COMPILER, [...]): Define. 2009-05-26 14:02:04 +00:00
x-linux Makefile.in (COMPILER, [...]): Define. 2009-05-26 14:02:04 +00:00
x-solaris Makefile.in (COMPILER, [...]): Define. 2009-05-26 14:02:04 +00:00

README

This directory contains machine-specific files for the GNU C compiler.
It has a subdirectory for each basic CPU type.
The only files in this directory itself
are some .h files that pertain to particular operating systems
and are used for more than one CPU type.