PR jit/63854: Introduce xstrdup_for_dump
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 8 Dec 2014 19:31:45 +0000 (19:31 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 8 Dec 2014 19:31:45 +0000 (19:31 +0000)
commit2a72a9538fdd3e7ea5de08cbe233e1eb3dc5d44a
tree717a1d74dbcf55ae4d71c2fc03be956c6157212c
parent53b730ff90bc866123609de78bf5247e6ae328cf
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
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/cgraphclones.c
gcc/ipa-cp.c
gcc/ipa-inline.c
gcc/ipa-profile.c
gcc/ipa-prop.c
gcc/ipa-utils.c