summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-02-27 23:02:22 +0000
committerjake <jake@FreeBSD.org>2003-02-27 23:02:22 +0000
commit558920f554f288fd1ea80ec76ccb31a5527926e4 (patch)
tree05631efad8bfbc46dd8764131ef59acbe04de133 /share/mk
parent872cb31bbade3eec324d9cb1ae0afb5b4ab4aa6d (diff)
downloadFreeBSD-src-558920f554f288fd1ea80ec76ccb31a5527926e4.zip
FreeBSD-src-558920f554f288fd1ea80ec76ccb31a5527926e4.tar.gz
- Removed various cruft from before we had a hosted toolchain (!).
- Moved special compiler flags to bsd.kern.mk so they get used for modules too.
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.kern.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/mk/bsd.kern.mk b/share/mk/bsd.kern.mk
index 214ef1a..602fab4 100644
--- a/share/mk/bsd.kern.mk
+++ b/share/mk/bsd.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