From: "Wes Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: g77 problems
Date: Wed, 02 Sep 1998 04:23:44 +0000 [thread overview]
Message-ID: <35ECC850.7721DCED@paralleldata.com> (raw)
In-Reply-To: Pine.LNX.3.96.980901114309.450E-100000@xen48.whit.eng.cam.ac.uk
Dr P. Caleb Dhanasekaran wrote:
>
> Hi all`,
>
> I have installed RedHat 5.1 on my Alpha UX4,600Mhz PC. I have
> upgraded the compilers egcs.1.0.3 and g77-1.0.3 downloading the
> rpm files.
>
> My FORTRAN program works fine using fort77 but fails due to
> Floating Exception when I use g77 compiler. I have been debugging
> this program and when I insert a write(*,*) statement
> in one of the subroutines the programs executes fine. I used
> xxgdb to debug the program and it showed problem in cosine function
> (libm).
>
> Could anybody tell me what causes this type of Floating Exception
> problem using g77 on Alpha? Is there any fix to this? This program works
> fine on IBM Aix 4.1, HP, Silcon Graphics systems, and g77 on Intel
> platform.`
Alpha's are VERY strict with respect to arguments of FP operations.
You cannot use un-normalized numbers! One normally gets those
by indexing in an array incorrectly or used an un-initialized
stack variable. If you run your code under gdb, and look at the
arguments to the FP operation, you most likely will find a
non-FP number. Now, if you REALLY intended to do this, you can
use the flag '-mieee', I believe, to have SW trap and handle these
sorts of problems. No guarantees that it will work but others
have reported success with it.
The correct thing to do is to fix the code though. I have never
seen code nor written code where it was intended to cause this
sort of argument to be used. (I've done FORTRAN for a long
time)
One other thing. There is an off chance you hit an edge problem
in the cos() function but I thought the safe code was being
used in RH5.1. Some older libm.a routines had edge problems.
Wes
next prev parent reply other threads:[~1998-09-02 4:22 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-01 10:56 g77 problems Dr P. Caleb Dhanasekaran
1998-09-02 1:48 ` Michal Jaegermann
1998-09-02 4:23 ` Wes Bauske [this message]
1998-09-02 15:34 ` David Alan Gilbert
1998-09-03 6:23 ` Wes Bauske
1998-09-04 0:41 ` Richard Henderson
1998-09-05 19:57 ` Wes Bauske
1998-09-05 20:50 ` Richard Henderson
1998-09-06 20:22 ` Dave Gilbert
1998-09-06 21:05 ` Wes Bauske
1998-09-06 22:41 ` Richard Henderson
1998-09-06 20:28 ` Richard Hadsell
1998-09-06 20:57 ` Wes Bauske
1998-09-23 15:28 ` RedHat5.1 on UX4 Motherboard Dr P. Caleb Dhanasekaran
1998-09-23 17:00 ` furio ercolessi
1998-09-23 17:00 ` Nicholas Sallembian
1998-09-23 17:02 ` Adrian Gartland
1998-09-24 10:01 ` Armin Ollig
1998-09-24 17:16 ` Dr P. Caleb Dhanasekaran
-- strict thread matches above, loose matches on Subject: below --
1998-09-02 1:27 g77 problems Greg Lindahl
1998-09-03 21:08 Greg Lindahl
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