diff options
author | Richard Henderson <rth@redhat.com> | 2004-05-21 12:50:49 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-05-21 12:50:49 -0700 |
commit | 11ed191c4f03b96e9731aead38d1b467af69c178 (patch) | |
tree | 7299b9f35d5895e7f2bece5ba6f090fe54eac045 /gcc/tree-dump.c | |
parent | 32da620821cb3008eab38080a9292599f1ee3d58 (diff) | |
download | gcc-11ed191c4f03b96e9731aead38d1b467af69c178.zip gcc-11ed191c4f03b96e9731aead38d1b467af69c178.tar.gz gcc-11ed191c4f03b96e9731aead38d1b467af69c178.tar.bz2 |
Makefile.in (tree-dump.o): Depend on tree-iterator.h.
* Makefile.in (tree-dump.o): Depend on tree-iterator.h.
* tree-dump.c (dequeue_and_dump): Dump STATEMENT_LISTs.
From-SVN: r82105
Diffstat (limited to 'gcc/tree-dump.c')
-rw-r--r-- | gcc/tree-dump.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c index 55ab938..45accae 100644 --- a/gcc/tree-dump.c +++ b/gcc/tree-dump.c @@ -29,6 +29,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "toplev.h" #include "tree-dump.h" #include "langhooks.h" +#include "tree-iterator.h" static unsigned int queue (dump_info_p, tree, int); static void dump_index (dump_info_p, unsigned int); @@ -397,6 +398,18 @@ dequeue_and_dump (dump_info_p di) dump_child ("chan", TREE_CHAIN (t)); break; + case STATEMENT_LIST: + { + tree_stmt_iterator it; + for (i = 0, it = tsi_start (t); !tsi_end_p (it); tsi_next (&it), i++) + { + char buffer[32]; + sprintf (buffer, "%u", i); + dump_child (buffer, tsi_stmt (it)); + } + } + break; + case TREE_VEC: dump_int (di, "lngt", TREE_VEC_LENGTH (t)); for (i = 0; i < TREE_VEC_LENGTH (t); ++i) |