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]

[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),

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