public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tbm at cyrius dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/31959] [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112
Date: Wed, 16 May 2007 15:59:00 -0000	[thread overview]
Message-ID: <20070516155853.23482.qmail@sourceware.org> (raw)
In-Reply-To: <bug-31959-12387@http.gcc.gnu.org/bugzilla/>



------- Comment #1 from tbm at cyrius dot com  2007-05-16 16:58 -------
struct btree_priv *area;
typedef struct bt_node_t
{
  int next;
  int used;
}
bt_leaf_t;
typedef union bt_page_t
{
  bt_leaf_t leaf;
}
bt_page_t;
static inline bt_page_t *
vbt_deref (struct btree_priv *bt)
{
}
static inline bt_page_t *
bt_deref (const struct btree_priv *bt)
{
  return vbt_deref ((struct btree_priv *) bt);
}
btree_fetch (struct btree_priv *area)
{
  int pos;
  const bt_leaf_t *leaf;
      if (__builtin_expect ((pos + 1 >= leaf->used), 0))
        {
          leaf = &bt_deref (area)->leaf;
        }
}


-- 


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


  reply	other threads:[~2007-05-16 15:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-16 15:58 [Bug middle-end/31959] New: " tbm at cyrius dot com
2007-05-16 15:59 ` tbm at cyrius dot com [this message]
2007-06-11 23:09 ` [Bug middle-end/31959] " pinskia at gcc dot gnu dot org
2007-06-11 23:11 ` pinskia at gcc dot gnu dot org
2007-06-11 23:13 ` pinskia at gcc dot gnu dot org
2007-06-20  6:40 ` jakub at gcc dot gnu dot org
2007-06-20  9:48 ` jakub 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=20070516155853.23482.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).