From a0dc5e4ac9d0263c8c2d2d3f4029212833a26f6a Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 27 Apr 2011 01:17:10 -0400 Subject: [PATCH] ptree.c (cxx_print_type): Dump fullname. * ptree.c (cxx_print_type) [TYPENAME_TYPE]: Dump fullname. (cxx_print_identifier): Correct indentation. From-SVN: r173006 --- gcc/cp/ChangeLog | 3 +++ gcc/cp/ptree.c | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index fba4a032d51..2eabf118cb3 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2011-04-26 Jason Merrill + * ptree.c (cxx_print_type) [TYPENAME_TYPE]: Dump fullname. + (cxx_print_identifier): Correct indentation. + PR c++/48530 * decl.c (cxx_maybe_build_cleanup): Add complain parm. * tree.c (force_target_expr): Add complain parm. diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 49dc82b6354..a4c3ed5ed0c 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -99,6 +99,11 @@ cxx_print_type (FILE *file, tree node, int indent) print_node (file, "expr", DECLTYPE_TYPE_EXPR (node), indent + 4); return; + case TYPENAME_TYPE: + print_node (file, "fullname", TYPENAME_TYPE_FULLNAME (node), + indent + 4); + return; + default: return; } @@ -175,12 +180,12 @@ cxx_print_identifier (FILE *file, tree node, int indent) if (indent == 0) fprintf (file, " "); else - indent_to (file, indent); + indent_to (file, indent + 4); cxx_print_binding (file, IDENTIFIER_NAMESPACE_BINDINGS (node), "bindings"); if (indent == 0) fprintf (file, " "); else - indent_to (file, indent); + indent_to (file, indent + 4); cxx_print_binding (file, IDENTIFIER_BINDING (node), "local bindings"); print_node (file, "label", IDENTIFIER_LABEL_VALUE (node), indent + 4); print_node (file, "template", IDENTIFIER_TEMPLATE (node), indent + 4); -- 2.30.2