From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 90D9F3951C3B; Thu, 13 Jan 2022 15:10:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90D9F3951C3B From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103989] [12 regression] std::optional and bogus -Wmaybe-unitialized at -Og since r12-1992-g6feb628a706e86eb Date: Thu, 13 Jan 2022 15:10:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de 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.0 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2022 15:10:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103989 --- Comment #17 from rguenther at suse dot de --- On Thu, 13 Jan 2022, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103989 >=20 > --- Comment #16 from Jakub Jelinek --- > Perhaps if we punt for -Og caller (and maybe -Og callees) on IPA inlining > except for always_inline, we could set some flag if IPA inlining happened= and > schedule some extra cleanup passes just for those rare cases? I'd rather not. At some point I wanted to refactor the main opt pipeline to work like this and skip some of the early passes there if we did _not_ inline ... > Though arguably, if a call to always_inline function was indirect during > einline, we don't need to guarantee that it will be inlined. > But, what about -Og -fno-early-inlining? -Og -fno-early-inline will still do always inline inlining early. /* Even when not optimizing or not inlining inline always-inline functions. */ inlined =3D inline_always_inline_functions (node);=