Fix dumping of "former thunk" info in cgraph dump
authorMartin Jambor <mjambor@suse.cz>
Tue, 12 Mar 2019 12:39:18 +0000 (13:39 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 12 Mar 2019 12:39:18 +0000 (13:39 +0100)
2019-03-12  Martin Jambor  <mjambor@suse.cz>

* cgraph.c (cgraph_node::dump): Dump more info for former thunks,
terminate with newline.

From-SVN: r269608

gcc/ChangeLog
gcc/cgraph.c

index 8eedde1dc0910d36f543ad4ec188a285242da8ac..8250ada384e535af1648fe3925c81c0d3f572b36 100644 (file)
@@ -1,3 +1,8 @@
+2019-03-12  Martin Jambor  <mjambor@suse.cz>
+
+       * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
+       terminate with newline.
+
 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/52726
index 9f0d603a1cf3bbfeb18e7802b27601e4691cec89..49d80ad1e286e40a50a00dd50cce20171a9f5ae0 100644 (file)
@@ -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))
     {