[Patch, Fortran] PR 51800 - Fix -finit-local-zero with automatic arrays and -fno-automatic

Toon Moene toon@moene.org
Wed Jan 11 20:11:00 GMT 2012


On 01/11/2012 09:01 PM, Tobias Burnus wrote:

> Before your patch: No initialization of automatic data objects
> With your patch: Initialization for automatic arrays, but fails with
> -fno-automatic.
> With my patch: Initialization also for nonconst-length character
> strings, no failures with -fno-automatic.

BTW, does this mean -finit-real=snan would work via an "initialization 
expression" at run time after allocation for allocatable arrays (note 
that this isn't covered, still), i.e., that I could try to fix this in 
4.8 in the same way as it works in resolve.c, but then applied to 
trans-array.c ?

Or do I have to apply a different method ?

Thanks !

-- 
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news



More information about the Gcc-patches mailing list