From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 18122 invoked from network); 8 Mar 1999 19:20:05 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Mar 1999 19:20:05 -0000 Received: from beach.frankfurt.netsurf.de (root@beach.frankfurt.netsurf.de [194.64.181.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA11241 for ; Mon, 8 Mar 1999 14:14:05 -0500 Received: from frankfurt.netsurf.de ([194.195.95.58]) by beach.frankfurt.netsurf.de (8.8.5/8.8.5) with ESMTP id UAA04702 for ; Mon, 8 Mar 1999 20:11:55 +0100 (MET) Sender: fabwes@beach.frankfurt.netsurf.de Message-ID: <36E420B9.C721AA0A@frankfurt.netsurf.de> Date: Mon, 08 Mar 1999 20:10:49 +0100 From: Joachim Wesner X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.36 i586) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: What takes care about optimization options ? References: <36E3BECA.C7ADC805@tn.utwente.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Andrei A. Dergatchev wrote: > > Hi, > > I found a rather funny bug and I'm not sure whom > to report. I have a package written in Fortran 77 > and I found that compiling with -O5 always causes > FPE during run-time, while compilation of the same > package with -g or -O doesn't. There are some > variables which are used depending on options, > otherwise they're 0.0. They're provided within a package > as subroutines' parameters. It seems -O5 option does > something wrong regarding subnormality issue as > a program generates FPE printing variable which must > be exactly 0.0. > > My question is is it g77, gcc(egcs) or linker related ? > Can you give an example of the code ?? What compiler (version)exactly do you use ? Some high optim. levels can cause code reordering that will no be what you want/need ! Did you check the machine code generated ?? Which math lib ? Joachim