Skip to content

Commit 4c07e7f

Browse files
authored
Revert "[libc][RISCV] Add naked attribute to setjmp/longjmp (#100036)"
This reverts commit 05b586b.
1 parent e858a92 commit 4c07e7f

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

libc/src/setjmp/riscv/longjmp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
namespace LIBC_NAMESPACE_DECL {
3232

33-
[[gnu::naked]]
3433
LLVM_LIBC_FUNCTION(void, longjmp, (__jmp_buf * buf, int val)) {
3534
LOAD(ra, buf->__pc);
3635
LOAD(s0, buf->__regs[0]);

libc/src/setjmp/riscv/setjmp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
namespace LIBC_NAMESPACE_DECL {
3131

32-
[[gnu::naked]]
3332
LLVM_LIBC_FUNCTION(int, setjmp, (__jmp_buf * buf)) {
3433
STORE(ra, buf->__pc);
3534
STORE(s0, buf->__regs[0]);

0 commit comments

Comments
 (0)