Expand pending pops before trying the optab.

2010-08-18  Paolo Bonzini  <bonzini@gnu.org>

	PR middle-end/45292
	* optabs.c (expand_bool_compare_and_swap): Expand pending
	pops before trying the optab.

From-SVN: r163339
This commit is contained in:
Paolo Bonzini 2010-08-18 13:35:46 +00:00 committed by H.J. Lu
parent 8019fcfb55
commit e5f5fa2da0
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2010-08-18 Paolo Bonzini <bonzini@gnu.org>
PR middle-end/45292
* optabs.c (expand_bool_compare_and_swap): Expand pending
pops before trying the optab.
2010-08-18 Yao Qi <yao@codesourcery.com>
PR target/45094

View file

@ -6908,6 +6908,7 @@ expand_bool_compare_and_swap (rtx mem, rtx old_val, rtx new_val, rtx target)
if (icode == CODE_FOR_nothing)
return NULL_RTX;
do_pending_stack_adjust ();
do
{
start_sequence ();