From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D865F3858405; Thu, 7 Apr 2022 09:39:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D865F3858405 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94905] [10/11 Regression] Bogus warning -Werror=maybe-uninitialized Date: Thu, 07 Apr 2022 09:39:33 +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: 9.3.0 X-Bugzilla-Keywords: diagnostic, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords 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, 07 Apr 2022 09:39:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94905 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-bisection --- Comment #15 from Richard Biener --- (In reply to Martin Li=C5=A1ka from comment #14) > >=20 > > and the partial uninitialized read from it is not what the uninit pass = can > > diagnose (it's memory walking stops at the first may-def, it does not > > prune must-def ranges). But even with -fno-tree-loop-distribute-patter= ns > > -fno-tree-vectorize where we get similar IL as with GCC 11 we do not wa= rn so > > I wonder > > what fixed it on trunk (when you add those options). >=20 > It was fixed with r11-3659-gac1c65ad1a16d83e. But the original testcase still warns on the branch but not trunk, so that cannot be it.=