Fri Feb 21 20:45:12 2014 UTC ()
Use code model small for LLVM, it should be equivalent to GCC's medlow.


(joerg)
diff -r1.73 -r1.74 src/sys/arch/sparc64/conf/Makefile.sparc64

cvs diff -r1.73 -r1.74 src/sys/arch/sparc64/conf/Makefile.sparc64 (expand / switch to context diff)
--- src/sys/arch/sparc64/conf/Makefile.sparc64 2013/03/19 19:59:40 1.73
+++ src/sys/arch/sparc64/conf/Makefile.sparc64 2014/02/21 20:45:12 1.74
@@ -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 @@
 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