Richard, Jason, are you ok with just unsetting DECL_WEAK?

I will come up with a suitable testcase for Patrick's case.

Perhaps we can try unsetting (hee hee hee) DECL_WEAK as originally
proposed. Does this fix your problem?

Yep it does! ;)

Patrick.


Index: trans-mem.c
===================================================================
--- trans-mem.c (revision 182290)
+++ trans-mem.c (working copy)
@@ -4259,6 +4259,7 @@ ipa_tm_create_version (struct cgraph_nod
{
DECL_EXTERNAL (new_decl) = 0;
TREE_PUBLIC (new_decl) = 0;
+ DECL_WEAK (new_decl) = 0;
}

tree_function_versioning (old_decl, new_decl, NULL, false, NULL,


Reply via email to