This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g77 bug report
- To: Jonathan Ravens <ravens at whio dot gns dot cri dot nz>
- Subject: Re: g77 bug report
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Thu, 26 Aug 1999 00:08:33 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <199908242202.KAA22730@whio.gns.cri.nz>
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