diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2019-02-19 09:25:39 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2019-02-19 09:25:39 +0000 |
commit | 6138fed0bea4a1d7e25a272514edc7f75ed92285 (patch) | |
tree | b1ca47d5f5b64a95fd627469041d062b4c111ba3 /gcc/rtlanal.c | |
parent | 1d679134724ae4baf615a90b1ab10ef734305f71 (diff) | |
download | gcc-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.c | 8 |
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 |