This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug tree-optimization/36084] not folding of (int[<unknown>] *) &i[0] into &i


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;


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