diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2012-04-30 21:34:35 +0000 |
---|---|---|
committer | Uros Bizjak <ubizjak@gmail.com> | 2012-04-30 21:34:35 +0000 |
commit | c4cce448a7d6575c4de9388a5533f3c7cd708e68 (patch) | |
tree | ce57d487e05cec03c2151c772f2cb79883c72c40 /gcc/ipa-cp.c | |
parent | c535a14267dc6dc0ce7ddf4f3f966671b33bf8bf (diff) |
PR middle-end/53136
* ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
calls to cgraph_node_name in xstrdup.
(ipa_make_edge_direct_to_target): Ditto.
* cgraph.c (dump_cgraph_node): Ditto.
* tree-sra.c (convert_callers_for_node): Ditto.
* lto-symtab.c (lto_cgraph_replace_node): Ditto.
* ipa-cp.c (perhaps_add_new_callers): Ditto.
* cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
(cgraph_materialize_all_clones): Ditto.
* ipa-inline.c (report_inline_failed_reason): Ditto.
(want_early_inline_function_p): Ditto.
(edge_badness): Ditto.
(update_edge_key): Ditto.
(flatten_function): Ditto.
(ipa_inline): Ditto.
(inlinw_always_inline_functions): Ditto.
(early_inline_small_functions): Ditto.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@187001 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r-- | gcc/ipa-cp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 4826c582c83..eb8d20d94f6 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -2180,8 +2180,9 @@ perhaps_add_new_callers (struct cgraph_node *node, struct ipcp_value *val) if (dump_file) fprintf (dump_file, " - adding an extra caller %s/%i" " of %s/%i\n", - cgraph_node_name (cs->caller), cs->caller->uid, - cgraph_node_name (val->spec_node), + xstrdup (cgraph_node_name (cs->caller)), + cs->caller->uid, + xstrdup (cgraph_node_name (val->spec_node)), val->spec_node->uid); cgraph_redirect_edge_callee (cs, val->spec_node); |