On Tue, Nov 5, 2024 at 11:43 AM Andreas Schwab <[email protected]> wrote:
>
> On Nov 05 2024, Uros Bizjak wrote:
>
> > But what is the non-deprecated way to communicate the fact that SP
> > changes, and possibly clobbers stack in the asm to the compiler?
>
> Since an asm statement is not allowed to change SP there is no need for
> that.
asm volatile ("pushfq; popfq %0" : "=r"(x));
doesn't change SP at any sequence point, doesn't clobber the function
frame, but the function using it shouldn't create redzone. How to
communicate this to the compiler?
Uros.