ipa.c (cgraph_remove_unreachable_nodes): Update former_clone_of even when not checking.

2010-12-23  Martin Jambor  <mjambor@suse.cz>

	* ipa.c (cgraph_remove_unreachable_nodes): Update former_clone_of even
	when not checking.

From-SVN: r168209
This commit is contained in:
Martin Jambor 2010-12-23 17:12:07 +01:00 committed by Martin Jambor
parent 539b4d1106
commit f5333fe82b
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-12-23 Martin Jambor <mjambor@suse.cz>
* ipa.c (cgraph_remove_unreachable_nodes): Update former_clone_of even
when not checking.
2010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* configure.ac (gcc_cv_ld_eh_frame_hdr): Only check GNU ld for

View File

@ -428,10 +428,8 @@ cgraph_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
node->clone_of->clones = node->next_sibling_clone;
if (node->next_sibling_clone)
node->next_sibling_clone->prev_sibling_clone = node->prev_sibling_clone;
#ifdef ENABLE_CHECKING
if (node->clone_of)
node->former_clone_of = node->clone_of->decl;
#endif
node->clone_of = NULL;
node->next_sibling_clone = NULL;
node->prev_sibling_clone = NULL;