summaryrefslogtreecommitdiff
path: root/gcc/tree-pretty-print.c
diff options
context:
space:
mode:
authordberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-06 20:14:28 +0000
committerdberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-06 20:14:28 +0000
commitdce3d0649a17884475b70aab8cbc7b13dc4f70db (patch)
treebb35efa95eac118c385050ab7c5f9381ee87cb7e /gcc/tree-pretty-print.c
parent6ee8fda78f2e4ad7f0fefb3be95f8271f0927873 (diff)
downloadgcc-dce3d0649a17884475b70aab8cbc7b13dc4f70db.tar.gz
2004-10-06 Daniel Berlin <dberlin@dberlin.org>
* tree-pretty-print.c (dump_generic_node): Fix printing of BINFO and TREE_VEC nodes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88624 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r--gcc/tree-pretty-print.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index 9337c3856fd..12ba54a525e 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -285,8 +285,26 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
}
break;
- case TREE_VEC:
+ case TREE_BINFO:
dump_generic_node (buffer, BINFO_TYPE (node), spc, flags, false);
+
+ case TREE_VEC:
+ {
+ size_t i;
+ if (TREE_VEC_LENGTH (node) > 0)
+ {
+ size_t len = TREE_VEC_LENGTH (node);
+ for (i = 0; i < len - 1; i++)
+ {
+ dump_generic_node (buffer, TREE_VEC_ELT (node, i), spc, flags,
+ false);
+ pp_character (buffer, ',');
+ pp_space (buffer);
+ }
+ dump_generic_node (buffer, TREE_VEC_ELT (node, len - 1), spc,
+ flags, false);
+ }
+ }
break;
case BLOCK: