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

            Bug ID: 89768
           Summary: ICE in compare_and_jump_seq at loop-unroll.c:838
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

I know the params have very extreme values, but still:

$ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/pr80565.c
--param max-unroll-times=100000 --param max-unrolled-insns=1000000
-funroll-loops -Ofast --param max-average-unrolled-insns=1858613514
-fno-tree-dominator-opts
during RTL pass: loop2_unroll
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/pr80565.c: In
function ‘main’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/pr80565.c:41:1:
internal compiler error: Segmentation fault
   41 | }
      | ^
0xd1c3ef crash_signal
        /home/marxin/Programming/gcc/gcc/toplev.c:326
0x7ffff79b5e0f ???
       
/usr/src/debug/glibc-2.29-3.1.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0xb905ab rtx_jump_insn* as_a<rtx_jump_insn*, rtx_insn>(rtx_insn*)
        /home/marxin/Programming/gcc/gcc/is-a.h:197
0xb905ab compare_and_jump_seq
        /home/marxin/Programming/gcc/gcc/loop-unroll.c:838
0xb937ab unroll_loop_runtime_iterations
        /home/marxin/Programming/gcc/gcc/loop-unroll.c:1023
0xb937ab unroll_loops(int)
        /home/marxin/Programming/gcc/gcc/loop-unroll.c:299
0xb8413f execute
        /home/marxin/Programming/gcc/gcc/loop-init.c:584
0xb8413f execute
        /home/marxin/Programming/gcc/gcc/loop-init.c:571

Reply via email to