From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4CC7C3858423; Tue, 30 Nov 2021 16:02:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4CC7C3858423 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/101912] -Wmaybe-uninitialized false alarm in tzdb localtime.c Date: Tue, 30 Nov 2021 16:02:39 +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: 11.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh 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 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: Tue, 30 Nov 2021 16:02:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101912 --- Comment #3 from Aldy Hernandez --- > && !(leapcnt =3D=3D 0 > || (prevcorr < corr > ? corr =3D=3D prevcorr + 1 > : (corr =3D=3D prevcorr > || corr =3D=3D prevcorr - 1))))) >=20 I guess the question is whether language rules allow us to read prevcorr wh= en leapcnt=3D=3D 0? Like we're doing here: > and after ifcombine we have: >=20 > [local count: 996582262]: > _1 =3D corr_14 =3D=3D 1; > _2 =3D leapcnt_5 !=3D 0; > _3 =3D _1 & _2; > _19 =3D prevcorr_4 !=3D 1; > _16 =3D _3 & _19; > _21 =3D prevcorr_4 !=3D 2; > _18 =3D _16 & _21; > if (_18 !=3D 0) > goto ; [1.21%] > else > goto ; [98.79%]=