diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-12-08 19:31:45 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-12-08 19:31:45 +0000 |
commit | 2a72a9538fdd3e7ea5de08cbe233e1eb3dc5d44a (patch) | |
tree | 717a1d74dbcf55ae4d71c2fc03be956c6157212c /gcc/ipa-profile.c | |
parent | 53b730ff90bc866123609de78bf5247e6ae328cf (diff) | |
download | gcc-2a72a9538fdd3e7ea5de08cbe233e1eb3dc5d44a.tar.gz |
PR jit/63854: Introduce xstrdup_for_dump
gcc/ChangeLog:
PR jit/63854
* cgraph.h (xstrdup_for_dump): New function.
* cgraph.c (cgraph_node::get_create): Replace use of xstrdup
within fprintf with xstrdup_for_dump.
(cgraph_edge::make_speculative): Likewise.
(cgraph_edge::resolve_speculation): Likewise.
(cgraph_edge::redirect_call_stmt_to_callee): Likewise.
(cgraph_node::dump): Likewise.
* cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
* ipa-cp.c (perhaps_add_new_callers): Likewise.
* ipa-inline.c (report_inline_failed_reason): Likewise.
(want_early_inline_function_p): Likewise.
(edge_badness): Likewise.
(update_edge_key): Likewise.
(flatten_function): Likewise.
(inline_always_inline_functions): Likewise.
* ipa-profile.c (ipa_profile): Likewise.
* ipa-prop.c (ipa_print_node_jump_functions): Likewise.
(ipa_make_edge_direct_to_target): Likewise.
(remove_described_reference): Likewise.
(propagate_controlled_uses): Likewise.
* ipa-utils.c (ipa_merge_profiles): Likewise.
From-SVN: r218490
Diffstat (limited to 'gcc/ipa-profile.c')
-rw-r--r-- | gcc/ipa-profile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c index 340d033b6a5..f540bd6558b 100644 --- a/gcc/ipa-profile.c +++ b/gcc/ipa-profile.c @@ -607,8 +607,8 @@ ipa_profile (void) { fprintf (dump_file, "Indirect call -> direct call from" " other module %s/%i => %s/%i, prob %3.2f\n", - xstrdup (n->name ()), n->order, - xstrdup (n2->name ()), n2->order, + xstrdup_for_dump (n->name ()), n->order, + xstrdup_for_dump (n2->name ()), n2->order, e->indirect_info->common_target_probability / (float)REG_BR_PROB_BASE); } |