Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/conf Apparantly clang doesn't like -mno-80387...
details: https://anonhg.NetBSD.org/src/rev/79b90a4753c3
branches: trunk
changeset: 326593:79b90a4753c3
user: dsl <dsl%NetBSD.org@localhost>
date: Wed Feb 05 23:10:41 2014 +0000
description:
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.
diffstat:
sys/arch/amd64/conf/Makefile.amd64 | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r 802474f965df -r 79b90a4753c3 sys/arch/amd64/conf/Makefile.amd64
--- a/sys/arch/amd64/conf/Makefile.amd64 Wed Feb 05 19:09:06 2014 +0000
+++ b/sys/arch/amd64/conf/Makefile.amd64 Wed Feb 05 23:10:41 2014 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index