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

--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Stas Sergeev from comment #12)
> Well I can move %rsp with an
> inline asm to some pre-defined
> buffer before recovering regs
> with swapcontext. Or I can manually
> adjust it in jmpbuf, in which case
> I won't be on a wrong stack even
> temporarily. Although I suspect
> you are going to declare both
> things an UB anyway. :)


swapcontext itself might be valid but I doubt it if you going to change the
stack pointer in an odd way.

Adjusting the jumpbuf is also will be undefined.

on the subject of inline-asm, see PR 11807 too.

Reply via email to