Commit 6138fed0 by Eric Botcazou Committed by Eric Botcazou

rtlanal.c (get_initial_register_offset): Fall back to the estimate as long as…

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
parent 1d679134
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> 2019-02-18 Martin Sebor <msebor@redhat.com>
* doc/cpp.texi (Conditional syntax): Add __has_attribute, * doc/cpp.texi (Conditional syntax): Add __has_attribute,
......
...@@ -359,10 +359,10 @@ get_initial_register_offset (int from, int to) ...@@ -359,10 +359,10 @@ get_initial_register_offset (int from, int to)
if (to == from) if (to == from)
return 0; return 0;
/* It is not safe to call INITIAL_ELIMINATION_OFFSET /* It is not safe to call INITIAL_ELIMINATION_OFFSET before the epilogue
before the reload pass. We need to give at least is completed, but we need to give at least an estimate for the stack
an estimation for the resulting frame size. */ pointer based on the frame size. */
if (! reload_completed) if (!epilogue_completed)
{ {
offset1 = crtl->outgoing_args_size + get_frame_size (); offset1 = crtl->outgoing_args_size + get_frame_size ();
#if !STACK_GROWS_DOWNWARD #if !STACK_GROWS_DOWNWARD
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment