* config/sh/sh.c (sh_expand_epilogue): Use PR explicitly.
authorAlexandre Oliva <aoliva@redhat.com>
Sat, 13 Jan 2001 08:09:48 +0000 (08:09 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sat, 13 Jan 2001 08:09:48 +0000 (08:09 +0000)
From-SVN: r38977

gcc/ChangeLog
gcc/config/sh/sh.c

index e4ea11f2b79e0583cac5664df681a500538c7b63..6397f76150ee894b0572f2a428e21395c1303748 100644 (file)
@@ -1,5 +1,7 @@
 2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
 
+       * config/sh/sh.c (sh_expand_epilogue): Use PR explicitly.
+
        * config/sh/sh.c (sh_expand_prologue): Let the second toggle_sz be
        optimized away.
 
index d0142e6efe4eddb0165e1781c8650d4ad790d094..ce50f519c4585cfbce70b6432dbe40de028e1902 100644 (file)
@@ -4048,6 +4048,10 @@ sh_expand_epilogue ()
   /* Switch back to the normal stack if necessary.  */
   if (sp_switch)
     emit_insn (gen_sp_switch_2 ());
+
+  /* Tell flow the insn that pops PR isn't dead.  */
+  if (live_regs_mask & (1 << PR_REG))
+    emit_insn (gen_rtx_USE (VOIDmode, gen_rtx_REG (SImode, PR_REG)));
 }
 
 static int sh_need_epilogue_known = 0;