From owner-freebsd-alpha Thu Jul 27 21:12:21 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 340D237B595 for ; Thu, 27 Jul 2000 21:12:18 -0700 (PDT) (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.9.3/8.9.3) with ESMTP id AAA08884; Fri, 28 Jul 2000 00:12:17 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id AAA71328; Fri, 28 Jul 2000 00:12:17 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 28 Jul 2000 00:12:16 -0400 (EDT) To: Mark Abene Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: floating point troubles... In-Reply-To: <20000708052236.D22774@radicalmedia.com> References: <20000708040526.C22774@radicalmedia.com> <20000708052236.D22774@radicalmedia.com> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14721.506.302306.465457@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The problem is that libm is not being built with -mieee Try the patch below & rebuild your libm. Index: lib/msun/Makefile =================================================================== RCS file: /home/ncvs/src/lib/msun/Makefile,v retrieving revision 1.23 diff -u -r1.23 Makefile --- lib/msun/Makefile 1999/08/28 00:06:05 1.23 +++ lib/msun/Makefile 2000/07/28 03:57:21 @@ -45,11 +45,7 @@ .PATH: ${.CURDIR)/alpha ARCH= alpha ARCH_SRCS = s_copysign.S s_copysignf.S -# XXX Comment from NetBSD/Alpha: -# XXX LINT SIGFPEs in e_exp.c's strtod(). FP underflow/denorm software -# handling is broken (doesn't exist!) on the Alpha port. -# Stock gcc 2.7.2.1 doesn't understand these options. -#CFLAGS += -mtrap-precision=i -mfp-trap-mode=su +CFLAGS += -mtrap-precision=i -mfp-trap-mode=su .elif ${MACHINE_ARCH} == "i386" ARCH= i387 ARCH_PREFIX= ${ARCH}_ Even though it will produce slower code, I think we should be using this by default. Opinions? Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message