This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[trunk][patch] Print the address of nodes when dumping
- 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 15:02:41 +0100
- Subject: [trunk][patch] Print the address of nodes when dumping
Just cherry pick a small patch from lto:
2009-04-02 Rafael Avila de Espindola <espindola@google.com>
Merge:
2008-12-19 Diego Novillo <dnovillo@google.com>
* cgraph.c (dump_cgraph_node): Show memory address of NODE.
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.c b/gcc/cgraph.c
index d5dba42..86642ab 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -1154,7 +1154,8 @@ void
dump_cgraph_node (FILE *f, struct cgraph_node *node)
{
struct cgraph_edge *edge;
- fprintf (f, "%s/%i(%i):", cgraph_node_name (node), node->uid, node->pid);
+ fprintf (f, "%s/%i(%i) [%p]:", cgraph_node_name (node), node->uid,
+ node->pid, (void *) node);
if (node->global.inlined_to)
fprintf (f, " (inline copy in %s/%i)",
cgraph_node_name (node->global.inlined_to),