From e5f5fa2da0a140f132a7d69a715160698272de64 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 18 Aug 2010 13:35:46 +0000 Subject: [PATCH] Expand pending pops before trying the optab. 2010-08-18 Paolo Bonzini PR middle-end/45292 * optabs.c (expand_bool_compare_and_swap): Expand pending pops before trying the optab. From-SVN: r163339 --- gcc/ChangeLog | 6 ++++++ gcc/optabs.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 124b3cb38c3..dfe7de21ae0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-08-18 Paolo Bonzini + + PR middle-end/45292 + * optabs.c (expand_bool_compare_and_swap): Expand pending + pops before trying the optab. + 2010-08-18 Yao Qi PR target/45094 diff --git a/gcc/optabs.c b/gcc/optabs.c index 1fcbedc0089..5d095c1a9b9 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -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 ();