From owner-freebsd-alpha Sun Mar 5 8:28:33 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from gate.keisu.t.u-tokyo.ac.jp (ns06.t.u-tokyo.ac.jp [133.11.68.1]) by hub.freebsd.org (Postfix) with ESMTP id 3583237BA29; Sun, 5 Mar 2000 08:28:28 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from sylph.sat.t.u-tokyo.ac.jp (sylph.sat.t.u-tokyo.ac.jp [10.6.1.20]) by gate.keisu.t.u-tokyo.ac.jp (Postfix) with ESMTP id 6D4F93D0D; Mon, 6 Mar 2000 01:28:27 +0900 (JST) Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [10.6.1.30]) by sylph.sat.t.u-tokyo.ac.jp (Postfix) with ESMTP id 463772DAA9; Mon, 6 Mar 2000 01:28:23 +0900 (JST) Received: from ett.sat.t.u-tokyo.ac.jp by ett.sat.t.u-tokyo.ac.jp (8.9.3/sat-V0.6) id BAA04719; Mon, 6 Mar 2000 01:28:22 +0900 (JST) Date: Mon, 06 Mar 2000 01:28:21 +0900 Message-ID: From: Hidetoshi Shimokawa To: nobu@rd.isac.co.jp Cc: gnats-admin@FreeBSD.ORG, freebsd-alpha@FreeBSD.ORG Subject: Re: alpha/17032: strtod(3) floating exception In-Reply-To: In your message of "Tue, 29 Feb 2000 16:17:38 +0900" <20000229161738I.nobu@rd.isac.co.jp> References: <200002280440.UAA89573@freefall.freebsd.org> <20000229161738I.nobu@rd.isac.co.jp> User-Agent: Wanderlust/2.2.9 (Gonna Make You Sweat) SEMI/1.13.6 (Komatsu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.2 (beta19) (Shinjuku) (i386-unknown-freebsd3.2) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7:#j7i14gu$ jgR\S*&C3R/pJX wrote: > > I checked my send-pr alpha/17032 problem. > > The problem live in src/lib/libc/stdlib/strtod.c source code. > The source code assume sizeof(long)==4, then bounded value make > to be exception. FreeBSD/alpha uses strtod.c obtained from NetBSD, i.e. src/lib/libc/stdlib/netbsd_strtod.c. Try to compile netbsd_strtod.c with -mieee option and link against your sample program. It works fine here. > Well, There is need fix to mach. Then I tried import from NetBSD > source code and hacked that. It seem to work. > > Based NetBSD-current source as > $NetBSD: strtod.c,v 1.33 1999/11/26 07:39:45 msaitoh Exp $ If recent netbsd's strtod.c works without `-mieee', it must be nice. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: finger -l simokawa@sat.t.u-tokyo.ac.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message