From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111c93,47fe96fd9165f6f4 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-06-25 14:41:34 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!newsstand.cit.cornell.edu!portc03.blue.aol.com!cyclone2.usenetserver.com!e420r-sjo4.usenetserver.com!newsfeed.usenetserver.com!e420r-sjo2.usenetserver.com.POSTED!not-for-mail From: "Ken Whaley" Newsgroups: comp.os.linux.alpha References: Subject: Re: Floating point exception X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: X-Complaints-To: abuse@usenetserver.com X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly. NNTP-Posting-Date: Mon, 25 Jun 2001 17:51:45 EDT Organization: WebUseNet Corp. - ReInventing The UseNet Date: Mon, 25 Jun 2001 14:45:15 -0700 Xref: archiver1.google.com comp.os.linux.alpha:3174 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" wrote in message news:slrn9h76ok.c20.bertrand@perceval.cnam.fr... > Le 29 May 2001 10:11:15 GMT > BERTRAND Jo�l �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 >