[Bug middle-end/52693] New: Wrong code with SRA and arrays

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 23 20:51:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693

             Bug #: 52693
           Summary: Wrong code with SRA and arrays
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pinskia@gcc.gnu.org


With the attach testcase, SRA does the following replacement which seems wrong:
  value = stack.l[D.4470_102];
With
  value_77 = MEM[(struct exprList_s *)&stack];
  value$u_620 = MEM[(struct exprList_s *)&stack].u;

At -O1.



More information about the Gcc-bugs mailing list