This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch to print_node
- To: gcc-patches at gcc dot gnu dot org
- Subject: Patch to print_node
- From: Jason Merrill <jason at cygnus dot com>
- Date: Tue, 25 Apr 2000 16:27:42 -0700
In C++, the function-as-trees representation sets up TREE_CHAIN on all
the _STMT nodes, so we ought to print it.
2000-04-26 Jason Merrill <jason@casey.cygnus.com>
* print-tree.c (print_node): Print the chain of an _EXPR.
Index: print-tree.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/print-tree.c,v
retrieving revision 1.29
diff -c -p -r1.29 print-tree.c
*** print-tree.c 2000/04/18 19:35:08 1.29
--- print-tree.c 2000/04/25 22:59:39
*************** print_node (file, prefix, node, indent)
*** 613,618 ****
--- 613,619 ----
EXPR_WFL_FILENAME (node) : "(no file info)"),
EXPR_WFL_LINENO (node), EXPR_WFL_COLNO (node));
}
+ print_node (file, "chain", BLOCK_CHAIN (node), indent + 4);
break;
case 'c':