Re: [patch, fortran] [4.6/4.7 Regression] Fix PR 48955

2011-05-25 Thread Thomas Koenig
Dear Paul, Following some comments from Thomas, the attached is the version that I wound up with. Tell us which one you prefer and Thomas and I will do the honours. Bootstrapped and regtested on FC9/x86_64 - OK for trunk and 4.6? Your patch is does the job and is less intrusive than mine -

Re: [patch, fortran] [4.6/4.7 Regression] Fix PR 48955

2011-05-24 Thread Paul Richard Thomas
Dear All, > > I have posted a simpler alternative on the PR that uses your > suggestion that forward and backward dependences need to to be > recorded to get this right. > > I believe that it's OK but have only now had the opportunity to put it > on to regtest. > Following some comments from Thoma

Re: [patch, fortran] [4.6/4.7 Regression] Fix PR 48955

2011-05-22 Thread Paul Richard Thomas
Dear Thomas, I am sorry for the long silence on this PR. I have been up to my eyeballs in daytime work. I have posted a simpler alternative on the PR that uses your suggestion that forward and backward dependences need to to be recorded to get this right. I believe that it's OK but have only no

[patch, fortran] [4.6/4.7 Regression] Fix PR 48955

2011-05-22 Thread Thomas Koenig
Hello world, the attached patch fixes PR 48955, a wrong-code regression for 4.6 and 4.7, including the test case from http://gcc.gnu.org/ml/fortran/2011-05/msg00093.html . It follows the outline from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48955#c7 . Regression-tested. OK for trunk?