Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Greg Lindahl <lindahl@cs.virginia.edu>
To: axp-list@redhat.com
Subject: Re: g77 problems
Date: Tue, 1 Sep 1998 21:27:06 -0400 (EDT)	[thread overview]
Message-ID: <199809020127.VAA29660@adder.cs.Virginia.EDU> (raw)

> 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).

A floating point exception that comes and goes when you insert a
write(*,*) is usually a sign of an incorrect program. Different
compilers will then give different answers. Try turning on bounds
checking in fort77, etc, to try to find your bug. If you are
overwriting memory, writing an integer value into a floating point
variable sometimes produces a denormalized number, which results in
a crash on the alpha.

On the other hand, you may be really generating a denorm. In that
case compiling with g77 -mieee may be the fix. But in that case fort77
should also be showing a floating exception.

-- g


             reply	other threads:[~1998-09-02  1:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-02  1:27 Greg Lindahl [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-09-03 21:08 g77 problems Greg Lindahl
1998-09-01 10:56 Dr P. Caleb Dhanasekaran
1998-09-02  1:48 ` Michal Jaegermann
1998-09-02  4:23 ` Wes Bauske
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
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