Skip to content

Commit e9eeeee

Browse files
ilovepiyuxuanchen1997
authored andcommitted
Revert "[libc][RISCV] Add naked attribute to setjmp/longjmp" (#100193)
Summary: Reverts #100036 This caused a failure on bots: https://lab.llvm.org/buildbot/#/builders/183/builds/1799 We likely need to discuss the particulars here a bit more deeply before either relanding or choosing an alternate solution. Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251135
1 parent e077afb commit e9eeeee

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)