public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/49705] -Wstrict-overflow should not diagnose unevaluated expressions Date: Tue, 12 Jul 2011 16:43:00 -0000 [thread overview] Message-ID: <bug-49705-4-vIIiyYLzLT@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-49705-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49705 --- Comment #5 from Ian Lance Taylor <ian at airs dot com> 2011-07-12 16:42:07 UTC --- My proposed patch also fixes the larger test case. Without the patch I see this: strict-overflow-bug.c: In function ‘check_image_width’: strict-overflow-bug.c:14:4: warning: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Wstrict-overflow] With the patch I see no warning. This is compiling with -O2 -Wstrict-overflow.
next prev parent reply other threads:[~2011-07-12 16:43 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-07-11 18:18 [Bug c/49705] New: " eggert at gnu dot org 2011-07-12 8:57 ` [Bug middle-end/49705] " rguenth at gcc dot gnu.org 2011-07-12 14:25 ` ian at airs dot com 2011-07-12 14:26 ` ian at airs dot com 2011-07-12 16:34 ` eggert at gnu dot org 2011-07-12 16:43 ` ian at airs dot com [this message] 2011-07-12 22:48 ` ian at airs dot com 2011-07-21 21:31 ` ian at gcc dot gnu.org 2011-07-21 21:32 ` ian at airs dot com 2011-09-21 15:47 ` manu 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-49705-4-vIIiyYLzLT@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).