Skip to content

Commit

Permalink
Revert "[libc][RISCV] Add naked attribute to setjmp/longjmp" (#100193)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ilovepi authored Jul 23, 2024
1 parent e858a92 commit 8bdc3d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion libc/src/setjmp/riscv/longjmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

namespace LIBC_NAMESPACE_DECL {

[[gnu::naked]]
LLVM_LIBC_FUNCTION(void, longjmp, (__jmp_buf * buf, int val)) {
LOAD(ra, buf->__pc);
LOAD(s0, buf->__regs[0]);
Expand Down
1 change: 0 additions & 1 deletion libc/src/setjmp/riscv/setjmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

namespace LIBC_NAMESPACE_DECL {

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

0 comments on commit 8bdc3d9

Please sign in to comment.