diff mbox series

Fix dumping of "former thunk" info in cgraph dump

Message ID ri64l886zjh.fsf@suse.cz
State New
Headers show
Series Fix dumping of "former thunk" info in cgraph dump | expand

Commit Message

Martin Jambor March 12, 2019, 12:35 p.m. UTC
Hi,

I have forgot to add a newline in cgraph_node dumping that I added last
week (the patch to partially address PR 88235).  When discussing this,
we agreed with Honza that if we dump that a node is a former thunk, we
should also dump the various info in the thunk sub-structure that
fomrer_thunk_p() looks at.  Therefore I consider the following patch
pre-approved and will commit it in a few moments (it has passed
bootstrap and testing on an x86_64-linux machine).

Thanks,

Martin



2019-03-11  Martin Jambor  <mjambor@suse.cz>

	* cgraph.c (cgraph_node::dump): Dump more info for former thunks,
	terminate with newline.
---
 gcc/cgraph.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 9f0d603a1cf..49d80ad1e28 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -2110,7 +2110,12 @@  cgraph_node::dump (FILE *f)
 	       (int)thunk.virtual_offset_p);
     }
   else if (former_thunk_p ())
-    fprintf (f, "  Former thunk");
+    fprintf (f, "  Former thunk fixed offset %i virtual value %i "
+	     "indirect_offset %i has virtual offset %i\n",
+	     (int)thunk.fixed_offset,
+	     (int)thunk.virtual_value,
+	     (int)thunk.indirect_offset,
+	     (int)thunk.virtual_offset_p);
   if (alias && thunk.alias
       && DECL_P (thunk.alias))
     {