https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870

--- Comment #60 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to H.J. Lu from comment #59)
> > HJ, do we also need to check TYPE_NO_CALLER_SAVED_REGISTERS here?
> 
> No. TYPE_NO_CALLER_SAVED_REGISTERS is OK since callee will preserve
> everything.

The save of DRAP register is *inside* the realigned frame and is later used to
restore RSP. Without saved DRAP, it can be clobbered in the function and RSP
will be restored with clobbered value.

Reply via email to