From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CB8043858D1E; Wed, 1 Nov 2023 14:08:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CB8043858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698847724; bh=fkSp1dLHFBsLEeB3lleI1Jv4SaC+4NJrZnCM7Wk7C6o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kvfV+FCd1BGCRt2Rb0KJ/F95T31qr39DjvJI1sR3EQY0WVJ41NwFXdEXDZ48oUKFI CgxYWYLKO+0I9bkkzbsGa/YvOJyxMQc+2B4rcfSJvS0cUXkEQWrueyXlCFiDjAkP7K rbl3eFknivmJyUsn5CRVySe3ogvE9q9ZgzfZnr4o= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107513] [Feature Request] Implement __attribute__((__nodebug__)) Date: Wed, 01 Nov 2023 14:08:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 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=3D107513 --- Comment #7 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #6) > The patch for PR 96780 added -ffold-simple-inlines which works for some > specific functions. This attribute would extend that to arbitrary functio= ns. I discussed this with Jason and Patrick, and the -ffold-simple-inlines effe= cts are not appropriate for implementing this attribute, because the attribute might get used on functions which cannot be trivially folded by the front e= nd. It would need to be implemented differently, but probably wouldn't be difficult.=