public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.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 [thread overview] Message-ID: <bug-81809-4-gggCksIFux@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-81809-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81809 Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |10.1.0, 11.0, 8.2.0, 9.2.0 --- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- 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 = 0, b; f (&a, &b); } void h (void) { int a = 0, b; f (&a, 0); f (&b, 0); } z.c: In function ‘g’: z.c:6:3: warning: ‘b’ may be used uninitialized [-Wmaybe-uninitialized] 6 | f (&a, &b); | ^~~~~~~~~~ z.c:1:6: note: by argument 2 of type ‘const int *’ to ‘f’ declared here 1 | void f (const int*, const int*); | ^ z.c:5:14: note: ‘b’ declared here 5 | int a = 0, b; | ^
next parent reply other threads:[~2020-07-14 22:16 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-81809-4@http.gcc.gnu.org/bugzilla/> 2020-07-14 22:16 ` msebor at gcc dot gnu.org [this message] 2024-02-05 16:56 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-81809-4-gggCksIFux@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).