[Bug tree-optimization/51466] New: [4.7 Regression] ICE in gimple_rhs_has_side_effects,

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 8 14:30:00 GMT 2011


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

             Bug #: 51466
           Summary: [4.7 Regression] ICE in gimple_rhs_has_side_effects,
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org


int
foo (int i)
{
  volatile int v[4];
  int *p;
  v[i] = 6;
  p = (int *) &v[i];
  return *p;
}

int
bar (int i)
{
  volatile int v[4];
  int *p;
  v[i] = 6;
  p = (int *) &v[i];
  *p = 8;
  return v[i];
}

int
baz (int i)
{
  volatile int v[4];
  int *p;
  v[i] = 6;
  p = (int *) &v[0];
  *p = 8;
  return v[i];
}

ICEs with current trunk at -O2 (well, just foo, bar & baz are an unsuccessful
attempt to reproduce something similar on the lhs).



More information about the Gcc-bugs mailing list