Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/conf Use code model small for LLVM, it shou...



details:   https://anonhg.NetBSD.org/src/rev/563e21221570
branches:  trunk
changeset: 326899:563e21221570
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Feb 21 20:45:12 2014 +0000

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

diffstat:

 sys/arch/sparc64/conf/Makefile.sparc64 |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r a53dba9a1714 -r 563e21221570 sys/arch/sparc64/conf/Makefile.sparc64
--- a/sys/arch/sparc64/conf/Makefile.sparc64    Fri Feb 21 20:44:03 2014 +0000
+++ b/sys/arch/sparc64/conf/Makefile.sparc64    Fri Feb 21 20:45:12 2014 +0000
@@ -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



Home | Main Index | Thread Index | Old Index