diff options
author | Alan Modra <amodra@gmail.com> | 2011-08-04 12:41:02 +0930 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2011-08-04 12:41:02 +0930 |
commit | ea6c2b0e960aa4be55b65a4f4954ac7b461d4b55 (patch) | |
tree | 7e057cca1159c0f4f38b10fe1b8861944bcb50eb /gcc/config | |
parent | c7c2e8316cc7cc99d8dfc9aa166e7af1b0b14516 (diff) | |
download | gcc-ea6c2b0e960aa4be55b65a4f4954ac7b461d4b55.zip gcc-ea6c2b0e960aa4be55b65a4f4954ac7b461d4b55.tar.gz gcc-ea6c2b0e960aa4be55b65a4f4954ac7b461d4b55.tar.bz2 |
rs6000.c (rs6000_emit_epilogue): Simplify use_backchain_to_restore_sp initialisation.
* config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
use_backchain_to_restore_sp initialisation.
(rs6000_legitimate_offset_address_p): Simplify offset test.
From-SVN: r177309
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 2996513..a1141f1 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -5392,7 +5392,7 @@ rs6000_legitimate_offset_address_p (enum machine_mode mode, rtx x, int strict) } offset += 0x8000; - return (offset < 0x10000) && (offset + extra < 0x10000); + return offset < 0x10000 - extra; } bool @@ -20712,10 +20712,7 @@ rs6000_emit_epilogue (int sibcall) here will not trigger at the moment; We don't actually need a frame pointer for alloca, but the generic parts of the compiler give us one anyway. */ - use_backchain_to_restore_sp = (info->total_size > 32767 - || info->total_size - + (info->lr_save_p ? info->lr_save_offset : 0) - > 32767 + use_backchain_to_restore_sp = (info->total_size > 32767 - info->lr_save_offset || (cfun->calls_alloca && !frame_pointer_needed)); restore_lr = (info->lr_save_p |