diff options
author | obrien <obrien@FreeBSD.org> | 2005-03-15 18:43:36 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2005-03-15 18:43:36 +0000 |
commit | 8785d9930a2a876233010c60985d6af9f1aee467 (patch) | |
tree | d7394731815e7615b02056c9428e5795e4bd2106 | |
parent | a84bfd6e041715048abf573e2613d65fbb0a36a6 (diff) | |
download | FreeBSD-src-8785d9930a2a876233010c60985d6af9f1aee467.zip FreeBSD-src-8785d9930a2a876233010c60985d6af9f1aee467.tar.gz |
Ensure GCC does not use FP registers in integer code.
I think all we really need is -fno-sse2.
I really don't like cluttering up the compiler invocation,
but this bigger hammer will fix reported problems for now.
-rw-r--r-- | sys/boot/i386/Makefile.inc | 3 | ||||
-rw-r--r-- | sys/boot/i386/boot2/Makefile | 1 | ||||
-rw-r--r-- | sys/boot/i386/gptboot/Makefile | 1 | ||||
-rw-r--r-- | sys/conf/kern.mk | 3 |
4 files changed, 6 insertions, 2 deletions
diff --git a/sys/boot/i386/Makefile.inc b/sys/boot/i386/Makefile.inc index d7e4d0d..c3054b0 100644 --- a/sys/boot/i386/Makefile.inc +++ b/sys/boot/i386/Makefile.inc @@ -5,7 +5,8 @@ BINDIR?= /boot LOADER_ADDRESS?=0x200000 -CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 +CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 \ + -mno-mmx -mno-3dnow -mno-sse -mno-sse2 LDFLAGS+= -nostdlib .if ${MACHINE_ARCH} == "amd64" diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile index 4111a35..ed0ae93 100644 --- a/sys/boot/i386/boot2/Makefile +++ b/sys/boot/i386/boot2/Makefile @@ -26,6 +26,7 @@ CFLAGS= -Os \ -fno-unit-at-a-time \ -mno-align-long-strings \ -mrtd \ + -mno-mmx -mno-3dnow -mno-sse -mno-sse2 \ -D${BOOT2_UFS} \ -DFLAGS=${BOOT_BOOT1_FLAGS} \ -DSIOPRT=${BOOT_COMCONSOLE_PORT} \ diff --git a/sys/boot/i386/gptboot/Makefile b/sys/boot/i386/gptboot/Makefile index 4111a35..ed0ae93 100644 --- a/sys/boot/i386/gptboot/Makefile +++ b/sys/boot/i386/gptboot/Makefile @@ -26,6 +26,7 @@ CFLAGS= -Os \ -fno-unit-at-a-time \ -mno-align-long-strings \ -mrtd \ + -mno-mmx -mno-3dnow -mno-sse -mno-sse2 \ -D${BOOT2_UFS} \ -DFLAGS=${BOOT_BOOT1_FLAGS} \ -DSIOPRT=${BOOT_COMCONSOLE_PORT} \ diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 4f773ab..de9a540 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -28,7 +28,8 @@ CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ # cache tag lines) # .if ${MACHINE_ARCH} == "i386" && ${CC} != "icc" -CFLAGS+= -mno-align-long-strings -mpreferred-stack-boundary=2 +CFLAGS+= -mno-align-long-strings -mpreferred-stack-boundary=2 \ + -mno-mmx -mno-3dnow -mno-sse -mno-sse2 INLINE_LIMIT?= 8000 .endif |