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

--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Wink Saville from comment #7)
>
> In my opinion, even if rbp is special, it still needs to be available in the
> struct full_stack_frame.

The whole idea of extending interrupter attribute is to avoid full_stack_frame.
ISR shouldn't assume that compiler will save and restore registers in any
specific way, order or form.  As far as ISR is concerned, it is just black
magic.

> Also, isn't rsp special? Would the compiler or programmer be responsible for
> initializing it. It seems to me it has to be the compiler, but could be
> wrong.

If you change rsp in asm statement, you have to restore it in asm statement.

Reply via email to