From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 74BD73857343; Fri, 23 Sep 2022 08:04:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74BD73857343 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663920286; bh=ZH37jFLRCGqSfxrSCMa1tss0gfYtlOaTaPbiJQK6FYw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=THfVf+tIv2uXM2wdrV/0Bxs3aNNcqoWOg3dJyhw5iyoxX8JwXkj73SDGFFbtgjIt+ SlDodg4ZNEla9LOAVSLvGXmZFJiKtNHFB9aVhdNJzxzZjOA5SNkvWBXGbHi83WsnQD os7RJyqIpgJLoK+MRbchLCbQIlY3b0nHv7LmHzKU= From: "rguenth 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 08:04:46 +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: rguenth 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=3D107014 --- Comment #2 from Richard Biener --- The whole point of "flatten" is that there's _no_ limit. Looking at the function I don't see why you'd ever use that? If the desire is to force inlining a specific call then I think there's currently no good way to get that. It doesn't seem to be possible to use an always-inline alias to get this behavior at least. Some not existing #pragma GCC inline might be a better solution than "flatten". But as said, I'd just remove "flatten" - is it known what it was added for?=