https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80181

            Bug ID: 80181
           Summary: [7 Regression] ICE in set_lattice_value, at
                    tree-ssa-ccp.c:505
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-7.0.0-alpha20170319 snapshot ICEs when compiling the following snippet w/
-O2 (-Os, -O3, -Ofast):

int
nr (void)
{
}

void
it (int dl)
{
  int vp = 0;

  for (;;)
    {
      dl = vp ^ nr ();
      dl ^= vp;
      vp = 1;
    }
}

% gcc-7.0.0-alpha20170319 -O2 -w -c btw2qvlq.c                         
btw2qvlq.c: In function 'it':
btw2qvlq.c:17:1: internal compiler error: in set_lattice_value, at
tree-ssa-ccp.c:505
 }
 ^

Reply via email to