Bug ID: 81799
           Summary: ICE on valid code at -O3: verify_gimple failed
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot
          Reporter: su at cs dot
  Target Milestone: ---

$ gcc-trunk -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/usr/local/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20170810 (experimental) [trunk revision 251019] (GCC)
$ gcc-trunk -O2 -c small.c
$ gcc-trunk -O3 -c small.c
small.c: In function ‘fn1’:
small.c:5:6: error: invalid argument to gimple call
 void fn1 (int h)
&e > 3B
_33 = LOOP_DIST_ALIAS (4, &e > 3B);
during GIMPLE pass: ldist
small.c:5:6: internal compiler error: verify_gimple failed
0xcb091b verify_gimple_in_cfg(function*, bool)
0xb75202 execute_function_todo
0xb75ba9 execute_todo
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <> for instructions.


int printf (const char *, ...);

int a, c[1], d, e, **f;

void fn1 (int h)
  int *i = 0;
  for (d = 0; d < 1; d++)
      if (d)
      for (; e; e++)
          a = c[*i];
          if (h)
            printf ("0");
  f = &i;

Reply via email to