diff options
Diffstat (limited to 'contrib/gcc/sibcall.c')
-rw-r--r-- | contrib/gcc/sibcall.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/gcc/sibcall.c b/contrib/gcc/sibcall.c index 81509ee..1d647f1 100644 --- a/contrib/gcc/sibcall.c +++ b/contrib/gcc/sibcall.c @@ -330,8 +330,10 @@ static int call_ends_block_p (rtx insn, rtx end) { rtx new_insn; + /* END might be a note, so get the last nonnote insn of the block. */ - end = next_nonnote_insn (PREV_INSN (end)); + if (NOTE_P (end)) + end = prev_nonnote_insn (end); /* If the call was the end of the block, then we're OK. */ if (insn == end) |