summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2007-09-26 01:31:28 +0000
committermarcel <marcel@FreeBSD.org>2007-09-26 01:31:28 +0000
commit88e1757c2598c7d1d1d4eda427665083e0eda1d6 (patch)
treee3e3d3693ba2132aa66e5144e4804c6a40b2a3b8 /gnu
parentc2ea759143645bf844d212ae502103d41e0e1f87 (diff)
downloadFreeBSD-src-88e1757c2598c7d1d1d4eda427665083e0eda1d6.zip
FreeBSD-src-88e1757c2598c7d1d1d4eda427665083e0eda1d6.tar.gz
Force -O1 compilation when targeted for ia64. GCC 4 generates
bad code at -O2. Since this is likely caused by the low-level optimizer, testing TARGET_ARCH rather than MACHINE_ARCH should handle ia64 cross-compilation as well. With this work-around in place, we can release using the current GCC and Binutils code at the default optimization level on ia64. Approved by: re (kensmith)
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile
index 66e8e2a..7774822 100644
--- a/gnu/usr.bin/binutils/ld/Makefile
+++ b/gnu/usr.bin/binutils/ld/Makefile
@@ -4,6 +4,10 @@
.PATH: ${SRCDIR}/ld
+.if ${TARGET_ARCH} == "ia64"
+CFLAGS+= -O1
+.endif
+
PROG= ld
SCRIPTDIR= /usr/libdata/ldscripts
SRCS+= ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \
OpenPOWER on IntegriCloud