[Bug tree-optimization/106938] New: [13 Regression] ICE in predicate::init_from_control_deps
asolokha at gmx dot com
gcc-bugzilla@gcc.gnu.org
Wed Sep 14 04:48:44 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106938
Bug ID: 106938
Summary: [13 Regression] ICE in
predicate::init_from_control_deps
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: asolokha at gmx dot com
CC: hubicka at gcc dot gnu.org, rguenth at gcc dot gnu.org
Target Milestone: ---
gcc 13.0.0 20220911 snapshot (g:0ea5e3f4542832b8da016b152695e64a2a386309) ICEs
when compiling the following testcase w/ -O1 -fno-ipa-pure-const -fno-tree-ccp
-Wuninitialized:
int n;
void
undefined (void);
__attribute__ ((returns_twice)) int
zero (void)
{
return 0;
}
void
bar (int)
{
int i;
for (i = 0; i < -1; ++i)
n = 0;
}
__attribute__ ((simd)) void
foo (void)
{
int uninitialized;
undefined ();
while (uninitialized < 1)
{
bar (zero ());
++uninitialized;
}
}
% gcc-13.0.0 -O1 -fno-ipa-pure-const -fno-tree-ccp -Wuninitialized -w -c
r1v5kswd.c
during GIMPLE pass: uninit
r1v5kswd.c: In function 'foo.simdclone.0':
r1v5kswd.c:22:1: internal compiler error: Segmentation fault
22 | foo (void)
| ^~~
0xeebbdf crash_signal
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/toplev.cc:314
0x1d2a191 gimple_code
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/gimple.h:1807
0x1d2a191 predicate::init_from_control_deps(vec<edge_def*, va_heap, vl_ptr>
const*, unsigned int, bool)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/gimple-predicate-analysis.cc:1776
0x1d2cc00 predicate::init_from_control_deps(vec<edge_def*, va_heap, vl_ptr>
const*, unsigned int, bool)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/gimple-predicate-analysis.cc:1722
0x1d2cc00 uninit_analysis::init_from_phi_def(gphi*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/gimple-predicate-analysis.cc:2116
0x1d2e9ab uninit_analysis::is_use_guarded(gimple*, basic_block_def*, gphi*,
unsigned int, hash_set<gphi*, false, default_hash_traits<gphi*> >*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/gimple-predicate-analysis.cc:2172
0x1d2ef59 uninit_analysis::is_use_guarded(gimple*, basic_block_def*, gphi*,
unsigned int)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/gimple-predicate-analysis.cc:2195
0x1140e01 find_uninit_use
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/tree-ssa-uninit.cc:1238
0x1141756 warn_uninitialized_phi
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/tree-ssa-uninit.cc:1308
0x1141756 execute_late_warn_uninitialized
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/tree-ssa-uninit.cc:1429
0x1141756 execute
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/tree-ssa-uninit.cc:1446
More information about the Gcc-bugs
mailing list