This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/31959] [4.3 Regression] ICE in expand_builtin_expect, at builtins.c:5112



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]