*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Thu, 26 Mar 1992 08:32:26 +0000 (08:32 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 26 Mar 1992 08:32:26 +0000 (08:32 +0000)
From-SVN: r589

gcc/config/sparc/sparc.h

index 714ee53efbd387795b2c58d8233b9bed59627c4e..150d1bdf3052c6d5c94e4c05a1480fbb65e115df 100644 (file)
@@ -333,9 +333,12 @@ 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 ()))
+  (! (leaf_function_p () && only_leaf_regs_used ()                     \
+      && compute_last_arg_offset () < 4090))
 
 /* C statement to store the difference between the frame pointer
    and the stack pointer values immediately after the function prologue.