This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch to print_node


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':

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]