From 8bdc3d9ebb19e8c455c77241ef52ea74be6acfed Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 23 Jul 2024 13:17:12 -0700 Subject: [PATCH] Revert "[libc][RISCV] Add naked attribute to setjmp/longjmp" (#100193) Reverts llvm/llvm-project#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. --- libc/src/setjmp/riscv/longjmp.cpp | 1 - libc/src/setjmp/riscv/setjmp.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/libc/src/setjmp/riscv/longjmp.cpp b/libc/src/setjmp/riscv/longjmp.cpp index b14f636659ac32..0f9537ccc41510 100644 --- a/libc/src/setjmp/riscv/longjmp.cpp +++ b/libc/src/setjmp/riscv/longjmp.cpp @@ -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]); diff --git a/libc/src/setjmp/riscv/setjmp.cpp b/libc/src/setjmp/riscv/setjmp.cpp index 92982cc9d74d42..12def578b56f34 100644 --- a/libc/src/setjmp/riscv/setjmp.cpp +++ b/libc/src/setjmp/riscv/setjmp.cpp @@ -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]);