OSDN Git Service

1999-12-20 Mark Mitchell <mark@codesourcery.com>
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Dec 1999 02:11:10 +0000 (02:11 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Dec 1999 02:11:10 +0000 (02:11 +0000)
commit4446df622ab24a3d32f9eb65a1a908399a2a2ef6
tree1baa694ed75cd886a2915d1c87150fa270a1062e
parent1d6228f0cff4ecabb43305c19e742dcf60fbbe7e
1999-12-20  Mark Mitchell  <mark@codesourcery.com>

* cp-tree.h (CLASSTYPE_VFIELD_PARENT): Update comments.
(CLASSTYPE_HAS_PRIMARY_BASE_P): New macro.
(CLASSTYPE_PRIMARY_BINFO): Likewise.
* class.c (check_methods): Don't set TYPE_HAS_COMPLEX_INIT_REF,
TYPE_NEEDS_CONSTRUCTING, and CLASSTYPE_NON_AGGREGATE here.
(check_bases_and_members): Set them here instead.
(create_vtable_ptr): New function, split out from ...
(finish_struct_1): ... here.  Use it.  Tidy.  Use
CLASSTYPE_HAS_PRIMARY_BASE_P and CLASSTYPE_PRIMARY_BINFO.
* search.c (dfs_init_vbase_pointers): Handle seeing TYPE_VFIELD as
the first field in the class.
* tree.c (layout_basetypes): Use CLASSTYPE_N_BASECLASSES.  Handle
seeing TYPE_VFIELD as the first field in the class.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31042 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/search.c
gcc/cp/tree.c