From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0925C385B834; Mon, 23 Mar 2020 19:53:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0925C385B834 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584993233; bh=GNQo+k4MgQi3V2jjCPghnLS9BLSIR3vfuqwMHXloTiM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lh0gBw2tJlbh+b0mm/7zHc/wD2MWL8K9fpFbQRAOLqXV0D0RpWdi5mRn4o0pO3PIr hvBJHf9Ei2sBBXVVMaDQM2WRQlyIenS9NnRJNIqX36hV2iMEh0muHrRtc7U1hHy0bu PuJ9aLOATOG1uJJPKdJ1qPJkwpE0zVbwuLmVvemQ= From: "stilor at att dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/94273] [10 Regression] ICE in splice_child_die, at dwarf2out.c:5657 since r10-7235-g52b3aa8be1893848 Date: Mon, 23 Mar 2020 19:53:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: stilor at att dot net X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2020 19:53:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94273 --- Comment #4 from Alexey Neyman --- Or add a similar "return if debug level is terse" at the beginning of `gen_type_die` - I didn't notice that in C++ it could also get called not through the `add_type_attribute`: ``` diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 89e52a41508..b0f6680bd61 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -25709,6 +25709,9 @@ gen_type_die_with_usage (tree type, dw_die_ref context_die, static void gen_type_die (tree type, dw_die_ref context_die) { + if (debug_info_level <=3D DINFO_LEVEL_TERSE) + return; + if (type !=3D error_mark_node) { gen_type_die_with_usage (type, context_die, DINFO_USAGE_DIR_USE); ``` I verified that it makes the attached test case compile successfully.=