diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-31 14:46:55 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-31 14:46:55 +0000 |
commit | 4b922c0c31c1f0aa6c76cbd27a370b85ca0c201a (patch) | |
tree | f9db26320f2c4a347eadef38033370d1da458f7e /gcc/stor-layout.c | |
parent | cea21d59c1bf0ad2b4c6414fa542cba27485282c (diff) | |
download | gcc-4b922c0c31c1f0aa6c76cbd27a370b85ca0c201a.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62180 138bc75d-0d04-0410-961f-82ee72b054a4
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 4a55b66b952..8fd70adf143 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)); |