https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95804
Bug ID: 95804 Summary: ice in generate_code_for_partition, at tree-loop-distribution.c:1323 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- This C source code: int a, b, c, e; int *d; void f() { int g; int *h; for (; b; b++) { for (; c; c++) ; e = *d || *h; for (; a; a++) h = g; } for (; e;) ; } on recent gcc trunk with compiler flag -O3 on x86_64, does this: $ /home/dcb/gcc/results/bin/gcc -c -w -O3 bug624.c during GIMPLE pass: ldist bug624.c: In function âfâ: bug624.c:3:6: internal compiler error: in generate_code_for_partition, at tree-loop-distribution.c:1323 3 | void f() { | ^ 0x85d652 generate_code_for_partition ../../trunk.git/gcc/tree-loop-distribution.c:1323 0x3343807 loop_distribution::distribute_loop(loop*, vec<gimple*, va_heap, vl_ptr>, control_dependences*, int*, bool*, bool) ../../trunk.git/gcc/tree-loop-distribution.c:3114 0x334a754 loop_distribution::execute(function*) ../../trunk.git/gcc/tree-loop-distribution.c:3303 0x334e075 execute ../../trunk.git/gcc/tree-loop-distribution.c:3391