svn commit: r217033 - in head: lib/libstand sys/boot/ficl
sys/boot/i386 sys/boot/pc98 sys/boot/zfs sys/conf
Dimitry Andric
dim at FreeBSD.org
Wed Jan 5 22:24:34 UTC 2011
Author: dim
Date: Wed Jan 5 22:24:33 2011
New Revision: 217033
URL: http://svn.freebsd.org/changeset/base/217033
Log:
On i386 and amd64, consistently use the following options whenever we
want to avoid using any "advanced" CPU features:
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
Modified:
head/lib/libstand/Makefile
head/sys/boot/ficl/Makefile
head/sys/boot/i386/Makefile.inc
head/sys/boot/pc98/Makefile.inc
head/sys/boot/zfs/Makefile
head/sys/conf/kern.mk
Modified: head/lib/libstand/Makefile
==============================================================================
--- head/lib/libstand/Makefile Wed Jan 5 22:15:57 2011 (r217032)
+++ head/lib/libstand/Makefile Wed Jan 5 22:24:33 2011 (r217033)
@@ -22,7 +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 -mno-sse3
+CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
.endif
.if ${MACHINE} == "pc98"
CFLAGS+= -Os
Modified: head/sys/boot/ficl/Makefile
==============================================================================
--- head/sys/boot/ficl/Makefile Wed Jan 5 22:15:57 2011 (r217032)
+++ head/sys/boot/ficl/Makefile Wed Jan 5 22:24:33 2011 (r217033)
@@ -9,7 +9,7 @@ CLEANFILES= softcore.c testmain testmain
CFLAGS+= -ffreestanding
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -mpreferred-stack-boundary=2
-CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
+CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
.endif
.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm"
CFLAGS+= -msoft-float
Modified: head/sys/boot/i386/Makefile.inc
==============================================================================
--- head/sys/boot/i386/Makefile.inc Wed Jan 5 22:15:57 2011 (r217032)
+++ head/sys/boot/i386/Makefile.inc Wed Jan 5 22:24:33 2011 (r217033)
@@ -6,7 +6,7 @@ BINDIR?= /boot
LOADER_ADDRESS?=0x200000
CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 \
- -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
+ -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
LDFLAGS+= -nostdlib
.if ${MACHINE_CPUARCH} == "amd64"
Modified: head/sys/boot/pc98/Makefile.inc
==============================================================================
--- head/sys/boot/pc98/Makefile.inc Wed Jan 5 22:15:57 2011 (r217032)
+++ head/sys/boot/pc98/Makefile.inc Wed Jan 5 22:24:33 2011 (r217033)
@@ -6,7 +6,7 @@ BINDIR?= /boot
LOADER_ADDRESS?=0x200000
CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 \
- -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 \
+ -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float \
-Os -DPC98
LDFLAGS+= -nostdlib
Modified: head/sys/boot/zfs/Makefile
==============================================================================
--- head/sys/boot/zfs/Makefile Wed Jan 5 22:15:57 2011 (r217032)
+++ head/sys/boot/zfs/Makefile Wed Jan 5 22:24:33 2011 (r217033)
@@ -13,7 +13,7 @@ CFLAGS+= -I${.CURDIR}/../../cddl/boot/zf
CFLAGS+= -ffreestanding
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -mpreferred-stack-boundary=2
-CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
+CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
.endif
.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm"
CFLAGS+= -msoft-float
Modified: head/sys/conf/kern.mk
==============================================================================
--- head/sys/conf/kern.mk Wed Jan 5 22:15:57 2011 (r217032)
+++ head/sys/conf/kern.mk Wed Jan 5 22:24:33 2011 (r217033)
@@ -33,7 +33,7 @@ CWARNFLAGS?= -Wall -Wredundant-decls -Wn
.if ${CC:T:Mclang} != "clang"
CFLAGS+= -mno-align-long-strings -mpreferred-stack-boundary=2
.endif
-CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
+CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
INLINE_LIMIT?= 8000
.endif
More information about the svn-src-head
mailing list