Module Name: src
Committed By: dsl
Date: Wed Feb 5 23:10:41 UTC 2014
Modified Files:
src/sys/arch/amd64/conf: Makefile.amd64
Log Message:
Apparantly clang doesn't like -mno-80387 or -mno-fp-ret-in-387
-msoft-float is equivalent to the former, the latter is probably unlikely
to stop anything not picked up elsewhere.
To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/amd64/conf/Makefile.amd64
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/amd64/conf/Makefile.amd64
diff -u src/sys/arch/amd64/conf/Makefile.amd64:1.43 src/sys/arch/amd64/conf/Makefile.amd64:1.44
--- src/sys/arch/amd64/conf/Makefile.amd64:1.43 Wed Feb 5 18:52:22 2014
+++ src/sys/arch/amd64/conf/Makefile.amd64 Wed Feb 5 23:10:41 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.amd64,v 1.43 2014/02/05 18:52:22 dsl Exp $
+# $NetBSD: Makefile.amd64,v 1.44 2014/02/05 23:10:41 dsl Exp $
# Makefile for NetBSD
#
@@ -36,10 +36,12 @@ GENASSYM_CONF= ${AMD64}/amd64/genassym.c
DEFCOPTS= -O2
CPPFLAGS+= -Damd64 -Dx86_64
CFLAGS+= -mcmodel=kernel
-# -mno-sse implies -mno-sse2 (etc) but doesn't stop avx.
+# -mno-sse implies -mno-sse2 (etc), explicitly disable avx to be extra sure
CFLAGS+= -mno-red-zone -mno-mmx -mno-sse -mno-avx
# make absolutely sure we don't get x87 registers used as well
-CFLAGS+= -mno-80387 -mno-fp-ret-in-387
+CFLAGS+= -msoft-float
+# For gcc we might need this, but other compilers barf
+# CFLAGS+= -mno-fp-ret-in-387
##
## (3) libkern and compat