From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 14B603858D38; Mon, 6 May 2024 02:31:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 14B603858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714962711; bh=mtDmMYi97oep9caMElU1gbau/ZZ+x+GVlLnDppOHOOY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tUdduQbNtpWdNdX7FBQl/oEJSSDN6mUonHAnrBWQ33/FpLx0SkfidvzAflkDHeM9P uNV5prNcPujppPp56P22RKp/RmmNQfftq33V3f4dFBby1ll+yiImqb0nlA8U6jJORH OMfTdy1MuNoLrwnelAEq3UqC3/O1CpqP508dSgSI= From: "ldalessandro at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/93008] Need a way to make inlining heuristics ignore whether a function is inline Date: Mon, 06 May 2024 02:31:50 +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: 10.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ldalessandro at gmail dot com 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: 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=3D93008 --- Comment #15 from Luke Dalessandro --- (In reply to Jonathan Wakely from comment #5) >=20 > IMO the ideal solution is for GCC to stop using whether a function is inl= ine > as an optimisation hint. Then we wouldn't need some extra GCC-specific way > to override that. I'd vote to just do this and provide an attribute that's weaker than [[gnu::always_inline]] for those that need it. No need to change any underl= ying language stuff.=