Fix dumping of "former thunk" info in cgraph dump

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
This commit is contained in:
Martin Jambor 2019-03-12 13:39:18 +01:00 committed by Martin Jambor
parent 63c79a7509
commit df2a91dece
2 changed files with 11 additions and 1 deletions

View 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

View 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))
{