From owner-freebsd-alpha Tue Oct 1 22:59:48 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 A24A437B401; Tue, 1 Oct 2002 22:59:47 -0700 (PDT) Received: from alcanet.com.au (mail2.alcanet.com.au [203.62.196.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3B2243E65; Tue, 1 Oct 2002 22:59:45 -0700 (PDT) (envelope-from peter.jeremy@alcatel.com.au) Received: from sydsmtp01.alcatel.com.au (IDENT:root@localhost.localdomain [127.0.0.1]) by alcanet.com.au (8.12.4/8.12.4/Alcanet1.3) with ESMTP id g925x6uA018846; Wed, 2 Oct 2002 15:59:07 +1000 Received: from gsmx07.alcatel.com.au ([139.188.20.247]) by sydsmtp01.alcatel.com.au (Lotus Domino Release 5.0.11) with ESMTP id 2002100215590451:9792 ; Wed, 2 Oct 2002 15:59:04 +1000 Received: from gsmx07.alcatel.com.au (localhost [127.0.0.1]) by gsmx07.alcatel.com.au (8.12.5/8.12.5) with ESMTP id g925x42t057912; Wed, 2 Oct 2002 15:59:04 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.12.5/8.12.5/Submit) id g925x4a3057911; Wed, 2 Oct 2002 15:59:04 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Date: Wed, 2 Oct 2002 15:59:04 +1000 From: Peter Jeremy To: Andrew Gallatin Cc: Archie Cobbs , freebsd-alpha@FreeBSD.ORG Subject: Re: alpha/43567: strtod() core dumps Message-ID: <20021002055904.GG495@gsmx07.alcatel.com.au> Mail-Followup-To: Andrew Gallatin , Archie Cobbs , freebsd-alpha@FreeBSD.ORG References: <200210012021.g91KL1Ec032894@beast.freebsd.org> <15770.1923.354337.452249@grasshopper.cs.duke.edu> Mime-Version: 1.0 In-Reply-To: <15770.1923.354337.452249@grasshopper.cs.duke.edu> User-Agent: Mutt/1.4i X-MIMETrack: Itemize by SMTP Server on SYDSMTP01/AlcatelAustralia(Release 5.0.11 |July 24, 2002) at 02/10/2002 03:59:04 PM, Serialize by Router on SYDSMTP01/AlcatelAustralia(Release 5.0.11 |July 24, 2002) at 02/10/2002 03:59:07 PM, Serialize complete at 02/10/2002 03:59:07 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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. 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. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message