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 bc80aec commit 7e1a505Copy full SHA for 7e1a505
libc/src/setjmp/x86_64/setjmp.cpp
@@ -17,7 +17,8 @@
17
18
namespace LIBC_NAMESPACE_DECL {
19
20
-__attribute__((naked)) LLVM_LIBC_FUNCTION(int, setjmp, (__jmp_buf * buf)) {
+[[gnu::naked]]
21
+LLVM_LIBC_FUNCTION(int, setjmp, (__jmp_buf * buf)) {
22
asm("mov %%rbx, %c[rbx](%%rdi)\n\t"
23
"mov %%rbp, %c[rbp](%%rdi)\n\t"
24
"mov %%r12, %c[r12](%%rdi)\n\t"
0 commit comments