summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-25 02:24:24 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-25 02:24:24 +0000
commit43d7fb4027722d83e2f3d0b4cf892e4c0f4c9540 (patch)
treeb1c79c0d5b50c363524b4fffb1fb384a4f0ee977
parent60786093f6d6d37ec0bc7c936977185cf6aa8ecb (diff)
downloadppe42-gcc-43d7fb4027722d83e2f3d0b4cf892e4c0f4c9540.tar.gz
ppe42-gcc-43d7fb4027722d83e2f3d0b4cf892e4c0f4c9540.zip
2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
* config/rs6000/rs6000.c (rs6000_emit_epilogue): Set use_backchain_to_restore_sp to true if the offset of the link register save area would go over the 32k - 1 offset limit of the load instructions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137097 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/rs6000/rs6000.c3
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 90b7966ca6a..2108a87ce07 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
+
+ * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
+ use_backchain_to_restore_sp to true
+ if the offset of the link register save area would go over the 32k - 1
+ offset limit of the load
+ instructions.
+
2008-06-25 Hans-Peter Nilsson <hp@axis.com>
* doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 66e4b51773d..68280a5ff9b 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -16313,6 +16313,9 @@ rs6000_emit_epilogue (int sibcall)
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
|| (cfun->calls_alloca
&& !frame_pointer_needed));
OpenPOWER on IntegriCloud