forked from ariadne/libucontext
d0b03541bf
Some architecture-specific implementations of the FETCH_LINKPTR (e.g. the one for x86) attempt to find the linkptr relative to the stack pointer. Therefore, they make assumption about the value of the SP at the point where the FETCH_LINKPTR code is executed. This means that we don't want the C compiler to mess with our SP. For this purpose, local variables in this function are currently declared using the register storage specifier. Additionally, we need to make sure that a frame pointer is /always/ omitted for this function. On x86 Alpine, the frame pointer is presently not omitted with GCC 13 when using -Os, therefore the tests segfault with -Os on Alpine presently. Fixes #52 |
||
---|---|---|
.. | ||
aarch64 | ||
arm | ||
common | ||
loongarch64 | ||
m68k | ||
mips | ||
mips64 | ||
or1k | ||
ppc | ||
ppc64 | ||
riscv32 | ||
riscv64 | ||
s390x | ||
sh | ||
x86 | ||
x86_64 |