cp-tree.h (build_shared_int_cst): New function.
authorMark Mitchell <mark@codesourcery.com>
Mon, 17 Jan 2000 22:54:23 +0000 (22:54 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 17 Jan 2000 22:54:23 +0000 (22:54 +0000)
commita68ad5bdee43a9796ae1f0f324508a5bff4f7cb0
treee1f075186f74de41949ee32a597ec75cc91eb112
parente41e26be41ba7e39df1dff5ef47f9a06a55281cc
cp-tree.h (build_shared_int_cst): New function.

* cp-tree.h (build_shared_int_cst): New function.
* call.c (build_over_call): Use DECL_VIRTUAL_CONTEXT, for clarity.
* class.c (modify_vtable_entry): Likewise.
(add_virtual_function): Split out code to generated shared
INTEGER_CSTs to build_share_int_cst.
(modify_all_vtables): Handle all the overridden functions here.
Add overridden functions from non-primary virtual bases to the
primary vtable.
(finish_struct_1): Adjust call to modify_all_vtables.  Add
overridden functions from non-primary bases to the vtable.
* tree.c (build_shared_int_cst): New function.

From-SVN: r31476
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/tree.c