public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/49706] No warning for (!x > 1) which is always false Date: Tue, 12 Jul 2011 09:28:00 -0000 [thread overview] Message-ID: <bug-49706-4-whPL8wzqMN@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-49706-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49706 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-12 09:27:38 UTC --- -Wtype-limits is apparently just in shorten_compare and vrp, while here it is optimized by fold. For _Bool x; ... if (x > 1) or struct { unsigned int i : 1; } x; ... if (x.i > 1) we don't warn either.
next prev parent reply other threads:[~2011-07-12 9:28 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-07-11 22:34 [Bug c/49706] New: " pinskia at gcc dot gnu.org 2011-07-12 8:53 ` [Bug c/49706] " rguenth at gcc dot gnu.org 2011-07-12 9:28 ` jakub at gcc dot gnu.org [this message] 2014-06-01 18:31 ` pinskia at gcc dot gnu.org 2014-06-01 18:46 ` mpolacek at gcc dot gnu.org 2014-06-05 6:20 ` mpolacek at gcc dot gnu.org 2014-06-05 6:23 ` mpolacek at gcc dot gnu.org 2014-09-01 9:32 ` mpolacek at gcc dot gnu.org 2015-04-22 11:58 ` jakub at gcc dot gnu.org 2015-07-16 9:12 ` rguenth at gcc dot gnu.org 2022-01-09 0:47 ` 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-49706-4-whPL8wzqMN@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).