summaryrefslogtreecommitdiff
path: root/gcc/reorg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/reorg.c')
-rw-r--r--gcc/reorg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c
index fbaf968df73..78940ff9a58 100644
--- a/gcc/reorg.c
+++ b/gcc/reorg.c
@@ -420,7 +420,12 @@ find_end_label (void)
if needed. */
emit_label (end_of_function_label);
#ifdef HAVE_return
- if (HAVE_return)
+ /* We don't bother trying to create a return insn if the
+ epilogue has filled delay-slots; we would have to try and
+ move the delay-slot fillers to the delay-slots for the new
+ return insn or in front of the new return insn. */
+ if (current_function_epilogue_delay_list == NULL
+ && HAVE_return)
{
/* The return we make may have delay slots too. */
rtx insn = gen_return ();