-msoft-float? -finline-limit=15000 ?

Andrew Gallatin gallatin at cs.duke.edu
Fri Dec 5 13:14:20 PST 2003



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.
 #


More information about the freebsd-ppc mailing list