From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4146 invoked from network); 6 Jan 1999 22:01:52 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 6 Jan 1999 22:01:52 -0000 Received: from relay1.UU.NET (relay1.UU.NET [192.48.96.5]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA03487 for ; Wed, 6 Jan 1999 16:42:38 -0500 Received: from uucp2.uu.net by relay1.UU.NET with SMTP (peer crosschecked as: uucp2.uu.net [192.48.96.82]) id QQfxas19744 for ; Wed, 6 Jan 1999 16:42:37 -0500 (EST) Received: from m10.UUCP by uucp2.uu.net with UUCP/RMAIL ; Wed, 6 Jan 1999 16:42:37 -0500 Received: from hamster by m10.lorentzian.com; Wed, 6 Jan 1999 16:27:37 -0500 Sender: johnm@lorentzian.com Message-ID: <3693D5C9.786F9302@hamster.lorentzian.com> Date: Wed, 06 Jan 1999 21:29:45 +0000 From: John Montgomery Organization: Lorentzian, Inc. X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.36 i586) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Problem with floating point exceptions Content-Type: text/plain; charset=us-ascii; name="math.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="math.txt" I'm trying to port a large Fortran program to alpha Linux using f2c/gcc. My system is a UDB running RedHat 5.1. I'm able to compile and run my code, but I'm having some strange numerical problems. I get floating point exceptions in sections of the code which evaluate exp(-x) for large positive values of x. This is normal behavior and on other platforms results in underflows, which are silently set to zero. Also, when I poke around in core dumps with gdb I find numbers with exponents less than -308, which seem like they should have overflowed already. Perhaps these somehow got unnormalized? I'd like to just have these cases underflow to zero without generating exceptions, does anyone know how to make this happen? Thanks, John Montgomery