From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3623C386196A; Tue, 14 Jul 2020 22:16:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3623C386196A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594764970; bh=wvmiSoGwICyxf4zZRSKPFh2kTLl4GwAEUy5iLc+yURU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aH7HMGTI/ceDPxt3tCdi/tGsixdo8+VgPfdXf47HSpONsDpbqlNEpQ2wWxa4WoebY LHTdRTSyj74Vhsxbe8FgN+MbvkFEj9u27eWprhmn6WdyhA9Ozpzv/x42/GaKwXIFfJ HC9UKpL9bqf2qeezvJTCKYkH11NsbswU93u7WNXU= From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/81809] missing -Wuninitialized due to alias analysis limitation Date: Tue, 14 Jul 2020 22:16:10 +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: 8.0 X-Bugzilla-Keywords: alias, diagnostic 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: cf_known_to_fail 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, 14 Jul 2020 22:16:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81809 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |10.1.0, 11.0, 8.2.0, 9.2.0 --- Comment #4 from Martin Sebor --- Another test case for the same underlying bug. $ cat z.c && gcc -O2 -S -Wall z.c void f (const int*, const int*); void g (void) { int a =3D 0, b; f (&a, &b); } void h (void) { int a =3D 0, b; f (&a, 0); f (&b, 0); } z.c: In function =E2=80=98g=E2=80=99: z.c:6:3: warning: =E2=80=98b=E2=80=99 may be used uninitialized [-Wmaybe-un= initialized] 6 | f (&a, &b); | ^~~~~~~~~~ z.c:1:6: note: by argument 2 of type =E2=80=98const int *=E2=80=99 to =E2= =80=98f=E2=80=99 declared here 1 | void f (const int*, const int*); | ^ z.c:5:14: note: =E2=80=98b=E2=80=99 declared here 5 | int a =3D 0, b; | ^=