diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-21 19:50:49 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-21 19:50:49 +0000 |
commit | e8c5dd3c270533339de45652fe2678d79b69b548 (patch) | |
tree | 7299b9f35d5895e7f2bece5ba6f090fe54eac045 /gcc/tree-dump.c | |
parent | 55943b4d758ee60bcf1e11b5da019360e877cd14 (diff) | |
download | gcc-e8c5dd3c270533339de45652fe2678d79b69b548.tar.gz |
* Makefile.in (tree-dump.o): Depend on tree-iterator.h.
* tree-dump.c (dequeue_and_dump): Dump STATEMENT_LISTs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82105 138bc75d-0d04-0410-961f-82ee72b054a4
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 55ab9389b0b..45accaee0ed 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) |