From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 14365 invoked from network); 5 Mar 1999 16:05:48 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 5 Mar 1999 16:05:48 -0000 Received: from bohr.as.Arizona.EDU (bohr.as.arizona.edu [128.196.209.66]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id LAA15993 for ; Fri, 5 Mar 1999 11:01:07 -0500 Received: from bohr (localhost [127.0.0.1]) by bohr.as.Arizona.EDU (950413.SGI.8.6.12/950213.SGI.AUTOCF) via SMTP id IAA18435 for ; Fri, 5 Mar 1999 08:57:22 -0700 Sender: dave@as.arizona.edu Message-ID: <36DFFEE1.237C@as.arizona.edu> Date: Fri, 05 Mar 1999 08:57:21 -0700 From: Dave Arnett Organization: Steward Observatory X-Mailer: Mozilla 2.01S (X11; I; IRIX64 6.2 IP26) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: SIGFPE error on exponential underflow in g77 References: <199903051311.IAA19637@adder.cs.Virginia.EDU> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit >>If you can really isolate this problem to the case when using exp, you >> don't need to go back to -mieee (which slows down your code quite a >> bit), but simply need a new math library. >No. Fortran and C use the same underlying math library. He said >that the same value did not give a SIGFPE from a C program. Thus, >the guilty party has to be the f2c/g77 glue arond the libm exp(), and >not the libm exp(). >Of course, he can easily experiment and prove this, by using one of >the alternate libraries you mention. >-- g Yeah, I really did isolate the problem; that was how I made the Fortran to C comparison (the codes were just a few lines). I have the two libraries and will test it this weekend. Assuming it goes as you (and I) expect, how do we deal with the f2c/g77 glue? Dave Arnett