[Bug tree-optimization/88594] New: [9 Regression] ICE in int_mode_for_mode, at stor-layout.c:403
asolokha at gmx dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 25 14:28:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88594
Bug ID: 88594
Summary: [9 Regression] ICE in int_mode_for_mode, at
stor-layout.c:403
Product: gcc
Version: 9.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
Target Milestone: ---
Target: x86_64-unknown-linux-gnu
gcc-9.0.0-alpha20181223 snapshot (r267388) ICEs when compiling the following
snippet w/ -O2 (-O3, -Ofast, -Os) -fno-tree-dominator-opts -fno-tree-forwprop
-fno-tree-vrp:
__int128
uu (__int128 g0)
{
int wy;
for (wy = 0; wy < 17; ++wy)
{
}
if (g0 / wy != 0)
g0 %= wy;
return g0;
}
% x86_64-unknown-linux-gnu-gcc-9.0.0-alpha20181223 -O2 -fno-tree-dominator-opts
-fno-tree-forwprop -fno-tree-vrp -c yihs02r6.c
during RTL pass: expand
yihs02r6.c: In function 'uu':
yihs02r6.c:2:1: internal compiler error: in int_mode_for_mode, at
stor-layout.c:403
2 | uu (__int128 g0)
| ^~
0x671960 int_mode_for_mode(machine_mode)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/stor-layout.c:403
0x9dae4d emit_move_via_integer
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/expr.c:3356
0x9e6037 emit_move_insn_1(rtx_def*, rtx_def*)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/expr.c:3717
0x9e63b2 emit_move_insn(rtx_def*, rtx_def*)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/expr.c:3785
0x8c0f4d emit_library_call_value_1(int, rtx_def*, rtx_def*, libcall_type,
machine_mode, int, std::pair<rtx_def*, machine_mode>*)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/calls.c:5194
0x1074c19 emit_library_call_value(rtx_def*, rtx_def*, libcall_type,
machine_mode, rtx_def*, machine_mode, rtx_def*, machine_mode, rtx_def*,
machine_mode)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/rtl.h:4229
0x1074c19 ix86_expand_divmod_libfunc
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/config/i386/i386.c:51016
0xaf0db3 expand_DIVMOD
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/internal-fn.c:2861
0x8cfd47 expand_call_stmt
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/cfgexpand.c:2631
0x8cfd47 expand_gimple_stmt_1
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/cfgexpand.c:3685
0x8cfd47 expand_gimple_stmt
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/cfgexpand.c:3844
0x8d1ca1 expand_gimple_basic_block
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/cfgexpand.c:5880
0x8d6986 execute
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/cfgexpand.c:6502
More information about the Gcc-bugs
mailing list