diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-29 07:31:11 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-29 07:31:11 +0000 |
commit | a70a5e2c5886c7e188ccb1be38de030808d5bf4b (patch) | |
tree | 2bccbc03becb82b7caf9f75dcea83ae37194f46b /gcc/cgraph.h | |
parent | 4966cbe25818acad1caf27ba439339875099c231 (diff) | |
download | gcc-a70a5e2c5886c7e188ccb1be38de030808d5bf4b.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160016 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 8772cebdcec..b4ce531f7b3 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -588,12 +588,14 @@ const char* cgraph_inline_failed_string (cgraph_inline_failed_t); struct cgraph_node * cgraph_create_virtual_clone (struct cgraph_node *old_node, VEC(cgraph_edge_p,heap)*, VEC(ipa_replace_map_p,gc)* tree_map, - bitmap args_to_skip); + bitmap args_to_skip, + const char *clone_name); void cgraph_set_nothrow_flag (struct cgraph_node *, bool); void cgraph_set_readonly_flag (struct cgraph_node *, bool); void cgraph_set_pure_flag (struct cgraph_node *, bool); void cgraph_set_looping_const_or_pure_flag (struct cgraph_node *, bool); +tree clone_function_name (tree decl, const char *); /* In cgraphunit.c */ void cgraph_finalize_function (tree, bool); @@ -613,7 +615,7 @@ void init_cgraph (void); struct cgraph_node *cgraph_function_versioning (struct cgraph_node *, VEC(cgraph_edge_p,heap)*, VEC(ipa_replace_map_p,gc)*, - bitmap); + bitmap, const char *); void tree_function_versioning (tree, tree, VEC (ipa_replace_map_p,gc)*, bool, bitmap); struct cgraph_node *save_inline_function_body (struct cgraph_node *); void record_references_in_initializer (tree, bool); |