aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/ptree.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 8ed7828..a117b47 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2016-02-10 Jason Merrill <jason@redhat.com>
+
+ * ptree.c (debug_tree): Implement for cp_expr.
+
2016-02-08 Patrick Palka <ppalka@gcc.gnu.org>
PR c++/69139
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c
index 2c8ff99..8266e83 100644
--- a/gcc/cp/ptree.c
+++ b/gcc/cp/ptree.c
@@ -287,3 +287,11 @@ cxx_print_xnode (FILE *file, tree node, int indent)
break;
}
}
+
+/* Print the node NODE on standard error, for debugging. */
+
+DEBUG_FUNCTION void
+debug_tree (cp_expr node)
+{
+ debug_tree (node.get_value());
+}