Bug 66241 - [6 regression] [ARM] ICE: verify_type failed while building libstdc++ (dwarfout.c: gen_type_die_with_usage())
Summary: [6 regression] [ARM] ICE: verify_type failed while building libstdc++ (dwarfo...
Status: RESOLVED DUPLICATE of bug 66181
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 6.0
: P3 major
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-21 12:57 UTC by Vidya Praveen
Modified: 2015-05-26 12:27 UTC (History)
2 users (show)

See Also:
Host:
Target: arm-none-linux-gnueabi, arm-none-eabi,arm-none-linux-gnueabihf
Build:
Known to work:
Known to fail:
Last reconfirmed: 2015-05-22 00:00:00


Attachments
preprocessed file to reproduce ICE (3.88 KB, text/plain)
2015-05-21 12:59 UTC, Vidya Praveen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vidya Praveen 2015-05-21 12:57:41 UTC
I'm seeing this while building arm-none-linux-gnueabi/gnueabihf at the stage of building libstdc++

[...]arm-none-linux-gnueabi/libc/usr/include/bits/types.h:134:30: internal compiler error: verify_type failed
0xf3eb05 verify_type(tree_node const*)
        /work/ws/fsf-trunk/src/gcc/gcc/tree.c:13257
0x942ab4 gen_type_die_with_usage
        /work/ws/fsf-trunk/src/gcc/gcc/dwarf2out.c:20250
0x9414be gen_decl_die
        /work/ws/fsf-trunk/src/gcc/gcc/dwarf2out.c:20987
0x93faf3 gen_member_die
        /work/ws/fsf-trunk/src/gcc/gcc/dwarf2out.c:19945
0x93faf3 gen_struct_or_union_type_die
        /work/ws/fsf-trunk/src/gcc/gcc/dwarf2out.c:20038
0x93faf3 gen_tagged_type_die
        /work/ws/fsf-trunk/src/gcc/gcc/dwarf2out.c:20227
0x9432c9 gen_type_die_with_usage
        /work/ws/fsf-trunk/src/gcc/gcc/dwarf2out.c:20381
0x9414be gen_decl_die
        /work/ws/fsf-trunk/src/gcc/gcc/dwarf2out.c:20987

This looks similar to bug 66214 but not sure if it's the same. Attaching a preprocessed file that reproduces this with g++ -g -O0
Comment 1 Vidya Praveen 2015-05-21 12:59:09 UTC
Created attachment 35586 [details]
preprocessed file to reproduce ICE
Comment 2 Ramana Radhakrishnan 2015-05-21 15:46:32 UTC
Confirmed.
Comment 3 Vidya Praveen 2015-05-21 17:45:02 UTC
And this change seems to be the cause:

Author: hubicka
Date: Sat May 16 20:51:50 2015
New Revision: 223252

URL: https://gcc.gnu.org/viewcvs?rev=223252&root=gcc&view=rev
Log:
	* tree.c (verify_type_variant): Verify tree_base and type_common flags.
	(verify_type): Verify STRING_FLAG.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree.c
Comment 4 ktkachov 2015-05-22 09:33:16 UTC
I'm seeing this as well (as it is blocking the arm-none-linux-gnueabihf build)
Comment 5 Ramana Radhakrishnan 2015-05-26 12:27:27 UTC
dup

*** This bug has been marked as a duplicate of bug 66181 ***