This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR53818 - Allow -finit-local-zero with -fno-automatic for result variables


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]