Make debug_tree() print the length of a TREE_VEC

gcc/ChangeLog:

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

From-SVN: r225100
This commit is contained in:
Patrick Palka 2015-06-27 18:43:11 +00:00
parent b55b02ead4
commit e8bfc7f817
2 changed files with 5 additions and 0 deletions

View 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.

View 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))
{