https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88606
Bug ID: 88606 Summary: [9 Regression] ICE: verify_type failed (error: type variant differs by TYPE_TRANSPARENT_AGGR) 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: powerpc-*-linux-gnu gcc-9.0.0-alpha20181223 snapshot (r267388) ICEs when compiling gcc/testsuite/gcc.dg/transparent-union-6.c w/ -m32 -mcpu=403 (=8540, =8548) -flto -fpack-struct: % powerpc-e300c3-linux-gnu-gcc-9.0.0-alpha20181223 -m32 -mcpu=403 -flto -fpack-struct -w -c gcc/testsuite/gcc.dg/transparent-union-6.c gcc/testsuite/gcc.dg/transparent-union-6.c:17:1: error: type variant differs by TYPE_TRANSPARENT_AGGR 17 | } | ^ <union_type 0x7fca981ddf18 m30_u no-force-blk packed type_0 BLK size <integer_cst 0x7fca980f7f90 type <integer_type 0x7fca981070a8 bitsizetype> constant 32> unit-size <integer_cst 0x7fca980f7fa8 type <integer_type 0x7fca98107000 sizetype> constant 4> align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7fca981ddf18 fields <field_decl 0x7fca981dbbe0 u type <integer_type 0x7fca981075e8 int sizes-gimplified public SI size <integer_cst 0x7fca980f7f90 32> unit-size <integer_cst 0x7fca980f7fa8 4> align:32 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type 0x7fca981075e8 precision:32 min <integer_cst 0x7fca981091e0 -2147483648> max <integer_cst 0x7fca981091f8 2147483647> pointer_to_this <pointer_type 0x7fca981109d8>> packed SI gcc/testsuite/gcc.dg/transparent-union-6.c:8:7 size <integer_cst 0x7fca980f7f90 32> unit-size <integer_cst 0x7fca980f7fa8 4> align:8 warn_if_not_align:0 offset_align 128 offset <integer_cst 0x7fca980f7fc0 constant 0> bit-offset <integer_cst 0x7fca98109030 constant 0> context <union_type 0x7fca981ddf18 m30_u>> context <translation_unit_decl 0x7fca981e9ac8 gcc/testsuite/gcc.dg/transparent-union-6.c>> <union_type 0x7fca98200000 m30_t transparent-aggr packed BLK size <integer_cst 0x7fca980f7f90 type <integer_type 0x7fca981070a8 bitsizetype> constant 32> unit-size <integer_cst 0x7fca980f7fa8 type <integer_type 0x7fca98107000 sizetype> constant 4> align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7fca981ddf18 fields <field_decl 0x7fca981dbbe0 u type <integer_type 0x7fca981075e8 int sizes-gimplified public SI size <integer_cst 0x7fca980f7f90 32> unit-size <integer_cst 0x7fca980f7fa8 4> align:32 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type 0x7fca981075e8 precision:32 min <integer_cst 0x7fca981091e0 -2147483648> max <integer_cst 0x7fca981091f8 2147483647> pointer_to_this <pointer_type 0x7fca981109d8>> packed SI gcc/testsuite/gcc.dg/transparent-union-6.c:8:7 size <integer_cst 0x7fca980f7f90 32> unit-size <integer_cst 0x7fca980f7fa8 4> align:8 warn_if_not_align:0 offset_align 128 offset <integer_cst 0x7fca980f7fc0 constant 0> bit-offset <integer_cst 0x7fca98109030 constant 0> context <union_type 0x7fca981ddf18 m30_u>> context <translation_unit_decl 0x7fca981e9ac8 gcc/testsuite/gcc.dg/transparent-union-6.c>> during IPA pass: *free_lang_data gcc/testsuite/gcc.dg/transparent-union-6.c:17:1: internal compiler error: verify_type failed 0xff68db verify_type(tree_node const*) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/tree.c:14468 0xff834f free_lang_data /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/tree.c:6237 0xff834f execute /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/tree.c:6282