https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98099
Bug ID: 98099 Summary: ICE in gen_lowpart_common, at emit-rtl.c:1554 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Affects versions down to r6 : $ cat z1.c struct S { _Decimal128 a; }; _Decimal128 f (struct S x) { return x.a; } $ gcc-11-20201129 -c z1.c -m32 -fsso-struct=big-endian during RTL pass: expand z1.c: In function 'f': z1.c:5:11: internal compiler error: Segmentation fault 5 | return x.a; | ~^~ 0xb49eaf crash_signal ../../gcc/toplev.c:330 0x825a2f gen_lowpart_common(machine_mode, rtx_def*) ../../gcc/emit-rtl.c:1554 0xafa9ec gen_lowpart_general(machine_mode, rtx_def*) ../../gcc/rtlhooks.c:48 0x83ef31 extract_bit_field_1 ../../gcc/expmed.c:1826 0x83f7ff extract_bit_field(rtx_def*, poly_int<1u, unsigned long>, poly_int<1u, unsigned long>, int, rtx_def*, machine_mode, machine_mode, bool, rtx_def**) ../../gcc/expmed.c:2119 0x84e8ca expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:11113 0x859e43 store_expr(tree_node*, rtx_def*, int, bool, bool) ../../gcc/expr.c:5859 0x85b206 expand_assignment(tree_node*, tree_node*, bool) ../../gcc/expr.c:5595 0x750c10 expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3901 0x750c10 expand_gimple_stmt ../../gcc/cfgexpand.c:3999 0x755e07 expand_gimple_basic_block ../../gcc/cfgexpand.c:6040 0x758476 execute ../../gcc/cfgexpand.c:6724