Commit e0b22991 by Aldy Hernandez Committed by Aldy Hernandez

re PR middle-end/51411 (ICE: in function_and_variable_visibility, at ipa.c:835…

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
parent a062c51e
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> 2011-12-19 Quentin Neill <quentin.neill@amd.com>
PR target/48743 PR target/48743
...@@ -4260,6 +4260,7 @@ ipa_tm_create_version (struct cgraph_node *old_node) ...@@ -4260,6 +4260,7 @@ ipa_tm_create_version (struct cgraph_node *old_node)
{ {
DECL_EXTERNAL (new_decl) = 0; DECL_EXTERNAL (new_decl) = 0;
TREE_PUBLIC (new_decl) = 0; TREE_PUBLIC (new_decl) = 0;
DECL_WEAK (new_decl) = 0;
} }
tree_function_versioning (old_decl, new_decl, NULL, false, NULL, tree_function_versioning (old_decl, new_decl, NULL, false, NULL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment