From 6abe28643fa54aeafeddb96e5767fcfd450da6fd Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 4 Jul 2017 12:51:25 +0200 Subject: [PATCH] Use xstrdup_for_dump in ipa-inline.c (PR ipa/81293). 2017-07-04 Martin Liska PR ipa/81293 * ipa-inline.c (inline_small_functions): Use xstrdup_for_dump. From-SVN: r249959 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-inline.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ada4aa51637..ee94e81496c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-07-04 Martin Liska + + PR ipa/81293 + * ipa-inline.c (inline_small_functions): + Use xstrdup_for_dump. + 2017-07-04 Tom de Vries * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK. diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index fb20d3723cc..3ec7fd19993 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -2048,8 +2048,8 @@ inline_small_functions (void) fprintf (dump_file, " Inlined %s into %s which now has time %f and size %i, " "net change of %+i.\n", - edge->callee->name (), - edge->caller->name (), + xstrdup_for_dump (edge->callee->name ()), + xstrdup_for_dump (edge->caller->name ()), ipa_fn_summaries->get (edge->caller)->time.to_double (), ipa_fn_summaries->get (edge->caller)->size, overall_size - old_size); -- 2.30.2