re PR ipa/61211 (ICE: verify_cgraph_node failed: edge points to wrong declaration with -O3 -fno-inline)

2014-06-20  Martin Jambor  <mjambor@suse.cz>

	PR ipa/61211
	* cgraph.c (clone_of_p): Allow skipped_branch to deal with
	expanded clones.

From-SVN: r211844
This commit is contained in:
Martin Jambor 2014-06-20 11:54:39 +02:00 committed by Martin Jambor
parent 278821f265
commit 803d0ab0e8
2 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2014-06-20 Martin Jambor <mjambor@suse.cz>
PR ipa/61211
* cgraph.c (clone_of_p): Allow skipped_branch to deal with
expanded clones.
2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/iterators.md (VCOND): Handle SI and HI modes.

View File

@ -2563,11 +2563,16 @@ clone_of_p (struct cgraph_node *node, struct cgraph_node *node2)
skipped_thunk = true;
}
if (skipped_thunk
&& (!node2->clone_of
|| !node2->clone.args_to_skip
|| !bitmap_bit_p (node2->clone.args_to_skip, 0)))
return false;
if (skipped_thunk)
{
if (!node2->clone.args_to_skip
|| !bitmap_bit_p (node2->clone.args_to_skip, 0))
return false;
if (node2->former_clone_of == node->decl)
return true;
else if (!node2->clone_of)
return false;
}
while (node != node2 && node2)
node2 = node2->clone_of;