[Patch, Fortran] PR 43205 - Null initialization of static variables

Toon Moene toon@moene.org
Mon Mar 1 21:56:00 GMT 2010


Tobias Burnus wrote:

> As reported in the PR, gfortran takes very long to compile:
> The reason is that gfortran generates:
> 
> static integer(kind=4) nsub_sta[22292000] = {0, 0, 0, 0, 0, 0, 0, .... };

Recently, I have started to compile our code with -finit-real=snan.  For 
one program this generated a 2.4 Gbyte assember file, which took as 2 
minutes to process.

:-)

[ If it was hard to write, it should be hard to compile ]

-- 
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html



More information about the Fortran mailing list