aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.def
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-04-16 19:45:32 +0000
committerMark Mitchell <mark@codesourcery.com>2000-04-16 19:45:32 +0000
commit5aa00850fbe261e4db131785ca97607a8997b99c (patch)
treeb4f81d3119e33454003b3194b8678c7292aaff83 /gcc/cp/cp-tree.def
parentc351014bfca82905469f67862932a02fda640f09 (diff)
* 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: https://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.def6
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: