Skip to content

Commit b480e91

Browse files
use [[]] attribute syntax
1 parent 5e90193 commit b480e91

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
@@ -16,7 +16,8 @@
1616

1717
namespace LIBC_NAMESPACE {
1818

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

0 commit comments

Comments
 (0)