From 89d4bc35990437e33c09abb1e29cafd47ef00ffc Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sat, 13 Jan 2001 08:09:48 +0000 Subject: [PATCH] * config/sh/sh.c (sh_expand_epilogue): Use PR explicitly. From-SVN: r38977 --- gcc/ChangeLog | 2 ++ gcc/config/sh/sh.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e4ea11f2b79..6397f76150e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2001-01-13 Alexandre Oliva + * 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. diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index d0142e6efe4..ce50f519c45 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -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;