From a32fe88361897be902007f30dde2f7b1780329aa Mon Sep 17 00:00:00 2001 From: mmitchel Date: Sat, 3 Jun 2000 21:42:49 +0000 Subject: * cp-tree.h (TMPL_ARGS_LEVEL): Clarify comment. (INNERMOST_TEMPLATE_ARGS): New macro. (innermost_args): Remove. (get_innermost_template_args): New function. * decl2.c (arg_assoc_class): Use INNERMOST_TEMPLATE_ARGS. * error.c (dump_function_decl): Be caution when using most_general_template. * method.c (build_template_parm_names): Use INNERMOST_TEMPLATE_ARGS. * pt.c (add_to_template_args): Tidy comment (get_innermost_template_args): New function. (check_explicit_specialization): Clear DECL_INITIAL for a new specialization. (process_partial_specialization): Use INNERMOST_TEMPLATE_ARGS. Tidy. (push_template_decl): Always register specializations of the most general template. (convert_template_argument): Use INNERMOST_TEMPLATE_ARGS. (coerce_template_parms): Likewise. (lookup_template_class): Likewise. (innermost_args): Remove. (tsubst_decl): Use INNERMOST_TEMPLATE_ARGS. (tsubst_decl): Handle tricky specializations. Use get_innermost_template_args. (instantiate_template): Simplify handling of partial instantiations. (get_class_bindings): Use INNERMOST_TEMPLATE_ARGS. (most_general_template): Reimplement, in a more straightforward manner. (regenerate_decl_from_template): Tweak formatting. Use TMPL_ARGS_DEPTH for clarity. (set_mangled_name_for_template_decl): Use INNERMOST_ARGS. * dump.c (dequeue_and_dump): Dump information about thunks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34384 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/dump.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/cp/dump.c') diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c index 16cbba399b7..09fbf4bba8c 100644 --- a/gcc/cp/dump.c +++ b/gcc/cp/dump.c @@ -578,6 +578,13 @@ dequeue_and_dump (di) dump_string (di, "operator"); if (DECL_CONV_FN_P (t)) dump_string (di, "conversion"); + if (DECL_THUNK_P (t)) + { + dump_string (di, "thunk"); + dump_int (di, "dlta", THUNK_DELTA (t)); + dump_int (di, "vcll", THUNK_VCALL_OFFSET (t)); + dump_child ("fn", DECL_INITIAL (t)); + } if (DECL_GLOBAL_CTOR_P (t) || DECL_GLOBAL_DTOR_P (t)) { if (DECL_GLOBAL_CTOR_P (t)) -- cgit v1.2.1