g77 bug report

Toon Moene toon@moene.indiv.nluug.nl
Tue Aug 31 22:45:00 GMT 1999


Jonathan Ravens wrote:

> In short : I have a large C/Fortran package which I build with gcc and g77, and
> if I have optimising turned on (--O3 or even -O1) as I have always done in the
> past, "nothing works" - I get core-dumps, NaNs appearing out of nowhere & so on
> - general chaos.  It seems to work fine with optimising turned off,

Usually, in cases such as this with sweeping, general, "nothing works"
problems, we advise to compile with -fbounds-check -fno-automatic
-finit-local-zero in addition to the other flags you specified.  This is
all explained in the node "Collected Fortran Wisdom", subnode "Working
Programs" of the accompanying documentation.

Hope this helps,

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://world.std.com/~burley/g77.html



More information about the Gcc-bugs mailing list