From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 25162 invoked from network); 8 Mar 1999 22:07:57 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Mar 1999 22:07:57 -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 RAA22439 for ; Mon, 8 Mar 1999 17:01:49 -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 OAA04498 for ; Mon, 8 Mar 1999 14:58:04 -0700 Sender: dave@as.arizona.edu Message-ID: <36E447EB.41C6@as.arizona.edu> Date: Mon, 08 Mar 1999 14:58:03 -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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I agree; it is a compiler bug. Phillip Ezolt wrote: > > Well, > If it's broken, let's fix it. How does the complier tell the library > that the code was compiled with -mieee? What isn't it doing the right > thing, and what exactly IS the right thing? > > In an ideal world: > > 1) program compiled with -mieee > Slow, but can handle denorms correctly. > > 2) program compiled without -mieee. > Fast, but rounds to zero on small numbers. > > To get rid of the FPEs associated with denorms, we can either > 1) Never Generate them > 2) Once generated, handle them with kid gloves. > > libffm, and libcplm does the first. > > It seems that libm does the second, assuming gcc/egcs will generate codes to > handle the denorms. If this is really the way to go, it looks like a compiler > bug. > > Comments? > > --Phil > > Digital/Compaq: High Performance Servers/Benchmark Performance Engineering > Phillip.Ezolt@compaq.com ezolt@perf.zko.dec.com > > On Mon, 8 Mar 1999, Greg Lindahl wrote: > > > > Isn't that what -mieee is supposed to do? > > > > Yes. But today the library ignores -mieee; libm always returns denorms > > and libcpml and libffm never return denorms. Whoops. > > > > -- g > > > > -- > > To unsubscribe: send e-mail to axp-list-request@redhat.com with > > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > > > > > > > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com -- David Arnett (520) 621-9587 fax: (520) 621-1532 Regents Professor, Steward Observatory, University of Arizona, Tucson AZ 85721, USA