PR53818 - Allow -finit-local-zero with -fno-automatic for result variables
Mikael Morin
mikael.morin@sfr.fr
Tue Jul 3 20:29:00 GMT 2012
On 02.07.2012 09:10, Tobias Burnus wrote:
> For some reasons, result variables are walked twice. With
> -finit-local-zero their value gets set to 0, either via an inserted
> assignment or by adding a initialization (sym->value).
>
> With -fno-automatic sym->value is also set for result variables, which
> later leads to an error. With the patch, that code path is skipped and
> an assignment is done. (As the code path is taken twice, twp assignments
> are done. I couldn't quickly see why the result variable is resolved
> twice.)
>
> Build and regtested on x86-64-linux.
> OK for the trunk?
>
> Tobias
OK. Maybe explain the reasons above in a comment?
Thanks for the patch
Mikael
More information about the Fortran
mailing list