diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-03 22:25:21 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-03 22:25:21 +0000 |
commit | a2697ab6d3fade6e32a411145fa48b13e7a77bc5 (patch) | |
tree | fb395af6f8b13f1f1cb8bcb18746ecc90790f4c6 /gcc/cp/decl2.c | |
parent | 804371ff21c5223abfbc7954dcdf9bca43a08a66 (diff) | |
download | gcc-a2697ab6d3fade6e32a411145fa48b13e7a77bc5.tar.gz |
* cp-tree.def (THUNK_DECL): Remove.
* cp-tree.h (DECL_THUNK_P): New macro.
(DECL_NON_THUNK_FUNCTION_P): Likewise.
(DECL_EXTERN_C_FUNCTION_P): Likewise.
(SET_DECL_THUNK_P): Likewise.
(DELTA_FROM_VTABLE_ENTRY): Use DECL_THUNK_P.
(FNADDR_FROM_VTABLE_ENTRY): Likewise.
(DECL_MAIN_P): Use DECL_EXTERN_C_FUNCTION_P.
* decl.c (decls_match): Use DECL_EXTERN_C_P.
(duplicate_decls): Likewise.
(pushdecl): Likewise. Adjust thunk handling.
(grokfndecl): Use DECL_EXTERN_C_P.
* decl2.c (mark_vtable_entries): Use DECL_THUNK_P.
* dump.c (dequeue_and_dump): Remove THUNK_DECL handling.
* except.c (nothrow_libfn_p): Use DECL_EXTERN_C_P.
* expr.c (cplus_expand_expr): Remove THUNK_DECL handling.
* method.c (make_thunk): Use SET_DECL_THUNK_P. Set
DECL_NO_STATIC_CHAIN.
(emit_thunk): Don't play games with TREE_CODE on thunks. Don't
set DECL_DESTRUCTOR_P or DECL_CONSTRUCTOR_P on a thunk.
* search.c (covariant_return_p): Remove THUNK_DECL handling.
* ir.texi: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33647 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 30bf232ec9c..fe22c3b5622 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2338,7 +2338,7 @@ mark_vtable_entries (decl) fn = TREE_OPERAND (fnaddr, 0); TREE_ADDRESSABLE (fn) = 1; - if (TREE_CODE (fn) == THUNK_DECL && DECL_EXTERNAL (fn)) + if (DECL_THUNK_P (fn) && DECL_EXTERNAL (fn)) { DECL_EXTERNAL (fn) = 0; emit_thunk (fn); |