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 0338f79..9341ae0 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 60262a9..addc26c 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