From owner-freebsd-ppc@FreeBSD.ORG Fri Dec 5 13:14:20 2003 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C43616A4CE for ; Fri, 5 Dec 2003 13:14:20 -0800 (PST) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id E631F43FCB for ; Fri, 5 Dec 2003 13:14:18 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.10/8.12.10) with ESMTP id hB5LEHqt013137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 5 Dec 2003 16:14:18 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id hB5LECCh009303; Fri, 5 Dec 2003 16:14:12 -0500 (EST) (envelope-from gallatin) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16336.62756.56554.414294@grasshopper.cs.duke.edu> Date: Fri, 5 Dec 2003 16:14:12 -0500 (EST) To: freebsd-ppc@freebsd.org X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Subject: -msoft-float? -finline-limit=15000 ? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2003 21:14:20 -0000 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. #