We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e90193 commit b480e91Copy full SHA for b480e91
libc/src/setjmp/x86_64/setjmp.cpp
@@ -16,7 +16,8 @@
16
17
namespace LIBC_NAMESPACE {
18
19
-__attribute__((naked)) LLVM_LIBC_FUNCTION(int, setjmp, (__jmp_buf * buf)) {
+[[gnu::naked]]
20
+LLVM_LIBC_FUNCTION(int, setjmp, (__jmp_buf * buf)) {
21
asm("mov %%rbx, %c[rbx](%%rdi)\n\t"
22
"mov %%rbp, %c[rbp](%%rdi)\n\t"
23
"mov %%r12, %c[r12](%%rdi)\n\t"
0 commit comments