https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103288
Bug ID: 103288
Summary: ice during GIMPLE pass: phiopt
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 51817
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51817&action=edit
C source code
For the attached C code, compiled with recent gcc trunk and
compiler flag -O2, does this:
$ /home/dcb/gcc/results/bin/gcc -w -O2 destDir/testFile.239.c
destDir/testFile.239.c: In function ‘func_14’:
destDir/testFile.239.c:38:9: error: definition in block 6 does not dominate use
in block 5
38 | int32_t func_14(uint64_t uli_8, int8_t c_9, int8_t c_10, uint64_t
uli_11)
| ^~~~~~~
for SSA_NAME: _102 in statement:
prephitmp_103 = PHI <_102(5), _102(6)>
PHI argument
_102
for PHI node
prephitmp_103 = PHI <_102(5), _102(6)>
during GIMPLE pass: phiopt
The bug first seems to occur sometime between git hash 2f3d43a35155685b
and 8a601f9bc45f9faa, a distance of 22 commits.