[patch/m68k] use emit_jump_insn for return insn
Roman Zippel
zippel@linux-m68k.org
Mon Jun 18 16:14:00 GMT 2007
Hi,
Without this patch the return insn is occasionally optimized away.
bye, Roman
200x-xx-xx Roman Zippel <zippel@linux-m68k.org>
* config/m68k/m68k.c (m68k_expand_epilogue): Use emit_jump_insn
to emit return insn.
---
gcc/config/m68k/m68k.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: gcc/gcc/config/m68k/m68k.c
===================================================================
--- gcc.orig/gcc/config/m68k/m68k.c
+++ gcc/gcc/config/m68k/m68k.c
@@ -1222,7 +1222,7 @@ m68k_expand_epilogue (bool sibcall_p)
EH_RETURN_STACKADJ_RTX));
if (!sibcall_p)
- emit_insn (gen_rtx_RETURN (VOIDmode));
+ emit_jump_insn (gen_rtx_RETURN (VOIDmode));
}
/* Return true if X is a valid comparison operator for the dbcc
More information about the Gcc-patches
mailing list