This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/31959] [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112
- From: "tbm at cyrius dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 May 2007 15:58:53 -0000
- Subject: [Bug middle-end/31959] [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112
- References: <bug-31959-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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