Commit 3621d5ec by Jan Hubicka Committed by Jan Hubicka

cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes correctly.

	* cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
	correctly.

From-SVN: r152532
parent f8921d7d
2009-10-06 Jan Hubicka <jh@suse.cz>
* cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
correctly.
2009-10-06 Uros Bizjak <ubizjak@gmail.com> 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext, * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
...@@ -1983,7 +1983,8 @@ cgraph_add_new_function (tree fndecl, bool lowered) ...@@ -1983,7 +1983,8 @@ cgraph_add_new_function (tree fndecl, bool lowered)
bool bool
cgraph_node_can_be_local_p (struct cgraph_node *node) cgraph_node_can_be_local_p (struct cgraph_node *node)
{ {
return !node->needed; return (!node->needed
&& (DECL_COMDAT (node->decl) || !node->local.externally_visible));
} }
/* Bring NODE local. */ /* Bring NODE local. */
......
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