public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/28230] [4.2 Regression] -O2 -fwrapv miscompiles gcc, binutils, gzip.
Date: Tue, 10 Oct 2006 14:33:00 -0000	[thread overview]
Message-ID: <20061010143250.30956.qmail@sourceware.org> (raw)
In-Reply-To: <bug-28230-7667@http.gcc.gnu.org/bugzilla/>



------- Comment #17 from rguenth at gcc dot gnu dot org  2006-10-10 14:32 -------
No, it's extract_range_from_binary_expr operating on [0, +INF] + [0, 65535] and
blindly using int_const_binop to compute the resulting range...

I believe the following is completely bogus and we cannot ignore overflows
in range arithmetic for wrapv either.

static inline tree
vrp_int_const_binop (enum tree_code code, tree val1, tree val2)
{
  tree res;

  if (flag_wrapv)
    return int_const_binop (code, val1, val2, 0);


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-09-21 03:31:17         |2006-10-10 14:32:50
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28230


  parent reply	other threads:[~2006-10-10 14:33 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-03  8:40 [Bug other/28230] New: ICE during profiled bootstrap pluto at agmk dot net
2006-07-03 11:25 ` [Bug other/28230] " pluto at agmk dot net
2006-07-04 21:16 ` pluto at agmk dot net
2006-08-03 20:39 ` [Bug other/28230] ICE during bootstrap (-O2 -fwrapv issue) pluto at agmk dot net
2006-08-03 20:41 ` pluto at agmk dot net
2006-08-03 20:42 ` pluto at agmk dot net
2006-09-01 20:11 ` pluto at agmk dot net
2006-09-19 13:08 ` [Bug other/28230] -O2 -fwrapv miscompiles gcc, binutils, gzip pluto at agmk dot net
2006-09-20 20:44 ` pluto at agmk dot net
2006-09-20 20:45 ` pluto at agmk dot net
2006-09-20 23:31 ` pluto at agmk dot net
2006-09-21  3:31 ` [Bug tree-optimization/28230] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-09-21  3:37 ` pinskia at gcc dot gnu dot org
2006-09-24  9:58 ` steven at gcc dot gnu dot org
2006-09-24 10:05 ` steven at gcc dot gnu dot org
2006-09-24 10:08 ` steven at gcc dot gnu dot org
2006-09-24 10:11 ` steven at gcc dot gnu dot org
2006-10-01 22:56 ` mmitchel at gcc dot gnu dot org
2006-10-10 14:33 ` rguenth at gcc dot gnu dot org [this message]
2006-10-11 10:45 ` patchapp at dberlin dot org
2006-10-11 16:06 ` rguenth at gcc dot gnu dot org
2006-10-11 16:06 ` rguenth at gcc dot gnu dot 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=20061010143250.30956.qmail@sourceware.org \
    --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).