From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1913A3858D34; Mon, 15 Apr 2024 02:18:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1913A3858D34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713147516; bh=MT8r5pLHS6FhYTI7H7XHrsTvcNiFTcibWplyAl4XyDU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LZ5JDIRKUabgMaREfvsvnOuP9wjY4DvZTdPb8TPKu9I+19urx4B7yAMPPHcjKZVaN AYRGFSoNmM2Prz3IkREud6LNkOX/C5pNLNEsyPHazCQ+Lbd0u+Qu0BfzP8N2st+f3Y j3oQ0BHlun4YslXm5OdztD0LhjIG+raQy20oAeQo= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/78322] Debug info still present for fully optimized away functions Date: Mon, 15 Apr 2024 02:18:35 +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: 6.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: see_also 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=3D78322 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D107513 --- Comment #4 from Andrew Pinski --- (In reply to David Blaikie from comment #2) > (In reply to Richard Biener from comment #1) > > We produce an abstract copy for use by repeated inline copies. >=20 > Yep! Is it still reasonable to consider it a bug (or at least a feature > request) that this is still produced even when no inline copies are emitt= ed? Not really.=20 Sounds like what you are aiming for is the nodebug attribute that you can u= se with always_inline. Basically in dwarf inline functions are still represent= ed as functions (calls) and most folks want that for their debugability of the= ir program but in this case you specific inlined functions not to have debug i= nfo which is exactly what nodebug would do ...=