summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-01-05 22:00:37 +0000
committerdim <dim@FreeBSD.org>2011-01-05 22:00:37 +0000
commitec93578a69fb0fab47697bb2d0d2dd4820c04d61 (patch)
treebf84cd21c53d28775b2fe104053b40e894136fc5
parent60ba58500e6e35071bb752fc9e00295769bc84c1 (diff)
downloadFreeBSD-src-ec93578a69fb0fab47697bb2d0d2dd4820c04d61.zip
FreeBSD-src-ec93578a69fb0fab47697bb2d0d2dd4820c04d61.tar.gz
In lib/libstand, sys/boot/ficl and sys/boot/zfs, -mno-sse3 should also
be used for amd64, not just for i386.
-rw-r--r--lib/libstand/Makefile5
-rw-r--r--sys/boot/ficl/Makefile3
-rw-r--r--sys/boot/zfs/Makefile5
3 files changed, 3 insertions, 10 deletions
diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile
index 90b47e7..cdf298b 100644
--- a/lib/libstand/Makefile
+++ b/lib/libstand/Makefile
@@ -22,10 +22,7 @@ CFLAGS+= -I${.CURDIR}
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -mpreferred-stack-boundary=2
-CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-.endif
-.if ${MACHINE_CPUARCH} == "i386"
-CFLAGS+= -mno-sse3
+CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
.endif
.if ${MACHINE} == "pc98"
CFLAGS+= -Os
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile
index 61760d0..9bb891b 100644
--- a/sys/boot/ficl/Makefile
+++ b/sys/boot/ficl/Makefile
@@ -9,10 +9,9 @@ CLEANFILES= softcore.c testmain testmain.o
CFLAGS+= -ffreestanding
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -mpreferred-stack-boundary=2
-CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2
+CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
.endif
.if ${MACHINE_CPUARCH} == "i386"
-CFLAGS+= -mno-sse3
.endif
.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm"
CFLAGS+= -msoft-float
diff --git a/sys/boot/zfs/Makefile b/sys/boot/zfs/Makefile
index 91525d7..e5d489c 100644
--- a/sys/boot/zfs/Makefile
+++ b/sys/boot/zfs/Makefile
@@ -13,10 +13,7 @@ CFLAGS+= -I${.CURDIR}/../../cddl/boot/zfs
CFLAGS+= -ffreestanding
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -mpreferred-stack-boundary=2
-CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-.endif
-.if ${MACHINE_CPUARCH} == "i386"
-CFLAGS+= -mno-sse3
+CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
.endif
.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm"
CFLAGS+= -msoft-float
OpenPOWER on IntegriCloud