Use xstrdup_for_dump in ipa-inline.c (PR ipa/81293).
authorMartin Liska <mliska@suse.cz>
Tue, 4 Jul 2017 10:51:25 +0000 (12:51 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 4 Jul 2017 10:51:25 +0000 (10:51 +0000)
2017-07-04  Martin Liska  <mliska@suse.cz>

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

From-SVN: r249959

gcc/ChangeLog
gcc/ipa-inline.c

index ada4aa516376adea1efec9f0ce9518d2004335db..ee94e81496c127d771ba085ea3f74f47f7eba759 100644 (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>
 
        * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
index fb20d3723cc6177fae38dc11f807d75e204b7932..3ec7fd19993e0aae947d82cf3d89dc794b2d19b2 100644 (file)
@@ -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);