From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C8CEC3858D32; Tue, 21 Feb 2023 13:32:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C8CEC3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676986340; bh=1ctttCkzu21WysK/MDpBeAw2+yFCoS21643fX5OSN6I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hTIjWmJR1RW6xA9T/mfFyPWqBQu7m7om8uLGYra1oS6GZFaJED8XWil9gFfJYqpKG PqI7inoyDsWES+K0n3YquU7Gmd4dKMF9DhEvcaE49M0cZhoqg7b/uFsO/P7D1GkT8M jjWd3admwrW1W89c4Ty+RqPRpBJOHtC3ycuGiheE= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/108772] [13 Regression] ICE in force_decl_die, at dwarf2out.cc:26751 since r13-4161-g32d16fe9d7e347bc Date: Tue, 21 Feb 2023 13:32:20 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108772 --- Comment #8 from Richard Biener --- diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc index 1f39df3b1e2..5a2538f80e1 100644 --- a/gcc/dwarf2out.cc +++ b/gcc/dwarf2out.cc @@ -27282,7 +27282,7 @@ dwarf2out_late_global_decl (tree decl) /* We may have to generate full debug late for LTO in case debug was not enabled at compile-time or the target doesn't support the LTO early debug scheme. */ - if (! die && in_lto_p) + if (! die && in_lto_p && (TARGET_PECOFF || TARGET_COFF)) dwarf2out_decl (decl); else if (die) { tests clean though. Obviously that will cease creating debug info for all late generated decls, even when done explicitely (like for late generated clones).=