https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89753
Bug ID: 89753 Summary: ICE in unroll_loop_constant_iterations, at loop-unroll.c:498 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc-9.0.0-alpha20190317 snapshot (r269746) ICEs when compiling the following testcase w/ -O1 -fno-tree-dominator-opts: int uw; void xl (void) { #pragma GCC unroll 2 for (uw = 0; uw < 1; ++uw) { } } % x86_64-pc-linux-gnu-gcc-9.0.0-alpha20190317 -O1 -fno-tree-dominator-opts -c jynizscq.c during RTL pass: loop2_unroll jynizscq.c: In function 'xl': jynizscq.c:10:1: internal compiler error: in unroll_loop_constant_iterations, at loop-unroll.c:498 10 | } | ^ 0x654d5f unroll_loop_constant_iterations /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/loop-unroll.c:498 0x654d5f unroll_loops(int) /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/loop-unroll.c:295 0xbca72f execute /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/loop-init.c:584 0xbca72f execute /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/loop-init.c:571