https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113172
Bug ID: 113172
Summary: ice in move_early_exit_stmts
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
For this C code:
int tswchp_2;
short cpy_buf[8];
void ts_endcmd() {
int i = 0;
for (; i < 8 && i < tswchp_2; i++)
cpy_buf[i] = i;
}
compiled by recent gcc trunk, does this:
cvise $ ~/gcc/results/bin/gcc -c -O3 bug994.c
cvise $ ~/gcc/results/bin/gcc -c -O3 -march=znver3 bug994.c
during GIMPLE pass: vect
bug994.c: In function ‘ts_endcmd’:
bug994.c:3:6: internal compiler error: Segmentation fault
3 | void ts_endcmd() {
| ^~~~~~~~~
0xeeade9 crash_signal(int)
../../trunk.20210101/gcc/toplev.cc:316
0x11a8e63 gsi_prev(gimple_stmt_iterator*)
../../trunk.20210101/gcc/gimple-iterator.h:236
0x11a8e63 move_early_exit_stmts(_loop_vec_info*)
../../trunk.20210101/gcc/tree-vect-loop.cc:11807