From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Cc: fea@ornl.gov
Subject: Re: floating point exceptions: Linux kernel feature or bug?
Date: Sun, 3 May 1998 10:44:47 -0600 (MDT) [thread overview]
Message-ID: <199805031644.KAA19429@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <m0yW0Fx-000Jn1C@fea.rrd.ornl.gov> from "James D. Freels" at May 3, 98 11:00:45 am
>
> 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
next prev parent reply other threads:[~1998-05-03 16:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-03 15:00 floating point exceptions: Linux kernel feature or bug? James D. Freels
1998-05-03 16:44 ` Michal Jaegermann [this message]
1998-05-04 2:43 ` Craig Burley
[not found] <199805041645.LAA02957@bifur.math.ukans.edu>
1998-05-04 17:38 ` Wes Bauske
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox