aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2004-10-06 20:14:28 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2004-10-06 20:14:28 +0000
commit55e9452ed505b1421b6f58a752b69c4453a8dfdd (patch)
treebb35efa95eac118c385050ab7c5f9381ee87cb7e
parent44301a5952b1b74d2e1d6f333e0f3d0149ae27d3 (diff)
downloadgcc-55e9452ed505b1421b6f58a752b69c4453a8dfdd.zip
gcc-55e9452ed505b1421b6f58a752b69c4453a8dfdd.tar.gz
gcc-55e9452ed505b1421b6f58a752b69c4453a8dfdd.tar.bz2
tree-pretty-print.c (dump_generic_node): Fix printing of BINFO and TREE_VEC nodes.
2004-10-06 Daniel Berlin <dberlin@dberlin.org> * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO and TREE_VEC nodes. From-SVN: r88624
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-pretty-print.c20
2 files changed, 24 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 11f3dd6..f3a66c2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2004-10-06 Daniel Berlin <dberlin@dberlin.org>
+ * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
+ and TREE_VEC nodes.
+
+2004-10-06 Daniel Berlin <dberlin@dberlin.org>
+
* lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index 9337c38..12ba54a 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: