[Bug rtl-optimization/85852] ICE: Segmentation fault (in contains_struct_check)
asolokha at gmx dot com
gcc-bugzilla@gcc.gnu.org
Mon May 21 04:31:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85852
--- Comment #1 from Arseny Solokha <asolokha at gmx dot com> ---
Here's a testcase w/o zero division:
void
ki (double nq)
{
double zo = 1.1 * nq - nq;
}
% gcc-9.0.0-alpha20180520 -mfma -O2 -fexceptions -fnon-call-exceptions -c
pr85852-1.c
during RTL pass: expand
pr85852-1.c: In function 'ki':
pr85852-1.c:4:10: internal compiler error: Segmentation fault
double zo = 1.1 * nq - nq;
^~
0xc9b59f crash_signal
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180520/work/gcc-9-20180520/gcc/toplev.c:325
0xa95733 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180520/work/gcc-9-20180520/gcc/tree.h:3248
0xa95733 expand_direct_optab_fn
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180520/work/gcc-9-20180520/gcc/internal-fn.c:2894
0x87e757 expand_call_stmt
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180520/work/gcc-9-20180520/gcc/cfgexpand.c:2598
0x87e757 expand_gimple_stmt_1
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180520/work/gcc-9-20180520/gcc/cfgexpand.c:3644
0x87e757 expand_gimple_stmt
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180520/work/gcc-9-20180520/gcc/cfgexpand.c:3810
0x87fd9c expand_gimple_tailcall
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180520/work/gcc-9-20180520/gcc/cfgexpand.c:3856
0x87fd9c expand_gimple_basic_block
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180520/work/gcc-9-20180520/gcc/cfgexpand.c:5812
0x884837 execute
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180520/work/gcc-9-20180520/gcc/cfgexpand.c:6441
More information about the Gcc-bugs
mailing list