Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2002 08:39:07 -0400 (EDT)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Peter Jeremy <peter.jeremy@alcatel.com.au>
Cc:        Andrew Gallatin <gallatin@cs.duke.edu>, Archie Cobbs <archie@FreeBSD.ORG>, freebsd-alpha@FreeBSD.ORG
Subject:   Re: alpha/43567: strtod() core dumps
Message-ID:  <15770.59627.562216.206461@grasshopper.cs.duke.edu>
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>

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

Peter Jeremy writes:
 > On 2002-Oct-01 16:37:23 -0400, Andrew Gallatin <gallatin@cs.duke.edu> 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




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