From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C42B9385840E; Sat, 18 Feb 2023 06:32:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C42B9385840E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676701932; bh=nrCyY4FYCOrNvAgk8TQweDQYLbfIOQNDDX8P2COtFAI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DD9XAI1cMvAJ85hfOhS7iB7jQ0aZphSq8j5gpkTigbgIQNJoRW1W4W1JdU/tMBHJY HMPHik3FwpdVnEDbuFnPiliPYWy6VCk+h1QMwuCAN/sSPupbu/HxNH5Wl9NEbeDu+R /W3kQMkCla8JYFqHNLO/5/em6a1lTuyby9HEuYYs= From: "ishikawa at yk dot rim.or.jp" 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 06:32:11 +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: ishikawa at yk dot rim.or.jp 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: cc attachments.created 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 ishikawa,chiaki changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ishikawa at yk dot rim.or.= jp --- Comment #10 from ishikawa,chiaki --- Created attachment 54483 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54483&action=3Dedit The source file that exhibits the failure to inline always_inline functions. I have a similar problem compiling Thunderbird mail client with GCC-12. A couple of always_inline functions cannot be inlined and errors are diagno= sed. I am a bit perplexed that gcc-10 and gcc-11 did not seem to have the proble= m. Also, I am wondering if I am seeing the same issue discussed here or not because I think the functions are declared in the proper topological order (that is, the function that is called is declared in a manner that the call= ee is defined before the caller.) Yes, there is an indirect function call, that may be the reason of the fail= ure. I am attaching a preprocessed source file and the script to compile it to c= ause the failure.=20 The presence of -Og is essential. If we remove -Og, the compilation succeed= s.=