From 036546e58ac96338a9167fb1b239670fdca99ab3 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 29 May 2010 09:31:11 +0200 Subject: cgraph.c (clone_function_name): Take SUFFIX argument; export. * cgraph.c (clone_function_name): Take SUFFIX argument; export. (cgraph_create_virtual_clone): Take SUFFIX argument; udpate use of clone_function_name. * cgraph.h (cgraph_create_virtual_clone, cgraph_function_versioning): update prototypes. (clone_function_name): Declare. * ipa-cp.c (ipcp_insert_stage): Update call of cgraph_create_virtual_clone. * omp-low.c (create_omp_child_function_name): Use cgraph_create_virtual_clone. * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating. (cgraph_function_versioning): Take SUFFIX argument; produce new name and make decl local. * gcc.dg/tree-ssa/ipa-cp-1.c: Update testcase. From-SVN: r160016 --- gcc/ipa-cp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/ipa-cp.c') diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 5c953b4..0efdb47 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -1186,7 +1186,7 @@ ipcp_insert_stage (void) new versioned node. */ node1 = cgraph_create_virtual_clone (node, redirect_callers, replace_trees, - args_to_skip); + args_to_skip, "clone"); args_to_skip = NULL; VEC_free (cgraph_edge_p, heap, redirect_callers); replace_trees = NULL; -- cgit v1.1