From a72cb8ec98afe1a6bfe488992d3ba69981f57640 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 7 Apr 1992 21:11:30 -0700 Subject: [PATCH] *** empty log message *** From-SVN: r705 --- gcc/config/sparc/sparc.c | 14 -------------- gcc/config/sparc/sparc.h | 5 +---- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 6584320f8c3..3b5b9c24970 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -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 diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index c51024015d2..42e6520e421 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -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. -- 2.30.2