summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2005-06-03 06:55:22 +0000
committerobrien <obrien@FreeBSD.org>2005-06-03 06:55:22 +0000
commit8bfc6cf98c76d16e31bf11e374d59226e628fdc2 (patch)
tree77b3fbfb6a666a26efe010b668aa379c031c6050
parenta1ccaaff09bd9d4f15c89142a2116efad5eb43a7 (diff)
downloadFreeBSD-src-8bfc6cf98c76d16e31bf11e374d59226e628fdc2.zip
FreeBSD-src-8bfc6cf98c76d16e31bf11e374d59226e628fdc2.tar.gz
Match sys/boot in ensure GCC does not use x86 FP registers in integer code.
Submitted by: Pawel Worach <pawel.worach@gmail.com>
-rw-r--r--lib/libstand/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile
index ec5f27f..69e104b 100644
--- a/lib/libstand/Makefile
+++ b/lib/libstand/Makefile
@@ -18,8 +18,9 @@ CFLAGS+= -I${.CURDIR}
.if ${MACHINE_ARCH} == "alpha"
CFLAGS+= -mno-fp-regs
.endif
-.if ${MACHINE_ARCH} == "i386"
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
CFLAGS+= -mpreferred-stack-boundary=2
+CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2
.endif
.if ${MACHINE_ARCH} == "powerpc"
CFLAGS+= -msoft-float -D_STANDALONE
OpenPOWER on IntegriCloud