Commit f0c418dc by Jan Hubicka Committed by Jan Hubicka

cgraphunit.c (cgraph_materialize_clone): Only remove calles, refs and body...

	* cgraphunit.c (cgraph_materialize_clone): Only remove calles, refs and body;
	not the whole node for masters of materialized clones.

From-SVN: r160019
parent 5c5543af
2010-05-29 Jan Hubicka <jh@suse.cz>
* cgraphunit.c (cgraph_materialize_clone): Only remove calles, refs and body;
not the whole node for masters of materialized clones.
2010-05-29 Mike Stump <mikestump@comcast.net> 2010-05-29 Mike Stump <mikestump@comcast.net>
* config/rs6000/rs6000-c.c: Remove c-tree.h include. * config/rs6000/rs6000-c.c: Remove c-tree.h include.
......
...@@ -2311,7 +2311,11 @@ cgraph_materialize_clone (struct cgraph_node *node) ...@@ -2311,7 +2311,11 @@ cgraph_materialize_clone (struct cgraph_node *node)
node->next_sibling_clone = NULL; node->next_sibling_clone = NULL;
node->prev_sibling_clone = NULL; node->prev_sibling_clone = NULL;
if (!node->clone_of->analyzed && !node->clone_of->clones) if (!node->clone_of->analyzed && !node->clone_of->clones)
cgraph_remove_node (node->clone_of); {
cgraph_release_function_body (node->clone_of);
cgraph_node_remove_callees (node->clone_of);
ipa_remove_all_references (&node->clone_of->ref_list);
}
node->clone_of = NULL; node->clone_of = NULL;
bitmap_obstack_release (NULL); bitmap_obstack_release (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