From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3789F385702E; Mon, 29 Mar 2021 21:29:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3789F385702E From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/61677] False positive with -Wmaybe-uninitialized (predicate analysis, VRP) Date: Mon, 29 Mar 2021 21:29:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: diagnostic, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor 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: cc 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: Mon, 29 Mar 2021 21:29:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61677 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #8 from Martin Sebor --- The false positive for the reduced test case from comment #4 was fixed by r220696. r11-7898 adds it to the testsuite. The unreduced test case from attachment 33055 still warns with GCC 11: $ gcc -O2 -S -Wall pr61677-c0.c=20 In file included from scripts/kconfig/zconf.tab.c:2537: scripts/kconfig/menu.c: In function =E2=80=98get_symbol_str=E2=80=99: scripts/kconfig/menu.c:590:18: warning: =E2=80=98jump=E2=80=99 may be used = uninitialized in this function [-Wmaybe-uninitialized] In file included from scripts/kconfig/zconf.tab.c:2537: scripts/kconfig/menu.c:551:19: note: =E2=80=98jump=E2=80=99 was declared he= re=