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

            Bug ID: 81369
           Summary: [8 Regression] ICE in generate_code_for_partition
           Product: gcc
           Version: 8.0
            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-8.0.0-alpha20170709 snapshot ICEs when compiling the following snippet w/
-O2 -ftree-loop-distribution:

int wo;

void
sy (long int *as)
{
  for (;;)
    {
      *as = wo;
      while (as < 2)
        {
          int *y9;

          if (wo != 0)
            *y9 = &wo;
          wo /= (wo != 0 && *y9 != 0);
          ++as;
        }
    }
}

% gcc-8.0.0-alpha20170709 -O2 -ftree-loop-distribution -c -w bghwqvet.c
during GIMPLE pass: ldist
bghwqvet.c: In function 'sy':
bghwqvet.c:4:1: internal compiler error: in generate_code_for_partition, at
tree-loop-distribution.c:1146
 sy (long int *as)
 ^~

Reply via email to