Commit c3e3f090 by Jan Hubicka Committed by Jan Hubicka

re PR middle-end/49373 (Many testcase failures)

	PR middle-end/49373
	* ipa.c (cgraph_externally_visible_p): Check resolution info.

From-SVN: r174972
parent 516e0768
2011-06-11 Jan Hubicka <jh@suse.cz> 2011-06-11 Jan Hubicka <jh@suse.cz>
PR middle-end/49373
* ipa.c (cgraph_externally_visible_p): Check resolution info.
2011-06-11 Jan Hubicka <jh@suse.cz>
PR middle-end/48836 PR middle-end/48836
* ipa-inline-transform.c: Include tree-pass.h * ipa-inline-transform.c: Include tree-pass.h
(inline_transform): Set TODO_update_ssa_only_virtuals. (inline_transform): Set TODO_update_ssa_only_virtuals.
......
...@@ -629,6 +629,8 @@ cgraph_externally_visible_p (struct cgraph_node *node, ...@@ -629,6 +629,8 @@ cgraph_externally_visible_p (struct cgraph_node *node,
if (TARGET_DLLIMPORT_DECL_ATTRIBUTES if (TARGET_DLLIMPORT_DECL_ATTRIBUTES
&& lookup_attribute ("dllexport", DECL_ATTRIBUTES (node->decl))) && lookup_attribute ("dllexport", DECL_ATTRIBUTES (node->decl)))
return true; return true;
if (node->resolution == LDPR_PREVAILING_DEF_IRONLY)
return false;
/* When doing LTO or whole program, we can bring COMDAT functoins static. /* When doing LTO or whole program, we can bring COMDAT functoins static.
This improves code quality and we know we will duplicate them at most twice This improves code quality and we know we will duplicate them at most twice
(in the case that we are not using plugin and link with object file (in the case that we are not using plugin and link with object file
......
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