[Bug middle-end/31959] [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112
tbm at cyrius dot com
gcc-bugzilla@gcc.gnu.org
Wed May 16 15:59:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list