https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126569
Bug ID: 126569
Summary: [17 Regression] Checking ICE in phiopt
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: ice-checking
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: ktkachov at gcc dot gnu.org
Target Milestone: ---
int wx, qi, gw, ak;
void
f (void)
{
while (wx)
{
int k2 = ak;
ja:
*(int **) &k2 = &gw;
while (qi)
++qi;
}
gw = 1;
goto ja;
}
ICEs on aarch64 with -O2 -fno-tree-dce -fno-tree-dse -fchecking=2
<source>: In function 'f':
<source>:4:1: error: invalid 'PHI' argument
4 | f (void)
| ^
{CLOBBER(eos)}
cstore_20 = PHI <{CLOBBER(eos)}(8), ak.0_1(9)>
during GIMPLE pass: phiopt
<source>:4:1: internal compiler error: verify_gimple failed