Commit b125ad45 by Jan Hubicka Committed by Jan Hubicka

cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline; do not…

cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline; do not recompute reachable flag.


	* cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
	do not recompute reachable flag.
	(cgraph_finalize_function, cgraph_analyze_functions): Set
	redefined_extern_inline here.

From-SVN: r174877
parent 5d4c7c5f
2011-06-09 Jan Hubicka <jh@suse.cz>
* cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
do not recompute reachable flag.
(cgraph_finalize_function, cgraph_analyze_functions): Set
redefined_extern_inline here.
2011-06-09 Jan Hubicka <jh@suse.cz>
* cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
(cgraph_only_called_directly_p): ... this one; bring offline.
(resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
......
......@@ -306,24 +306,9 @@ cgraph_reset_node (struct cgraph_node *node)
memset (&node->global, 0, sizeof (node->global));
memset (&node->rtl, 0, sizeof (node->rtl));
node->analyzed = false;
node->local.redefined_extern_inline = true;
node->local.finalized = false;
cgraph_node_remove_callees (node);
/* We may need to re-queue the node for assembling in case
we already proceeded it and ignored as not needed or got
a re-declaration in IMA mode. */
if (node->reachable)
{
struct cgraph_node *n;
for (n = cgraph_nodes_queue; n; n = n->next_needed)
if (n == node)
break;
if (!n)
node->reachable = 0;
}
}
static void
......@@ -351,7 +336,10 @@ cgraph_finalize_function (tree decl, bool nested)
struct cgraph_node *node = cgraph_get_create_node (decl);
if (node->local.finalized)
cgraph_reset_node (node);
{
cgraph_reset_node (node);
node->local.redefined_extern_inline = true;
}
notice_global_symbol (decl);
node->local.finalized = true;
......@@ -994,6 +982,7 @@ cgraph_analyze_functions (void)
&& !node->thunk.thunk_p)
{
cgraph_reset_node (node);
node->local.redefined_extern_inline = true;
continue;
}
......
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