From 1bd61761b96f10168a4e7ac47c783ad25eeaebe3 Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 28 Feb 2003 06:49:59 +0000 Subject: [PATCH] Sync with bsd.kern.mk. Reminded by: bde --- sys/conf/kern.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 214ef1a6c328..602fab487c90 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -43,6 +43,15 @@ CFLAGS+= -mno-fp-regs -ffixed-8 -Wa,-mev6 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.