Make debug_tree() print the length of a TREE_VEC
authorPatrick Palka <ppalka@gcc.gnu.org>
Sat, 27 Jun 2015 18:43:11 +0000 (18:43 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Sat, 27 Jun 2015 18:43:11 +0000 (18:43 +0000)
gcc/ChangeLog:

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

From-SVN: r225100

gcc/ChangeLog
gcc/print-tree.c

index 31ee3cb3ef51255593bc4f256b1166b7fde06461..80d3a36f8cc2fa9464778b251d066d575c87ffc4 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 0336167bee1b6524f2f3fb38838ada8935e946e3..1841d77f8930b4f111f134f13cce0785ebb688a2 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))
              {