[Bug lto/86453] New: [8/9 Regression] error: type variant differs by TYPE_PACKED in free_lang_data since r255469

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 10 11:29:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86453

            Bug ID: 86453
           Summary: [8/9 Regression] error: type variant differs by
                    TYPE_PACKED in free_lang_data since r255469
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org, rguenth at gcc dot gnu.org
  Target Milestone: ---

From the mentioned revision we ICE on:

$ cat ice1.ii
struct {
  int *__attribute__((aligned, packed)) a;
} b;

$ g++ -w -c -Wno-abi -c ice1.ii -Werror -flto
ice1.ii:3:4: error: type variant differs by TYPE_PACKED
 } b;
    ^
 <pointer_type 0x7ffff68fb000
    type <integer_type 0x7ffff67c05e8 int public type_6 SI
        size <integer_cst 0x7ffff67c30c0 constant 32>
        unit-size <integer_cst 0x7ffff67c30d8 constant 4>
        align:32 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff67c05e8 precision:32 min <integer_cst 0x7ffff67c3078 -2147483648> max
<integer_cst 0x7ffff67c3090 2147483647>
        pointer_to_this <pointer_type 0x7ffff67c89d8>>
    unsigned DI
    size <integer_cst 0x7ffff67a2e70 type <integer_type 0x7ffff67c00a8
bitsizetype> constant 64>
    unit-size <integer_cst 0x7ffff67a2e88 type <integer_type 0x7ffff67c0000
sizetype> constant 8>
    user align:128 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff67c89d8
    attributes <tree_list 0x7ffff68f4398
        purpose <identifier_node 0x7ffff68f6940 aligned
            normal local bindings <(nil)>>>>
 <pointer_type 0x7ffff68fb0a8
    type <integer_type 0x7ffff67c05e8 int public type_6 SI
        size <integer_cst 0x7ffff67c30c0 constant 32>
        unit-size <integer_cst 0x7ffff67c30d8 constant 4>
        align:32 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff67c05e8 precision:32 min <integer_cst 0x7ffff67c3078 -2147483648> max
<integer_cst 0x7ffff67c3090 2147483647>
        pointer_to_this <pointer_type 0x7ffff67c89d8>>
    unsigned packed DI
    size <integer_cst 0x7ffff67a2e70 type <integer_type 0x7ffff67c00a8
bitsizetype> constant 64>
    unit-size <integer_cst 0x7ffff67a2e88 type <integer_type 0x7ffff67c0000
sizetype> constant 8>
    user align:128 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff67c89d8
    attributes <tree_list 0x7ffff68f4398
        purpose <identifier_node 0x7ffff68f6940 aligned
            normal local bindings <(nil)>>>>
during IPA pass: *free_lang_data
ice1.ii:3:4: internal compiler error: verify_type failed
0x1151df2 verify_type(tree_node const*)
        /home/marxin/Programming/gcc/gcc/tree.c:13960
0x1153589 free_lang_data_in_cgraph
        /home/marxin/Programming/gcc/gcc/tree.c:5836
0x1153589 free_lang_data
        /home/marxin/Programming/gcc/gcc/tree.c:5865
0x1153589 execute
        /home/marxin/Programming/gcc/gcc/tree.c:5918
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 86454 has been marked as a duplicate of this bug. ***


More information about the Gcc-bugs mailing list