diff options
author | Geoff Keating <geoffk@ozemail.com.au> | 1997-10-21 18:31:13 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-10-21 18:31:13 -0600 |
commit | 1a986152424c940b4390d191cff96141ad49fabb (patch) | |
tree | 5fa41b6eb6040b24a149d106e9da207c8cdda232 /gcc/config/rs6000 | |
parent | d5255ba2cbaac841bf767666264c215af80a7cef (diff) | |
download | gcc-1a986152424c940b4390d191cff96141ad49fabb.tar.gz |
rs6000.c: Avoid creating a stack frame under SYSV ABI if we only need to save LR.
* rs6000.c: Avoid creating a stack frame under SYSV ABI if we
only need to save LR.
From-SVN: r16140
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 60262a9aba4..addc26c9167 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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 |