Use xstrdup_for_dump in ipa-inline.c (PR ipa/81293).

2017-07-04  Martin Liska  <mliska@suse.cz>

	PR ipa/81293
	* ipa-inline.c (inline_small_functions):
	Use xstrdup_for_dump.

From-SVN: r249959
This commit is contained in:
Martin Liska 2017-07-04 12:51:25 +02:00 committed by Martin Liska
parent 1315099e26
commit 6abe28643f
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2017-07-04 Martin Liska <mliska@suse.cz>
PR ipa/81293
* ipa-inline.c (inline_small_functions):
Use xstrdup_for_dump.
2017-07-04 Tom de Vries <tom@codesourcery.com> 2017-07-04 Tom de Vries <tom@codesourcery.com>
* graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK. * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.

View File

@ -2048,8 +2048,8 @@ inline_small_functions (void)
fprintf (dump_file, fprintf (dump_file,
" Inlined %s into %s which now has time %f and size %i, " " Inlined %s into %s which now has time %f and size %i, "
"net change of %+i.\n", "net change of %+i.\n",
edge->callee->name (), xstrdup_for_dump (edge->callee->name ()),
edge->caller->name (), xstrdup_for_dump (edge->caller->name ()),
ipa_fn_summaries->get (edge->caller)->time.to_double (), ipa_fn_summaries->get (edge->caller)->time.to_double (),
ipa_fn_summaries->get (edge->caller)->size, ipa_fn_summaries->get (edge->caller)->size,
overall_size - old_size); overall_size - old_size);