diff options
Diffstat (limited to 'gcc/sibcall.c')
-rw-r--r-- | gcc/sibcall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/sibcall.c b/gcc/sibcall.c index ec85cb23786..81509ee9b56 100644 --- a/gcc/sibcall.c +++ b/gcc/sibcall.c @@ -597,7 +597,7 @@ optimize_sibling_and_tail_recursive_calls (void) /* Walk forwards through the last normal block and see if it does nothing except fall into the exit block. */ - for (insn = EXIT_BLOCK_PTR->prev_bb->head; + for (insn = BB_HEAD (EXIT_BLOCK_PTR->prev_bb); insn; insn = NEXT_INSN (insn)) { @@ -685,7 +685,7 @@ optimize_sibling_and_tail_recursive_calls (void) && call_block->succ->dest != alternate_exit) /* If this call doesn't end the block, there are operations at the end of the block which we must execute after returning. */ - || ! call_ends_block_p (insn, call_block->end)) + || ! call_ends_block_p (insn, BB_END (call_block))) sibcall = 0, tailrecursion = 0; /* Select a set of insns to implement the call and emit them. |