From: Jim Wilson Date: Wed, 16 Sep 1992 01:13:47 +0000 (-0700) Subject: (print_node): Don't print blank line for null fields in a TREE_VEC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3629f741df0c95e0dc0b4d8e5e45017026eabb56;p=gcc.git (print_node): Don't print blank line for null fields in a TREE_VEC. From-SVN: r2133 --- diff --git a/gcc/print-tree.c b/gcc/print-tree.c index 6b045b59121..648dace760a 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -601,12 +601,13 @@ print_node (file, prefix, node, indent) case TREE_VEC: len = TREE_VEC_LENGTH (node); for (i = 0; i < len; i++) - { - char temp[10]; - sprintf (temp, "elt %d", i); - indent_to (file, indent + 4); - print_node_brief (file, temp, TREE_VEC_ELT (node, i), 0); - } + if (TREE_VEC_ELT (node, i)) + { + char temp[10]; + sprintf (temp, "elt %d", i); + indent_to (file, indent + 4); + print_node_brief (file, temp, TREE_VEC_ELT (node, i), 0); + } break; case OP_IDENTIFIER: