This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[trunk][patch] Add debug_varpool
- From: Rafael Espindola <espindola at google dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Diego Novillo <dnovillo at google dot com>
- Date: Thu, 2 Apr 2009 16:34:20 +0100
- Subject: [trunk][patch] Add debug_varpool
Just a simple port from lto:
2009-04-02 Rafael Avila de Espindola <espindola@google.com>
Merge
2009-02-12 Diego Novillo <dnovillo@google.com>
* varpool.c (debug_varpool): New.
* cgraph.h (debug_varpool): Declare.
Cheers,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 0e01a65..aba0e59 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -406,6 +406,7 @@ extern GTY(()) struct varpool_node *varpool_nodes;
struct varpool_node *varpool_node (tree);
struct varpool_node *varpool_node_for_asm (tree asmname);
void varpool_mark_needed_node (struct varpool_node *);
+void debug_varpool (void);
void dump_varpool (FILE *);
void dump_varpool_node (FILE *, struct varpool_node *);
diff --git a/gcc/varpool.c b/gcc/varpool.c
index 8c1259b..12cdad9 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -164,6 +164,14 @@ dump_varpool (FILE *f)
dump_varpool_node (f, node);
}
+/* Dump the variable pool to stderr. */
+
+void
+debug_varpool (void)
+{
+ dump_varpool (stderr);
+}
+
/* Given an assembler name, lookup node. */
struct varpool_node *
varpool_node_for_asm (tree asmname)