aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-05-18 01:12:14 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-05-17 23:12:14 +0000
commit36576655d8466c9fa618c1da341b8dd2364a7f81 (patch)
tree0f2fbe98708e13805e97bc7b12c5a0033f23ce51 /gcc/cgraph.c
parent922f15c273e96e7bff9fecb9c0cbd90a5709f839 (diff)
downloadgcc-36576655d8466c9fa618c1da341b8dd2364a7f81.zip
gcc-36576655d8466c9fa618c1da341b8dd2364a7f81.tar.gz
gcc-36576655d8466c9fa618c1da341b8dd2364a7f81.tar.bz2
cgraph.c (cgraph_create_virtual_clone): Only check versionable_function_p when not in wpa and checking is enabled.
* cgraph.c (cgraph_create_virtual_clone): Only check versionable_function_p when not in wpa and checking is enabled. * cgrpahunit.c (cgraph_materialize_all_clones): Stabilize after there are no more functions to materialize. * lto/lto.c (lto_1_to_1_map): Partition non-inline clones. (lto_promote_cross_file_statics): Deal with non-inline clones. From-SVN: r159518
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 89e431a..9433301 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -2184,7 +2184,10 @@ cgraph_create_virtual_clone (struct cgraph_node *old_node,
size_t i;
struct ipa_replace_map *map;
- gcc_assert (tree_versionable_function_p (old_decl));
+#ifdef ENABLE_CHECKING
+ if (!flag_wpa)
+ gcc_assert (tree_versionable_function_p (old_decl));
+#endif
/* Make a new FUNCTION_DECL tree node */
if (!args_to_skip)