Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Dec 2003 16:14:12 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        freebsd-ppc@freebsd.org
Subject:   -msoft-float?  -finline-limit=15000 ?
Message-ID:  <16336.62756.56554.414294@grasshopper.cs.duke.edu>

next in thread | raw e-mail | index | archive | help


I assume we want something like the following?

Drew



Index: kern.mk
===================================================================
RCS file: /home/ncvs/src/sys/conf/kern.mk,v
retrieving revision 1.37
diff -u -r1.37 kern.mk
--- kern.mk	4 Nov 2003 23:29:17 -0000	1.37
+++ kern.mk	5 Dec 2003 21:09:49 -0000
@@ -57,6 +57,16 @@
 .endif
 
 #
+# For powerpc 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} == "powerpc"
+CFLAGS+=	-msoft-float
+INLINE_LIMIT?=	15000
+.endif
+
+#
 # For AMD64, use a medium model for now.  We'll switch to "kernel"
 # once pmap is ready.  Be excessively careful to not generate FPU code.
 #



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16336.62756.56554.414294>