summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-02-28 06:49:59 +0000
committerjake <jake@FreeBSD.org>2003-02-28 06:49:59 +0000
commit1bd61761b96f10168a4e7ac47c783ad25eeaebe3 (patch)
tree42468c90b3bd29a3da2337d7abaabc3800838427 /sys/conf
parent5058936161ec6f5a740e5e93b1c014c2a506408d (diff)
downloadFreeBSD-src-1bd61761b96f10168a4e7ac47c783ad25eeaebe3.zip
FreeBSD-src-1bd61761b96f10168a4e7ac47c783ad25eeaebe3.tar.gz
Sync with bsd.kern.mk.
Reminded by: bde
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/kern.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 214ef1a..602fab4 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -44,6 +44,15 @@ CFLAGS+= -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata
.endif
#
+# For sparc64 we want medlow code model, and we tell gcc to use floating
+# point emulation. This avoids using floating point registers for integer
+# operations which it has a tendency to do.
+#
+.if ${MACHINE_ARCH} == "sparc64"
+CFLAGS+= -mcmodel=medlow -msoft-float
+.endif
+
+#
# GCC 3.0 and above like to do certain optimizations based on the
# assumption that the program is linked against libc. Stop this.
#
OpenPOWER on IntegriCloud