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]
Other format: [Raw text]

[lto] Remove dump_block_tree


Thanks to Honza for pointing out the existing block scope dumping
routines (dump_scope_blocks).

The whitespace changes in dump_block_node are to make it
identical to the version I committed to mainline earlier.

Tested on x86_64.


Diego.


	* tree-pretty-print.c (dump_block_node): Tidy white
	space in dump.
	* tree.c (dump_block_tree): Remove.
	(debug_block_tree): Remove.
	* tree.h (dump_block_tree): Remove.
	(debug_block_tree): Remove.

Index: tree-pretty-print.c
===================================================================
--- tree-pretty-print.c	(revision 147881)
+++ tree-pretty-print.c	(working copy)
@@ -449,16 +449,16 @@ dump_block_node (pretty_printer *buffer,
 {
   tree t;
 
-  pp_printf (buffer, "BLOCK #%d", BLOCK_NUMBER (block));
+  pp_printf (buffer, "BLOCK #%d ", BLOCK_NUMBER (block));
 
   if (flags & TDF_ADDRESS)
-    pp_printf (buffer, " [%p]", (void *) block);
+    pp_printf (buffer, "[%p] ", (void *) block);
 
   if (BLOCK_ABSTRACT (block))
-    pp_string (buffer, " [abstract]");
+    pp_string (buffer, "[abstract] ");
 
   if (TREE_ASM_WRITTEN (block))
-    pp_string (buffer, " [written]");
+    pp_string (buffer, "[written] ");
 
   if (flags & TDF_SLIM)
     return;
Index: tree.c
===================================================================
--- tree.c	(revision 147880)
+++ tree.c	(working copy)
@@ -10036,29 +10001,4 @@ list_equal_p (const_tree t1, const_tree 
   return !t1 && !t2;
 }
 
-
-/* Dump the tree of lexical bindings starting at BLOCK to FILE.  FLAGS
-   is as in print_generic_expr.  */
-
-void
-dump_block_tree (FILE *file, tree block, int flags)
-{
-  tree t;
-
-  print_generic_expr (file, block, flags);
-  fprintf (file, "\n");
-  for (t = BLOCK_SUBBLOCKS (block); t; t = BLOCK_CHAIN (t))
-    dump_block_tree (file, t, flags);
-}
-
-
-/* Dump the tree of lexical bindings starting at BLOCK to stderr.  FLAGS
-   is as in print_generic_expr.  */
-
-void
-debug_block_tree (tree block, int flags)
-{
-  dump_block_tree (stderr, block, flags);
-}
-
 #include "gt-tree.h"
Index: tree.h
===================================================================
--- tree.h	(revision 147880)
+++ tree.h	(working copy)
@@ -4659,8 +4659,6 @@ extern const char *get_name (tree);
 extern bool stdarg_p (tree);
 extern bool prototype_p (tree);
 extern bool auto_var_in_fn_p (const_tree, const_tree);
-extern void dump_block_tree (FILE *, tree, int);
-extern void debug_block_tree (tree, int);
 
 /* In gimplify.c */
 extern tree unshare_expr (tree);


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