[prog] Fortran g77 question
Conor Daly
conor.daly-linuxchix at cod.homelinux.org
Sat Feb 25 06:36:19 EST 2006
On Fri, Feb 24, 2006 at 01:20:35PM +0000 or so it is rumoured hereabouts,
Conor Daly thought:
> hi all,
>
> When compiling a fortran program with g77, uninitialised variables are not
> set to zero while using Solaris' f77, they are. Is there a switch for g77
> to initialise uninitialised variables to zero? I had a look at
> '-Wuninitialised' but 'info g77' says:
>
So I found {well, somebody told me...}:
-finit-local-zero
which works nicely...
Conor
--
Conor Daly <conor.daly at cod.homelinux.org>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/G/S/O d+(-) s:+ a+ C++(+) UL++++ US++ P>++ L+++>++++ E--- W++ !N
PS+ PE Y+ PGP? tv(-) b+++(+) G e+++(*) h-- r+++ z++++
------END GEEK CODE BLOCK------
http://www.geekcode.com/ http://www.ebb.org/ungeek/
More information about the Programming
mailing list