From 17a304eec5ec1081e9e9169f556fc84a9645cb0f Mon Sep 17 00:00:00 2001 From: dsl Date: Wed, 5 Feb 2014 23:10:41 +0000 Subject: [PATCH] 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. --- sys/arch/amd64/conf/Makefile.amd64 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/arch/amd64/conf/Makefile.amd64 b/sys/arch/amd64/conf/Makefile.amd64 index 493f767d8df6..7aa4e6d126ba 100644 --- a/sys/arch/amd64/conf/Makefile.amd64 +++ b/sys/arch/amd64/conf/Makefile.amd64 @@ -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.cf 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