From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 18866 invoked from network); 3 May 1998 16:44:45 -0000 Received: from ellpspace.math.ualberta.ca (michal@129.128.88.19) by mail2.redhat.com with SMTP; 3 May 1998 16:44:45 -0000 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.5/8.8.5) id KAA19429; Sun, 3 May 1998 10:44:48 -0600 From: Michal Jaegermann Message-Id: <199805031644.KAA19429@ellpspace.math.ualberta.ca> Subject: Re: floating point exceptions: Linux kernel feature or bug? To: axp-list@redhat.com Date: Sun, 3 May 1998 10:44:47 -0600 (MDT) Cc: fea@ornl.gov In-Reply-To: from "James D. Freels" at May 3, 98 11:00:45 am Content-Type: text > > Thanks for any help and feel free to e-mail me directly rather than > via the newsgroups and/or mailing lists. > > test.f: > ___________________________________________________________ > program test > c > c program to test g77 on i386 and alpha > c > x=1.0 > y=0.0 > z=2.0 > > a=x/z > write(*,*)x,z,a > > b=x/y > write(*,*)x,y,b > > end > ____________________________________________________________ This program compiled on Alpha with 'g77 -O2 -mieee -o check test.f' produces the following output: 1. 2. 0.5 1. 0. Inf. g77 from egcs-1.0.2 release. Options -mieee, -mieee-with-inexact and -mieee-conformant are documented in gcc info files so one has to know, I am afraid, that g77 will accept gcc flags on the top of its own specific stuff. BTW - never call your test programs 'test' or you may be for a nasty surprise. :-) If you want to know why type, in bash, 'which test'. :-) Michal