Make debug_tree() print the length of a TREE_VEC
authorppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 Jun 2015 18:43:11 +0000 (18:43 +0000)
committerppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 Jun 2015 18:43:11 +0000 (18:43 +0000)
gcc/ChangeLog:

* print-tree.c (print_node) [TREE_VEC]: Print its length.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225100 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/print-tree.c

index 31ee3cb..80d3a36 100644 (file)
@@ -1,3 +1,7 @@
+2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
+
+       * print-tree.c (print_node) [TREE_VEC]: Print its length.
+
 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
 
        * gimple.c (gimple_call_set_fndecl): Remove.
index 0336167..1841d77 100644 (file)
@@ -807,6 +807,7 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
 
        case TREE_VEC:
          len = TREE_VEC_LENGTH (node);
+         fprintf (file, " length %d", len);
          for (i = 0; i < len; i++)
            if (TREE_VEC_ELT (node, i))
              {