Commit f846e0de by Richard Henderson Committed by Richard Henderson

flow.c (calculate_global_regs_live): Force the stack pointer live after reload as well.

        * flow.c (calculate_global_regs_live): Force the stack pointer live
        after reload as well.

From-SVN: r38114
parent 83c4781c
2000-12-07 Richard Henderson <rth@redhat.com>
* flow.c (calculate_global_regs_live): Force the stack pointer live
after reload as well.
2000-12-07 Bruce Korb <bkorb@gnu.org> 2000-12-07 Bruce Korb <bkorb@gnu.org>
* fixinc/Makefile.*(exeext): the variables are exeext, the * fixinc/Makefile.*(exeext): the variables are exeext, the
......
...@@ -3368,14 +3368,14 @@ calculate_global_regs_live (blocks_in, blocks_out, flags) ...@@ -3368,14 +3368,14 @@ calculate_global_regs_live (blocks_in, blocks_out, flags)
IOR_REG_SET (new_live_at_end, sb->global_live_at_start); IOR_REG_SET (new_live_at_end, sb->global_live_at_start);
} }
/* The all-important stack pointer must always be live. */
SET_REGNO_REG_SET (new_live_at_end, STACK_POINTER_REGNUM);
/* Before reload, there are a few registers that must be forced /* Before reload, there are a few registers that must be forced
live everywhere -- which might not already be the case for live everywhere -- which might not already be the case for
blocks within infinite loops. */ blocks within infinite loops. */
if (! reload_completed) if (! reload_completed)
{ {
/* The all-important stack pointer. */
SET_REGNO_REG_SET (new_live_at_end, STACK_POINTER_REGNUM);
/* Any reference to any pseudo before reload is a potential /* Any reference to any pseudo before reload is a potential
reference of the frame pointer. */ reference of the frame pointer. */
SET_REGNO_REG_SET (new_live_at_end, FRAME_POINTER_REGNUM); SET_REGNO_REG_SET (new_live_at_end, FRAME_POINTER_REGNUM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment