From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 102645 invoked by alias); 28 May 2015 10:58:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 102564 invoked by uid 48); 28 May 2015 10:58:25 -0000 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/66325] New: ICE in gcc.c-torture/execute/930408-1.c, verify_type fails with --enable-checking=yes Date: Thu, 28 May 2015 10:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg02342.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66325 Bug ID: 66325 Summary: ICE in gcc.c-torture/execute/930408-1.c, verify_type fails with --enable-checking=yes Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: ktkachov at gcc dot gnu.org CC: hubicka at gcc dot gnu.org Target Milestone: --- Target: arm-none-eabi I'm getting this ICEs in the arm testsuite: FAIL: gcc.c-torture/execute/930408-1.c -O3 -g (internal compiler error) FAIL: gcc.c-torture/execute/930408-1.c -O3 -g (test for excess errors) FAIL: gcc.c-torture/execute/930408-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) FAIL: gcc.c-torture/execute/930408-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) FAIL: gcc.c-torture/execute/930408-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) FAIL: gcc.c-torture/execute/930408-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) The ICE backtrace is: 930408-1.c:6:1: error: type variant differs by TYPE_PACKED. } s; ^ constant 8> unit size constant 1> align 8 symtab -1113450304 alias set -1 canonical type 0x7f7dbda115e8 precision 8 min max values chain > value >> chain > constant 8> unit size constant 1> align 8 symtab -1113450384 alias set -1 canonical type 0x7f7dbda115e8 precision 8 min max values > value chain > value >> chain > 930408-1.c:6:1: internal compiler error: verify_type failed 0xd47e13 verify_type(tree_node const*) $TOP/gcc/tree.c:13276 0x723fbc gen_type_die_with_usage $TOP/gcc/dwarf2out.c:20250 0x725079 gen_type_die $TOP/gcc/dwarf2out.c:20434 0x7383cc gen_decl_die $TOP/gcc/dwarf2out.c:21041 0x736545 gen_member_die $TOP/gcc/dwarf2out.c:19945 0x736545 gen_struct_or_union_type_die $TOP/gcc/dwarf2out.c:20038 0x736545 gen_tagged_type_die $TOP/gcc/dwarf2out.c:20227 0x724c88 gen_type_die_with_usage $TOP/gcc/dwarf2out.c:20381 0x725079 gen_type_die $TOP/gcc/dwarf2out.c:20434 0x737c80 gen_decl_die $TOP/gcc/dwarf2out.c:20987 0x738f4b dwarf2out_decl $TOP/gcc/dwarf2out.c:21397 0x73a161 dwarf2out_type_decl $TOP/gcc/dwarf2out.c:21096 0x9ce063 rest_of_type_compilation(tree_node*, int) $TOP/gcc/passes.c:309 0x55312f finish_struct(unsigned int, tree_node*, tree_node*, tree_node*, c_struct_parse_info*) $TOP/gcc/c/c-decl.c:7850 0x59b443 c_parser_struct_or_union_specifier $TOP/gcc/c/c-parser.c:2829 0x59b443 c_parser_declspecs $TOP/gcc/c/c-parser.c:2403 0x5a39e0 c_parser_declaration_or_fndef $TOP/gcc/c/c-parser.c:1571 0x5ab4fe c_parser_external_declaration $TOP/gcc/c/c-parser.c:1452 0x5ab797 c_parser_translation_unit $TOP/gcc/c/c-parser.c:1339 0x5ab797 c_parse_file() $TOP/gcc/c/c-parser.c:15457 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. I see this at least as far back as r223695 and it appears on trunk at r223800. Honza, is this related to your type work recently? My arm-none-eabi compiler is configured with: --enable-checking=yes --with-newlib --with-fpu=neon-fp-armv8 --with-arch=armv8-a --without-isl