cgraph.c (clone_function_name): Take SUFFIX argument; export.
authorJan Hubicka <jh@suse.cz>
Sat, 29 May 2010 07:31:11 +0000 (09:31 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 29 May 2010 07:31:11 +0000 (07:31 +0000)
commit036546e58ac96338a9167fb1b239670fdca99ab3
tree2bccbc03becb82b7caf9f75dcea83ae37194f46b
parent6c6081113be59aa5fa6cc20c3978c7661ff43696
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/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/cgraphunit.c
gcc/ipa-cp.c
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ipa-cp-1.c