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/stor-layout.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/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 4a55b66..8fd70ad 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -1254,15 +1254,7 @@ finalize_record_size (rli) unpadded_size_unit = size_binop (PLUS_EXPR, unpadded_size_unit, size_one_node); - /* Record the un-rounded size in the binfo node. But first we check - the size of TYPE_BINFO to make sure that BINFO_SIZE is available. */ - if (TYPE_BINFO (rli->t) && TREE_VEC_LENGTH (TYPE_BINFO (rli->t)) > 6) - { - TYPE_BINFO_SIZE (rli->t) = unpadded_size; - TYPE_BINFO_SIZE_UNIT (rli->t) = unpadded_size_unit; - } - - /* Round the size up to be a multiple of the required alignment */ + /* Round the size up to be a multiple of the required alignment */ #ifdef ROUND_TYPE_SIZE TYPE_SIZE (rli->t) = ROUND_TYPE_SIZE (rli->t, unpadded_size, TYPE_ALIGN (rli->t)); |