http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36084
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.0
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-10-19
00:45:53 UTC ---
Fixed by the MEM_REF work done by Richard Guenther.
We get now:
D.2070_2 = MEM[(int[<unknown>] *)&i][0];
Which gets converted correctly for SRA to:
i$0_4 = 0;
...
D.2070_2 = i$0_4;