Source-Changes-HG archive

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

[src/trunk]: src/share/mk Use small code model for LLVM on SPARC64, it should...



details:   https://anonhg.NetBSD.org/src/rev/a53dba9a1714
branches:  trunk
changeset: 326898:a53dba9a1714
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Feb 21 20:44:03 2014 +0000

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

diffstat:

 share/mk/bsd.kmodule.mk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r d884e7abc2c1 -r a53dba9a1714 share/mk/bsd.kmodule.mk
--- a/share/mk/bsd.kmodule.mk   Fri Feb 21 19:05:33 2014 +0000
+++ b/share/mk/bsd.kmodule.mk   Fri Feb 21 20:44:03 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.kmodule.mk,v 1.41 2013/11/09 22:40:15 jmcneill Exp $
+#      $NetBSD: bsd.kmodule.mk,v 1.42 2014/02/21 20:44:03 joerg Exp $
 
 # We are not building this with PIE
 MKPIE=no
@@ -38,7 +38,8 @@
 
 .if ${MACHINE} == "sparc64"
 # force same memory model as rest of the kernel
-CFLAGS+=       -mcmodel=medlow
+CFLAGS+=       ${${ACTIVE_CC} == "gcc":? -mcmodel=medlow :}
+CFLAGS+=       ${${ACTIVE_CC} == "clang":? -mcmodel=small :}
 .endif
 
 # evbppc needs some special help



Home | Main Index | Thread Index | Old Index