From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B63DB3857426; Fri, 23 Sep 2022 10:36:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B63DB3857426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663929393; bh=RFkpY+YoW7X59fVEMxoihYd8cFXIdxRdW0/6Whe8cKo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=J/9J7TNzzh1WRVTndtNwxMgnU3bmcW0pU2QjPDEIlyrGQRZyFLXy5UM0QG56xwRdv 0HiZCUxL2FlhDWM5W2Z9m98eGhBIEkalV/5Bxy01OG9DMbn027eEWjYxfdWE/BYM/J BBqIIkL2jksoMvo1saPnS3RK88rAcfqMQ+73nNAg= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/107014] flatten+lto fails the kernel build Date: Fri, 23 Sep 2022 10:36:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 12.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: cc 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=3D107014 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #8 from Jakub Jelinek --- Isn't cpumask_clear_cpu using __always_inline macro which expands to inline __attribute__((__always_inline__)) and so should be always inlined? Anyway, if you want to inline a particular function at some specific spot in some section, perhaps add a __flatten __always_inline wrapper around it perhaps also with __init section? With LTO flatten attribute will really try to inline everything that isn't explicitly noinline and is called from it into it.=