aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/sh/sh.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f6266ac..5a5d719 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
+
+ PR target/18032
+ * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
+ the frame pointer adjustment when exception handling is enabled.
+
2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
* stor-layout.c: Fix a comment typo.
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index d489a85..83a938e 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -5828,6 +5828,10 @@ sh_expand_epilogue (bool sibcall_p)
if (frame_pointer_needed)
{
+ /* We must avoid scheduling the epilogue with previous basic blocks
+ when exception handling is enabled. See PR/18032. */
+ if (flag_exceptions)
+ emit_insn (gen_blockage ());
output_stack_adjust (frame_size, frame_pointer_rtx, e, &live_regs_mask);
/* We must avoid moving the stack pointer adjustment past code