rs6000.c: Avoid creating a stack frame under SYSV ABI if we only need to save LR.
authorGeoff Keating <geoffk@ozemail.com.au>
Wed, 22 Oct 1997 00:31:13 +0000 (18:31 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 22 Oct 1997 00:31:13 +0000 (18:31 -0600)
        * rs6000.c: Avoid creating a stack frame under SYSV ABI if we
        only need to save LR.

From-SVN: r16140

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 0338f79100dfb1b6de47320954401c4daff5ad40..9341ae0434588743f965e99987b4d4ce8710d046 100644 (file)
@@ -1,3 +1,8 @@
+Tue Oct 21 18:34:01 1997  Geoffrey KEATING  <geoffk@ozemail.com.au>
+
+       * rs6000.c: Avoid creating a stack frame under SYSV ABI if we
+       only need to save LR.
+
 Tue Oct 21 10:06:40 1997  Jeffrey A Law  (law@cygnus.com)
 
        * mn10200.c (expand_prologue): Fix typo.
index 60262a9aba4144acc3a6ea18b48ab18efb1d3474..addc26c91675fd45ed4a6b4f2d3670f3079c75e6 100644 (file)
@@ -3168,7 +3168,8 @@ rs6000_stack_info ()
 
   else if (abi == ABI_V4 || abi == ABI_NT || abi == ABI_SOLARIS)
     info_ptr->push_p = (total_raw_size > info_ptr->fixed_size
-                       || info_ptr->lr_save_p);
+                       || (abi == ABI_NT ? info_ptr->lr_save_p
+                           : info_ptr->calls_p));
 
   else
     info_ptr->push_p = (frame_pointer_needed