This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH][RFC] Fix PR49957 - build array index differently
On Thursday 04 August 2011 13:12:04 Richard Guenther wrote:
> On Thu, 4 Aug 2011, Richard Guenther wrote:
> > On Wed, 3 Aug 2011, Mikael Morin wrote:
> > > Hello,
> > >
> > > On Wednesday 03 August 2011 15:47:37 Richard Guenther wrote:
> > > > Comments? Any idea why reversing the loop would break?
> > >
> > > Yes, the list of scalarized expressions has to be created in the same
> > > order it is consumed. Here the scalarized expressions are array
> > > indexes to be precomputed out of the loop.
> > > The attached patch seems to work (the interesting part is in
> > > gfc_walk_variable_expr).
> >
> > Ah, thanks. I'll work from there to revise the patch.
>
> The following is almost identical to your proposal.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, ok for trunk?
Yes, Thanks.
Mikael