From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B0E383858C98; Thu, 16 May 2024 11:23:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B0E383858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715858632; bh=3tr3IWfinAxRYxMHBzoQ04BP9c2W8MMiO9ZK7bWpRdY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YFQQfrkxy9oBQHqeYvxdQoxeFI0DkMX8FHaPmp+1q5hgh4XSE0iVCHpVGP0GDqT/7 /IzDiYGgzZWNswmJytxLW8dzUbONPKY7onhYk9Lp9FPonYZ2axrzLv20m7GlhLMByr C5SU1tSI5BDMsGIZ1P1Vv3mX+uNpQBaAdXT9rqeE= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/96564] [11/12/13/14/15 Regression] New maybe use of uninitialized variable warning since r11-959 Date: Thu, 16 May 2024 11:23:52 +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: 11.0 X-Bugzilla-Keywords: alias, diagnostic, missed-optimization 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: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96564 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2020-08-11 00:00:00 |2024-5-16 CC| |aldyh at gcc dot gnu.org --- Comment #17 from Richard Biener --- Handling pointer-vs-pointer in ptrs_compare_unequal isn't enough since we h= ave # PT =3D nonlocal null unsigned int * x_7(D) =3D x; ... # PT =3D null { D.2785 } a_9 =3D malloc (_2); if (a_9 =3D=3D 0B)=20 goto ; [0.04%] else goto ; [99.96%] [local count: 429496]: goto ; [100.00%] [local count: 1073312328]: if (x_7(D) !=3D a_9) so querying points-to only has to consider both pointers being NULL. Now, I'm not sure how prange handles the above and whether or how it integrates knowledge from flow-insensitive points-to analysis. Aldy might know. I'm testing a patch enhancing ptrs_compare_unequal right now, also filling in a missing bit in points-to info.=