Skip to content

Commit 7e1a505

Browse files
use [[]] attribute syntax
1 parent bc80aec commit 7e1a505

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libc/src/setjmp/x86_64/setjmp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
namespace LIBC_NAMESPACE_DECL {
1919

20-
__attribute__((naked)) LLVM_LIBC_FUNCTION(int, setjmp, (__jmp_buf * buf)) {
20+
[[gnu::naked]]
21+
LLVM_LIBC_FUNCTION(int, setjmp, (__jmp_buf * buf)) {
2122
asm("mov %%rbx, %c[rbx](%%rdi)\n\t"
2223
"mov %%rbp, %c[rbp](%%rdi)\n\t"
2324
"mov %%r12, %c[r12](%%rdi)\n\t"

0 commit comments

Comments
 (0)