From: Martin Liska Date: Tue, 4 Jul 2017 10:51:25 +0000 (+0200) Subject: Use xstrdup_for_dump in ipa-inline.c (PR ipa/81293). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6abe28643fa54aeafeddb96e5767fcfd450da6fd;p=gcc.git 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 --- 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);