Module Name:    src
Committed By:   joerg
Date:           Fri Feb 21 20:45:12 UTC 2014

Modified Files:
        src/sys/arch/sparc64/conf: Makefile.sparc64

Log Message:
Use code model small for LLVM, it should be equivalent to GCC's medlow.


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/sys/arch/sparc64/conf/Makefile.sparc64

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/sparc64/conf/Makefile.sparc64
diff -u src/sys/arch/sparc64/conf/Makefile.sparc64:1.73 src/sys/arch/sparc64/conf/Makefile.sparc64:1.74
--- src/sys/arch/sparc64/conf/Makefile.sparc64:1.73	Tue Mar 19 19:59:40 2013
+++ src/sys/arch/sparc64/conf/Makefile.sparc64	Fri Feb 21 20:45:12 2014
@@ -1,4 +1,4 @@
-# 	$NetBSD: Makefile.sparc64,v 1.73 2013/03/19 19:59:40 christos Exp $
+# 	$NetBSD: Makefile.sparc64,v 1.74 2014/02/21 20:45:12 joerg Exp $
 
 #=========================================================================
 #
@@ -59,10 +59,12 @@ CPPFLAGS+=	-D_LP64 -Wa,-Av9a
 AFLAGS+=	-Wa,-Av9a
 .if defined(PROF)
 # Profiling is only supported in the medium low memory model.
-CFLAGS+=	-mcmodel=medlow
+CFLAGS+=	${${ACTIVE_CC} == "gcc":? -mcmodel=medlow :}
+CFLAGS+=	${${ACTIVE_CC} == "clang":? -mcmodel=small :}
 .else
 # Since the kernel resides in the lower 32 bits, use medium low for now anyway.
-CFLAGS+=	-mcmodel=medlow
+CFLAGS+=	${${ACTIVE_CC} == "gcc":? -mcmodel=medlow :}
+CFLAGS+=	${${ACTIVE_CC} == "clang":? -mcmodel=small :}
 .endif
 .else
 # 32-bit kernels

Reply via email to