From df2a91dece0ac6e410e3cf48b39cba8c3744c5f3 Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Tue, 12 Mar 2019 13:39:18 +0100 Subject: [PATCH] Fix dumping of "former thunk" info in cgraph dump 2019-03-12 Martin Jambor * cgraph.c (cgraph_node::dump): Dump more info for former thunks, terminate with newline. From-SVN: r269608 --- gcc/ChangeLog | 5 +++++ gcc/cgraph.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8eedde1dc09..8250ada384e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-03-12 Martin Jambor + + * cgraph.c (cgraph_node::dump): Dump more info for former thunks, + terminate with newline. + 2019-03-12 Jakub Jelinek PR target/52726 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)) { -- 2.30.2