https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88112
Bug ID: 88112 Summary: [9 regression] ICE in lto1: TYPE_FIELDS defined in incomplete type Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: marxin at gcc dot gnu.org, rguenth at gcc dot gnu.org Target Milestone: --- Target: *-*-solaris2.* Between 20181118 (r266252) and 20181119 (r266280), gnat.dg/lto19.adb began to FAIL on Solaris/SPARC and x86, both 32 and 64-bit: -XPASS: gnat.dg/lto19.adb (test for excess errors) +FAIL: gnat.dg/lto19.adb (internal compiler error) lto1: error: TYPE_FIELDS defined in incomplete type <record_type fa729300 lto19_pkg1__rec BLK align:32 warn_if_not_align:0 symtab:0 alias-set -1 structural-equality fields <field_decl fa61a9a0 i type <integer_type fa729000 integer type <integer_type faedf3c0 int> SI size <integer_cst fa6058ac constant 32> unit-size <integer_cst fa6058c0 constant 4> align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type faedf3c0 precision:32 min <integer_cst fa65ae60 -2147483648> max <integer_cst fa65ae74 2147483647> context <translation_unit_decl fa60f6d4 /vol/gcc/src/hg/trunk/local/gcc/testsuite/gnat.dg/lto19_pkg1.adb>> nonaddressable SI /vol/gcc/src/hg/trunk/local/gcc/testsuite/gnat.dg/lto19_pkg1.ads:9:5 size <integer_cst fa6058ac 32> unit-size <integer_cst fa6058c0 4> align:32 warn_if_not_align:0 offset_align 128 offset <integer_cst fa6058d4 constant 0> bit-offset <integer_cst fa605924 constant 0> context <record_type fa729300 lto19_pkg1__rec> chain <field_decl fa61a948 a type <array_type fa7292a0 lto19_pkg1__arr> BLK /vol/gcc/src/hg/trunk/local/gcc/testsuite/gnat.dg/lto19_pkg1.ads:8:5 align:32 warn_if_not_align:0 offset_align 128 offset <integer_cst fa6058d4 0> bit-offset <integer_cst fa6058ac 32> context <record_type fa729300 lto19_pkg1__rec>>> context <translation_unit_decl fa60f6d4 /vol/gcc/src/hg/trunk/local/gcc/testsuite/gnat.dg/lto19_pkg1.adb> pointer_to_this <pointer_type fa729e40> reference_to_this <reference_type fa729360>> lto1: internal compiler error: verify_type failed 0x91ccfe5 verify_type(tree_node const*) /vol/gcc/src/hg/trunk/local/gcc/tree.c:14320 0x89ad7e8 lto_fixup_state /vol/gcc/src/hg/trunk/local/gcc/lto/lto.c:2706 0x89b68d4 lto_fixup_decls /vol/gcc/src/hg/trunk/local/gcc/lto/lto.c:2737 0x89b68d4 read_cgraph_and_symbols /vol/gcc/src/hg/trunk/local/gcc/lto/lto.c:2971 0x89b68d4 lto_main() /vol/gcc/src/hg/trunk/local/gcc/lto/lto.c:3401 Reverting 2018-11-19 Richard Biener <rguent...@suse.de> PR lto/87229 * tree.c (free_lang_data_in_one_sizepos): Free non-gimple-val sizepos values. restored the XPASS.