Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/conf Sync DEFCOPTS and CFLAGS with i386 and amd...
details: https://anonhg.NetBSD.org/src/rev/9d048e70b607
branches: trunk
changeset: 330662:9d048e70b607
user: bouyer <bouyer%NetBSD.org@localhost>
date: Thu Jul 17 10:49:45 2014 +0000
description:
Sync DEFCOPTS and CFLAGS with i386 and amd64 counterparts.
Especially -fno-omit-frame-pointer
diffstat:
sys/arch/xen/conf/Makefile.xen | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 225722abaafc -r 9d048e70b607 sys/arch/xen/conf/Makefile.xen
--- a/sys/arch/xen/conf/Makefile.xen Thu Jul 17 10:46:57 2014 +0000
+++ b/sys/arch/xen/conf/Makefile.xen Thu Jul 17 10:49:45 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.xen,v 1.35 2011/12/19 14:06:17 joerg Exp $
+# $NetBSD: Makefile.xen,v 1.36 2014/07/17 10:49:45 bouyer Exp $
# NetBSD: Makefile.i386,v 1.132 2003/07/05 16:56:10 simonb Exp
# Makefile for NetBSD
@@ -38,17 +38,24 @@
##
## (2) compile settings
##
-DEFCOPTS= -O2
CPPFLAGS+= -D${XEN_BUILD}
AFLAGS+= -x assembler-with-cpp ${DBG} -D__XEN__
EXTRA_INCLUDES= -I${.CURDIR}/xen-ma
.if ${XEN_BUILD} == "amd64"
+DEFCOPTS= -O2 -fno-omit-frame-pointer
CPPFLAGS+= -Dx86_64
CFLAGS+= -mcmodel=kernel
-CFLAGS+= -mno-red-zone
+CFLAGS+= -mno-red-zone -mno-mmx -mno-sse -mno-avx
+CFLAGS+= -msoft-float
+CFLAGS+= -mno-fp-ret-in-387
.endif
+.if ${XEN_BUILD} == "i386"
+DEFCOPTS= -O2 -fno-omit-frame-pointer
+CFLAGS+= -msoft-float
+CFLAGS+= -mno-mmx -mno-sse -mno-avx
+.endif
##
## (3) libkern and compat
Home |
Main Index |
Thread Index |
Old Index