[Bug tree-optimization/92115] New: [10 Regression] ICE in gimple_cond_get_ops_from_tree, at gimple-expr.c:577
asolokha at gmx dot com
gcc-bugzilla@gcc.gnu.org
Wed Oct 16 02:06:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92115
Bug ID: 92115
Summary: [10 Regression] ICE in gimple_cond_get_ops_from_tree,
at gimple-expr.c:577
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Keywords: ice-checking, 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: iii at linux dot ibm.com
Target Milestone: ---
gcc-10.0.0-alpha20191013 snapshot (r276943) ICEs when compiling the following
testcase reduced from gcc/testsuite/gcc.dg/nextafter-1.c w/ -O1 -fexceptions
-ffinite-math-only -fnon-call-exceptions -fsignaling-nans -fno-signed-zeros:
void
kd (double d0)
{
if (d0 == 0.0 && !__builtin_signbit (d0))
__builtin_abort ();
}
% gcc-10.0.0-alpha20191013 -O1 -fexceptions -ffinite-math-only
-fnon-call-exceptions -fsignaling-nans -fno-signed-zeros -c bxrugm8f.c
during GIMPLE pass: ifcombine
bxrugm8f.c: In function 'kd':
bxrugm8f.c:2:1: internal compiler error: in gimple_cond_get_ops_from_tree, at
gimple-expr.c:577
2 | kd (double d0)
| ^~
0x60d9fa gimple_cond_get_ops_from_tree(tree_node*, tree_code*, tree_node**,
tree_node**)
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191013/work/gcc-10-20191013/gcc/gimple-expr.c:577
0x9e0bf3 gimple_cond_set_condition_from_tree(gcond*, tree_node*)
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191013/work/gcc-10-20191013/gcc/gimple.c:542
0xd7a414 ifcombine_ifandif
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191013/work/gcc-10-20191013/gcc/tree-ssa-ifcombine.c:602
0xd7b21f tree_ssa_ifcombine_bb_1
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191013/work/gcc-10-20191013/gcc/tree-ssa-ifcombine.c:706
0xd7b3b6 tree_ssa_ifcombine_bb
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191013/work/gcc-10-20191013/gcc/tree-ssa-ifcombine.c:738
0xd7b3b6 execute
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191013/work/gcc-10-20191013/gcc/tree-ssa-ifcombine.c:825
The failing assert was introduced in r276659.
More information about the Gcc-bugs
mailing list