diff options
author | Nathan Sidwell <nathan@gcc.gnu.org> | 2004-07-26 08:23:58 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2004-07-26 08:23:58 +0000 |
commit | 63d1c7b35fe104326f278f45daf20743853920bb (patch) | |
tree | a52bd0b1bb36a9dba1bfbf17a55c904a10884e28 /gcc/cp/rtti.c | |
parent | 9b4f6a07a51dd570a2c50fe944e1fbd91f766e76 (diff) | |
download | gcc-63d1c7b35fe104326f278f45daf20743853920bb.zip gcc-63d1c7b35fe104326f278f45daf20743853920bb.tar.gz gcc-63d1c7b35fe104326f278f45daf20743853920bb.tar.bz2 |
tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
.: * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
(BINFO_BASE_ACCESS): Adjust.
(BINFO_BASE_ACCESS_APPEND): New.
(struct tree_binfo): Make base_accesses a VEC(tree) pointer.
* dbxout.c (dbxout_type): Adjust binfo access accessing.
* dwarf2out.c (gen_member_die): Likewise.
* tree-dump.c (deque_and_dump): Likewise.
cp:
* decl.c (xref_basetypes): Adjust base access vector creation.
* rtti.c (get_pseudo_ti_init, get_pseudo_ti_desc): Adjust base
access accesses.
* search.c (dynamic_cast_base_recurse, dfs_access_in_type): Likewise.
From-SVN: r85187
Diffstat (limited to 'gcc/cp/rtti.c')
-rw-r--r-- | gcc/cp/rtti.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index 7332a9a..c6c9fc6 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -1052,7 +1052,7 @@ get_pseudo_ti_init (tree type, tree var_desc, bool *non_public_p) int hint = class_hint_flags (type); tree binfo = TYPE_BINFO (type); int nbases = BINFO_N_BASE_BINFOS (binfo); - tree base_accesses = BINFO_BASE_ACCESSES (binfo); + VEC (tree) *base_accesses = BINFO_BASE_ACCESSES (binfo); tree base_inits = NULL_TREE; int ix; @@ -1065,7 +1065,7 @@ get_pseudo_ti_init (tree type, tree var_desc, bool *non_public_p) tree tinfo; tree offset; - if (TREE_VEC_ELT (base_accesses, ix) == access_public_node) + if (VEC_index (tree, base_accesses, ix) == access_public_node) flags |= 2; tinfo = get_tinfo_ptr (BINFO_TYPE (base_binfo)); if (BINFO_VIRTUAL_P (base_binfo)) @@ -1199,12 +1199,12 @@ get_pseudo_ti_desc (tree type) else { tree binfo = TYPE_BINFO (type); - tree base_accesses = BINFO_BASE_ACCESSES (binfo); + VEC (tree) *base_accesses = BINFO_BASE_ACCESSES (binfo); tree base_binfo = BINFO_BASE_BINFO (binfo, 0); int num_bases = BINFO_N_BASE_BINFOS (binfo); if (num_bases == 1 - && TREE_VEC_ELT (base_accesses, 0) == access_public_node + && VEC_index (tree, base_accesses, 0) == access_public_node && !BINFO_VIRTUAL_P (base_binfo) && integer_zerop (BINFO_OFFSET (base_binfo))) /* single non-virtual public. */ |