public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/67662] -fsanitize=undefined cries wolf for X - 1 + X when X is 2**30
Date: Wed, 23 Sep 2015 14:10:00 -0000	[thread overview]
Message-ID: <bug-67662-4-kxU3c3Cvsd@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-67662-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67662

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Sep 23 14:09:48 2015
New Revision: 228051

URL: https://gcc.gnu.org/viewcvs?rev=228051&root=gcc&view=rev
Log:
2015-09-23   Richard Biener  <rguenther@suse.de>

        PR middle-end/67662
        * fold-const.c (fold_binary_loc): Do not reassociate two vars with
        undefined overflow unless they will cancel out.

        * gcc.dg/ubsan/pr67662.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/ubsan/pr67662.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


      parent reply	other threads:[~2015-09-23 14:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-21  6:26 [Bug sanitizer/67662] New: " eggert at gnu dot org
2015-09-21  7:47 ` [Bug middle-end/67662] " rguenth at gcc dot gnu.org
2015-09-23 10:47 ` rguenth at gcc dot gnu.org
2015-09-23 14:10 ` rguenth at gcc dot gnu.org [this message]

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-67662-4-kxU3c3Cvsd@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: link
Be 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).