re PR middle-end/51411 (ICE: in function_and_variable_visibility, at ipa.c:835 with -O -fgnu-tm and overriding virtual transaction_safe function)

PR middle-end/51411
	* trans-mem.c (ipa_tm_create_version): Unset DECL_WEAK.

From-SVN: r182492
This commit is contained in:
Aldy Hernandez 2011-12-19 19:31:17 +00:00 committed by Aldy Hernandez
parent a062c51e00
commit e0b22991cc
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-12-19 Aldy Hernandez <aldyh@redhat.com>
PR middle-end/51411
* trans-mem.c (ipa_tm_create_version): Unset DECL_WEAK.
2011-12-19 Quentin Neill <quentin.neill@amd.com>
PR target/48743

View File

@ -4260,6 +4260,7 @@ ipa_tm_create_version (struct cgraph_node *old_node)
{
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,