From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EEE57385842D; Sat, 18 Feb 2023 07:05:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EEE57385842D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676703939; bh=xd7kbb88rsDjvRDgoMlMJKt3eON6nZPUQX1lIra414w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oIm2pD8Ezc+JHViRZwEXo7P3TOnIzwor2PTc8zZc1i/b+GZYas+LO17ibjsB0A7Fk c5IqZ5OQYzH7ALvHIdHH9SnUXbuH8OCZatGM2e0N8Ib22sAFd1h5FB0avCCYgYfjC8 9aRIh69siA9CdbSurAPvq17zh/8Wrrlq3aYldLVA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/107931] [12/13 Regression] -Og causes always_inline to fail since r12-6677-gc952126870c92cf2 Date: Sat, 18 Feb 2023 07:05:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 12.3 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=3D107931 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D61782 --- Comment #12 from Andrew Pinski --- (In reply to rguenther@suse.de from comment #7) > It's even documented (I've marked the relevant sentence with > ---> ... <---): >=20 > @item always_inline > @cindex @code{always_inline} function attribute > Generally, functions are not inlined unless optimization is specified. > For functions declared inline, this attribute inlines the function > independent of any restrictions that otherwise apply to inlining. > Failure to inline such a function is diagnosed as an error. > ---> Note that if such a function is called indirectly the compiler may > or may not inline it depending on optimization level and a failure > to inline an indirect call may or may not be diagnosed. <--- And been documented that way since 2014 even (r5-1859-g3defdb14996a82 aka PR 61782)=