diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2003-01-31 14:46:55 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2003-01-31 14:46:55 +0000 |
commit | 1824b90d080d42328675176590f8ad08e31fd5ad (patch) | |
tree | f9db26320f2c4a347eadef38033370d1da458f7e /gcc/java/class.c | |
parent | 8f9a402caa6504394a3292da303cdcd84df2e89a (diff) | |
download | gcc-1824b90d080d42328675176590f8ad08e31fd5ad.zip gcc-1824b90d080d42328675176590f8ad08e31fd5ad.tar.gz gcc-1824b90d080d42328675176590f8ad08e31fd5ad.tar.bz2 |
tree.h (TYPE_BINFO_SIZE, [...]): Remove.
* tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
(BINFO_ELTS): New #define.
* stor-layout.c (finalize_record_size): Don't set them.
* cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
(BINFO_LANG_ELTS): New #define.
* cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
* java/class.c (make_class): Use BINFO_ELTS.
(set_super_info): Likewse.
(add_interface_do): Likewise.
* objc/objc-act.c (start_class): Use BINFO_ELTS.
From-SVN: r62180
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index dfaf6f1..43468b3 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -275,7 +275,7 @@ make_class (void) { tree type; type = make_node (RECORD_TYPE); - TYPE_BINFO (type) = make_tree_vec (6); + TYPE_BINFO (type) = make_tree_vec (BINFO_ELTS); MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC (type); return type; @@ -360,7 +360,7 @@ set_super_info (int access_flags, tree this_class, TYPE_BINFO_BASETYPES (this_class) = make_tree_vec (total_supers); if (super_class) { - tree super_binfo = make_tree_vec (6); + tree super_binfo = make_tree_vec (BINFO_ELTS); BINFO_TYPE (super_binfo) = super_class; BINFO_OFFSET (super_binfo) = integer_zero_node; TREE_VIA_PUBLIC (super_binfo) = 1; @@ -492,7 +492,7 @@ int common_enclosing_context_p (tree type1, tree type2) static void add_interface_do (tree basetype_vec, tree interface_class, int i) { - tree interface_binfo = make_tree_vec (6); + tree interface_binfo = make_tree_vec (BINFO_ELTS); BINFO_TYPE (interface_binfo) = interface_class; BINFO_OFFSET (interface_binfo) = integer_zero_node; BINFO_VPTR_FIELD (interface_binfo) = integer_zero_node; |