[fortran] Set TREE_STATIC flag on static initializers

Tobias Burnus burnus@net-b.de
Sun Sep 5 22:14:00 GMT 2010


Jan Hubicka wrote:
> fortran, unlike all other frontends, does not set TREE_STATIC flag on static
> initializers.  This prevents us from folding till the cfgexpand time.  To be honest,
> I am not quite sure why we insist on the flag (I guess we should assert that all statics
> are initializerd with static initializer or ignore it), but this patch brings gfortran
> into sync with others.
>
> Bootstrapped/regtested x86_64-linux, OK?

OK. Thanks for the patch.

Tobias

PS: It helps to CC fortran@ for Fortran patches; sending them only to 
gcc-patches@ reduces the chance of getting them reviewed.



More information about the Fortran mailing list