summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2008-04-29 11:28:10 +0000
committergonzo <gonzo@FreeBSD.org>2008-04-29 11:28:10 +0000
commit687c376d267da5420fa8db9de48799d11c9b83ec (patch)
tree14f79fd4cc4c6c4825fefcd9112e3226f67fd7d6
parentc5b3e453b8bb424a849e07c8c013512c6f6e76a4 (diff)
downloadFreeBSD-src-687c376d267da5420fa8db9de48799d11c9b83ec.zip
FreeBSD-src-687c376d267da5420fa8db9de48799d11c9b83ec.tar.gz
Define INLINE_LIMIT and additional CFLAGS for mips.
Approved by: cognet (mentor)
-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 eede8c7..2b4b82c 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -85,6 +85,15 @@ INLINE_LIMIT?= 15000
.endif
#
+# For MIPS we also tell gcc to use floating point emulation and
+# disable MIPS DSP ASE Instruction set.
+#
+.if ${MACHINE_ARCH} == "mips"
+CFLAGS+= -msoft-float -mno-dsp
+INLINE_LIMIT?= 15000
+.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