aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2019-02-19 09:25:39 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2019-02-19 09:25:39 +0000
commit6138fed0bea4a1d7e25a272514edc7f75ed92285 (patch)
treeb1ca47d5f5b64a95fd627469041d062b4c111ba3 /gcc/rtlanal.c
parent1d679134724ae4baf615a90b1ab10ef734305f71 (diff)
downloadgcc-6138fed0bea4a1d7e25a272514edc7f75ed92285.zip
gcc-6138fed0bea4a1d7e25a272514edc7f75ed92285.tar.gz
gcc-6138fed0bea4a1d7e25a272514edc7f75ed92285.tar.bz2
rtlanal.c (get_initial_register_offset): Fall back to the estimate as long as the epilogue isn't completed.
* rtlanal.c (get_initial_register_offset): Fall back to the estimate as long as the epilogue isn't completed. From-SVN: r269013
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index 401c38f..345f13c 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -359,10 +359,10 @@ get_initial_register_offset (int from, int to)
if (to == from)
return 0;
- /* It is not safe to call INITIAL_ELIMINATION_OFFSET
- before the reload pass. We need to give at least
- an estimation for the resulting frame size. */
- if (! reload_completed)
+ /* It is not safe to call INITIAL_ELIMINATION_OFFSET before the epilogue
+ is completed, but we need to give at least an estimate for the stack
+ pointer based on the frame size. */
+ if (!epilogue_completed)
{
offset1 = crtl->outgoing_args_size + get_frame_size ();
#if !STACK_GROWS_DOWNWARD