Commit 0200b5ed by Jeffrey A Law Committed by Jeff Law

flow.c (life_analysis): Do not conside the stack pointer live at the end of a function if...

        * flow.c (life_analysis): Do not conside the stack pointer live at
        the end of a function if the fucntio ncalls alloca.
        (mark_used_regs): Similarly.

From-SVN: r17839
parent c29c4e23
Wed Feb 11 01:17:39 1998 Jeffrey A Law (law@cygnus.com)
* flow.c (life_analysis): Do not conside the stack pointer live at
the end of a function if the fucntio ncalls alloca.
(mark_used_regs): Similarly.
1998-02-10 John F Carr <jfc@mit.edu> 1998-02-10 John F Carr <jfc@mit.edu>
* config/sparc/sparc.md (movdi_v8plus): Output stx on alternative * config/sparc/sparc.md (movdi_v8plus): Output stx on alternative
......
...@@ -1094,7 +1094,9 @@ life_analysis (f, nregs) ...@@ -1094,7 +1094,9 @@ life_analysis (f, nregs)
if (n_basic_blocks > 0) if (n_basic_blocks > 0)
#ifdef EXIT_IGNORE_STACK #ifdef EXIT_IGNORE_STACK
if (! EXIT_IGNORE_STACK if (! EXIT_IGNORE_STACK
|| (! FRAME_POINTER_REQUIRED && flag_omit_frame_pointer)) || (! FRAME_POINTER_REQUIRED
&& ! current_function_calls_alloca
&& flag_omit_frame_pointer))
#endif #endif
{ {
/* If exiting needs the right stack value, /* If exiting needs the right stack value,
...@@ -2656,7 +2658,9 @@ mark_used_regs (needed, live, x, final, insn) ...@@ -2656,7 +2658,9 @@ mark_used_regs (needed, live, x, final, insn)
#ifdef EXIT_IGNORE_STACK #ifdef EXIT_IGNORE_STACK
if (! EXIT_IGNORE_STACK if (! EXIT_IGNORE_STACK
|| (! FRAME_POINTER_REQUIRED && flag_omit_frame_pointer)) || (! FRAME_POINTER_REQUIRED
&& ! current_function_calls_alloca
&& flag_omit_frame_pointer))
#endif #endif
SET_REGNO_REG_SET (live, STACK_POINTER_REGNUM); SET_REGNO_REG_SET (live, STACK_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