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.
This commit is contained in:
parent
a84bfd6e04
commit
8785d9930a
@ -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"
|
||||
|
@ -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} \
|
||||
|
@ -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} \
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user