https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113725
Bug ID: 113725
Summary: ICE during GIMPLE pass: cunroll
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: shaohua.li at inf dot ethz.ch
CC: rguenth at gcc dot gnu.org
Target Milestone: ---
gcc at -O3 crashed on the test case.
Bisected to r14-8683-gb84f8a5e0a7
Compiler explorer: https://godbolt.org/z/qsPvvPx6q
%cat reduced.c
char a;
int b, c, d, e;
int f() {}
void g() {
for (;;) {
b = 1;
for (; b >= 0; b--) {
int *h = &e;
for (; d; d++)
a && (*h = 8);
c = e;
}
for (; f() <= 2;)
;
}
}
int main() {}
%
%gcc -O3 reduced.c
during GIMPLE pass: cunroll
reduced.c: In function āgā:
reduced.c:4:6: internal compiler error: Segmentation fault
4 | void g() {
| ^
0x7f07fa09208f ???
/build/glibc-wuryBv/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f07fa073082 __libc_start_main
../csu/libc-start.c:308
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
%