* rtlanal.c (get_initial_register_offset): Fall back to the estimate
as long as the epilogue isn't completed.
From-SVN: r269013
+2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
+
+ * rtlanal.c (get_initial_register_offset): Fall back to the estimate
+ as long as the epilogue isn't completed.
+
2019-02-18 Martin Sebor <msebor@redhat.com>
* doc/cpp.texi (Conditional syntax): Add __has_attribute,
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