aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2009-05-27 03:29:41 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2009-05-27 03:29:41 +0000
commit82f331ff93ed75fef446c6a0c846ad22a49cd0dd (patch)
treeb792f2b33c9c2f683e6ed8d1120f0244a7f4103a
parentd641c815d41691437b98bf0565285d220286b361 (diff)
downloadgcc-82f331ff93ed75fef446c6a0c846ad22a49cd0dd.zip
gcc-82f331ff93ed75fef446c6a0c846ad22a49cd0dd.tar.gz
gcc-82f331ff93ed75fef446c6a0c846ad22a49cd0dd.tar.bz2
* cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
From-SVN: r147888
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cgraph.c7
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3528121..dca078f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-27 Alexandre Oliva <aoliva@redhat.com>
+
+ * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
+
2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index c7939b9..fe1126b 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -1,5 +1,5 @@
/* Callgraph handling code.
- Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008
+ Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009
Free Software Foundation, Inc.
Contributed by Jan Hubicka
@@ -1377,8 +1377,9 @@ void
dump_cgraph_node (FILE *f, struct cgraph_node *node)
{
struct cgraph_edge *edge;
- fprintf (f, "%s/%i(%i) [%p]:", cgraph_node_name (node), node->uid,
- node->pid, (void *) node);
+ fprintf (f, "%s/%i(%i)", cgraph_node_name (node), node->uid,
+ node->pid);
+ dump_addr (f, " @", (void *)node);
if (node->global.inlined_to)
fprintf (f, " (inline copy in %s/%i)",
cgraph_node_name (node->global.inlined_to),