public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/27173] [4.0 regression] ICE with -O -ftrapv
Date: Wed, 03 May 2006 10:56:00 -0000	[thread overview]
Message-ID: <20060503105636.17658.qmail@sourceware.org> (raw)
In-Reply-To: <bug-27173-1710@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from reichelt at gcc dot gnu dot org  2006-05-03 10:56 -------
The testcase in comment #3 only crashes on x86_64-unknown-linux-gnu,
but not on i686-pc-linux-gnu.

The testcase below crashes on both archs:

===================================
char *p, *q;

inline int foo(int i)
{
  int j = (p - q) + i;
  return -j;
}

void bar()
{
  int n, i;

  for (n = 7; n-- > 0; )
    for (i = n; i-- > 0; )
      if (i)
        p += foo(i-1);
}
===================================


-- 


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


  parent reply	other threads:[~2006-05-03 10:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-14 20:20 [Bug middle-end/27173] New: " bagnara at cs dot unipr dot it
2006-04-14 20:22 ` [Bug middle-end/27173] " bagnara at cs dot unipr dot it
2006-04-14 21:17 ` pinskia at gcc dot gnu dot org
2006-04-19 20:07 ` [Bug middle-end/27173] [4.0 regression] " reichelt at gcc dot gnu dot org
2006-05-03 10:56 ` reichelt at gcc dot gnu dot org [this message]
2007-02-03 16:51 ` gdr 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=20060503105636.17658.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).