From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2BEFB3858C27; Wed, 15 Dec 2021 18:48:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2BEFB3858C27 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/40635] [12 Regression] bogus name and location in 'may be used uninitialized' warning Date: Wed, 15 Dec 2021 18:48:01 +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: 4.4.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc 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: Wed, 15 Dec 2021 18:48:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D40635 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|bogus name and location in |[12 Regression] bogus name |'may be used uninitialized' |and location in 'may be |warning |used uninitialized' warning --- Comment #17 from Martin Sebor --- In GCC 11 the statement in the phipopt2 dump does have a location so this p= art is a GCC 12 regression: [local count: 5226752]: [local count: 1073741824]: # _16 =3D PHI <[../pr40635.c:22:20] -1(3), [../pr40635.c:30:12] s42_20(7), [../pr40635.c:29:16] -1(8)> [../pr40635.c:38:5] foo (); [../pr40635.c:39:8] _28 =3D _16 < 0; [../pr40635.c:39:8] _5 =3D (int) _28; [../pr40635.c:39:8] _4 =3D -_5; return _4;=