From owner-freebsd-alpha Wed Oct 2 5:39:40 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 304DB37B401; Wed, 2 Oct 2002 05:39:39 -0700 (PDT) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D02243E42; Wed, 2 Oct 2002 05:39:38 -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 IAA04797; Wed, 2 Oct 2002 08:39:37 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g92Cd7V41991; Wed, 2 Oct 2002 08:39:07 -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 Message-ID: <15770.59627.562216.206461@grasshopper.cs.duke.edu> Date: Wed, 2 Oct 2002 08:39:07 -0400 (EDT) To: Peter Jeremy Cc: Andrew Gallatin , Archie Cobbs , freebsd-alpha@FreeBSD.ORG Subject: Re: alpha/43567: strtod() core dumps In-Reply-To: <20021002055904.GG495@gsmx07.alcatel.com.au> References: <200210012021.g91KL1Ec032894@beast.freebsd.org> <15770.1923.354337.452249@grasshopper.cs.duke.edu> <20021002055904.GG495@gsmx07.alcatel.com.au> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Peter Jeremy writes: > On 2002-Oct-01 16:37:23 -0400, Andrew Gallatin wrote: > >Can you try rebuilding libc with -miee? > > > >Eg: > > > >.if ${MACHINE_ARCH} == "alpha" > >CFLAGS += -mieee > >.endif > > > > > >I think that should probably go into bsd.lib.mk > > > >People might complain becase that slows down fp operations, but if > >people care about performance, they should really be using the compaq > >libm anyhow. > > I'd like to see us build 2 FP libraries, one '-mieee' and one without, > with the "compiler" selecting the appropriate library based on the > presence of -mieee during linking - which is what Compaq CC does. > This gives you a choice of fast and dodgy or slow and correct. Patches? > In any case, strtod("5e-304", NULL) should always return 5e-304, it > shouldn't give an exception unless the user has specifically asked for > inexact exceptions. All I know is that building libc with -mieee fixes a simlar problem when building the gcc port (java build writes some header fiels and crashes on an fp exception in some string function. -mieee fixes it right up). Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message