From eb68cb58219314b2df94efec3b9dc711b830f7e3 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Wed, 3 May 2000 22:25:21 +0000 Subject: cp-tree.def (THUNK_DECL): Remove. * 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. From-SVN: r33647 --- gcc/cp/expr.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gcc/cp/expr.c') diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c index c47d390..7573a79 100644 --- a/gcc/cp/expr.c +++ b/gcc/cp/expr.c @@ -128,10 +128,6 @@ cplus_expand_expr (exp, target, tmode, modifier) target, tmode, EXPAND_NORMAL); } - case THUNK_DECL: - my_friendly_assert (DECL_RTL (exp) != NULL_RTX, 20000115); - return DECL_RTL (exp); - case THROW_EXPR: expand_expr (TREE_OPERAND (exp, 0), const0_rtx, VOIDmode, 0); expand_internal_throw (); -- cgit v1.1