From: "Ken Whaley" <mynamewithunderscore@yahoo.com>
Subject: Re: Floating point exception
Date: Mon, 25 Jun 2001 14:45:15 -0700 [thread overview]
Message-ID: <RnOZ6.51083$yz5.1937722@e420r-sjo2.usenetserver.com> (raw)
In-Reply-To: slrn9h76ok.c20.bertrand@perceval.cnam.fr
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1352 bytes --]
You may want to add:
-mfp-trap-mode=su -mtrap-precision=p,
and use the cpml library available from compaq's web site,
an exception-free (they handle NaN, denorm, etc. explicitly)
math library optimized for the alpha. It's a drop-in replacement
for -lm (replace with -lcpml).
"BERTRAND Jo�l" <bertrand@perceval.cnam.fr> wrote in message
news:slrn9h76ok.c20.bertrand@perceval.cnam.fr...
> Le 29 May 2001 10:11:15 GMT
> BERTRAND Jo�l <bertrand@perceval.cnam.fr> �crivait :
> > Good morning,
> >
> > I have some troubles with a program and gcc (egcs 2.95.2 19991024).
> >I try to compile a program written in C-ansi and Fortran77. I use
> >some complex arithmetic iwritten in Fortran (such as exp, cos, sin...).
> >The program works fine on Intel processor, but on my ev6, I
> >can make some operations such complex addition, multiplication, but
> >when I call the exp, cos, sin, tan, my program crashes with a
> >floating point exception. I don't understand...
> >
> > My makefile is very long, so I can not post it. The options
> >of compilation are :
> >
> >g77 -c -O2 -g -mcpu=ev6 -mieee -fforce-addr -fstrength-reduce
> >-fcaller-saves -fexpensive-optimizations -fmove-all-movables
> >-freduce-all-givs -Wall -fno-f2c
> >
> > I use a RedHat 6.2 with a kernel 2.2.18.
>
> I have retried without any optimizations, and it works...
>
> JKB
>
next prev parent reply other threads:[~2001-06-25 21:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-29 10:11 Floating point exception BERTRAND Joël
2001-05-29 12:50 ` BERTRAND Joël
2001-06-25 21:45 ` Ken Whaley [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-09-07 4:00 Floating Point Exception Tone Kokalj
1999-09-07 4:00 ` Greg Lindahl
1999-09-07 4:00 ` J. Josh Feng
1999-09-08 4:00 ` Greg Lindahl
1999-09-09 4:00 ` Tone Kokalj
1999-09-09 4:00 ` Eberhard Burr
1999-09-10 4:00 ` Tone Kokalj
1999-09-08 4:00 ` Tone Kokalj
1999-09-08 4:00 ` J. Josh Feng
1999-09-08 4:00 ` 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