Commit a72cb8ec by Jim Wilson

*** empty log message ***

From-SVN: r705
parent c0dad767
......@@ -1825,20 +1825,6 @@ compute_frame_size (size, leaf_function)
return actual_fsize;
}
/* If this were a leaf function, how far would we have to reach
from the stack pointer to the last arg on the stack?
If we don't know, return 4096 (i.e., "too far".) */
int
compute_last_arg_offset ()
{
if (GET_CODE (current_function_arg_offset_rtx) == CONST_INT)
return (compute_frame_size (get_frame_size (), 1)
+ INTVAL (current_function_arg_offset_rtx));
return 4096;
}
/* Output code for the function prologue. */
void
......
......@@ -329,12 +329,9 @@ extern int hard_regno_mode_ok[FIRST_PSEUDO_REGISTER];
Used in flow.c, global-alloc.c, and reload1.c. */
extern int leaf_function;
extern int compute_last_arg_offset ();
/* Return 0 if span from stack ptr to last stack arg is too far. */
#define FRAME_POINTER_REQUIRED \
(! (leaf_function_p () && only_leaf_regs_used () \
&& compute_last_arg_offset () < 4090))
(! (leaf_function_p () && only_leaf_regs_used ()))
/* C statement to store the difference between the frame pointer
and the stack pointer values immediately after the function prologue.
......
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