public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dberlin at dberlin dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/23386] [4.1 Regression] bitmap.c is being miscompiled (VRP)
Date: Sun, 14 Aug 2005 17:57:00 -0000	[thread overview]
Message-ID: <20050814175748.2107.qmail@sourceware.org> (raw)
In-Reply-To: <20050814153712.23386.danglin@gcc.gnu.org>


------- Additional Comments From dberlin at gcc dot gnu dot org  2005-08-14 17:57 -------
Subject: Re:  [4.1 Regression] bitmap.c is
	being miscompiled (VRP)

On Sun, 2005-08-14 at 17:32 +0000, pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-14 17:32 -------
> Here is something which is a little more reduced:
> int f[100];
> int g[100];
> unsigned char
> f1 (int a, int b)
> {
>   unsigned ix;
>   if (a == b)
>     return 1;
>   for (ix = 4; ix--;)
>       if (f[ix] != g[ix])
> 	  return 0;
>   return 1;
> }
> 
> int main(void)
> {
>   if (!f1 (1, 2))
>     __builtin_abort();
>   return 0;
> }
> 
> 
The SSA version used in the pointer arithmetic doesn't wrap. The other
SSA versions do.
We can't afford to simply assume that everything wraps, or else we can't
calculate the number of iterations on pretty much any loop.






-- 


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


  parent reply	other threads:[~2005-08-14 17:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-14 15:37 [Bug middle-end/23386] New: ICE: SIGSEGV at bitmap.c:780 danglin at gcc dot gnu dot org
2005-08-14 15:40 ` [Bug middle-end/23386] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-08-14 15:50 ` pinskia at gcc dot gnu dot org
2005-08-14 15:52 ` [Bug tree-optimization/23386] " pinskia at gcc dot gnu dot org
2005-08-14 15:53 ` pinskia at gcc dot gnu dot org
2005-08-14 17:16 ` pinskia at gcc dot gnu dot org
2005-08-14 17:18 ` [Bug tree-optimization/23386] [4.1 Regression] bitmap.c is being miscompiled (VRP) pinskia at gcc dot gnu dot org
2005-08-14 17:32 ` pinskia at gcc dot gnu dot org
2005-08-14 17:57   ` Daniel Berlin
2005-08-14 17:57 ` dberlin at dberlin dot org [this message]
2005-08-14 18:02 ` pinskia at gcc dot gnu dot org
2005-08-15  7:51 ` cvs-commit at gcc dot gnu dot org
2005-08-15 12:26 ` pinskia 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=20050814175748.2107.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).