diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-16 19:45:32 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-16 19:45:32 +0000 |
commit | f8732e3f6ac4da3e123e7175e7a70fa31956a11c (patch) | |
tree | b4f81d3119e33454003b3194b8678c7292aaff83 /gcc/cp/cp-tree.def | |
parent | 68035ffb07de67c73847a78942a9f24b391c2058 (diff) | |
download | gcc-f8732e3f6ac4da3e123e7175e7a70fa31956a11c.tar.gz |
* cp-tree.def (THUNK_DECL): Add to documentation.
* cp-tree.h (flag_huge_objects): Declare.
* class.c (modify_vtable_entry): Tidy.
(update_vtable_entry_for_fn): Split out from dfs_modify_vtables.
Calculate delta appropriately for the new ABI.
(dfs_modify_vtables): Use it.
(modify_all_vtables): Fix thinko in code to add overriding copies
of functions to primary vtables.
(build_clone): Fix typo in comment.
(clone_function_decl): Correct order of destructors in vtable.
(build_vbase_offset_vtbl_entries): Adjust comment.
(dfs_vcall_offset_queue_p): Remove.
(dfs_build_vcall_offset_vtbl_entries): Update BV_VCALL_INDEX.
(build_vcall_offset_vtbl_entries): Juse use dfs_skip_vbases.
(build_vtable_entry): Correct check for pure virtual functions.
Don't declare flag_huge_objects.
* decl.c (flag_huge_objects): Remove declaration.
* method.c (make_thunk): Tweak mangling for vcall offset thunks.
Use int_size_in_bytes.
(emit_thunk): Handle vcall offset thunks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33185 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/cp-tree.def')
-rw-r--r-- | gcc/cp/cp-tree.def | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cp/cp-tree.def b/gcc/cp/cp-tree.def index 4f826ab053c..30ebe45b450 100644 --- a/gcc/cp/cp-tree.def +++ b/gcc/cp/cp-tree.def @@ -161,8 +161,10 @@ DEFTREECODE (TYPEOF_TYPE, "typeof_type", 't', 0) /* A thunk is a stub function. A THUNK_DECL is an alternate entry point for an ordinary - FUNCTION_DECL. It's job is to adjust the `this' poitner before - transferring control to the FUNCTION_DECL. + FUNCTION_DECL. The address of the ordinary FUNCTION_DECL is given + by the DECL_INITIAL, which is always an ADDR_EXPR whose operand is + a FUNCTION_DECL. The job of the thunk is to adjust the `this' + pointer before transferring control to the FUNCTION_DECL. A thunk may perform either, or both, of the following operations: |