Author: Paul Kirth Date: 2024-07-23T13:15:47-07:00 New Revision: 4c07e7f659ab91c22c1b0440080902d0b931195d
URL: https://github.com/llvm/llvm-project/commit/4c07e7f659ab91c22c1b0440080902d0b931195d DIFF: https://github.com/llvm/llvm-project/commit/4c07e7f659ab91c22c1b0440080902d0b931195d.diff LOG: Revert "[libc][RISCV] Add naked attribute to setjmp/longjmp (#100036)" This reverts commit 05b586be3d70cd51c809c52a67d36517fb4b8f6f. Added: Modified: libc/src/setjmp/riscv/longjmp.cpp libc/src/setjmp/riscv/setjmp.cpp Removed: ################################################################################ diff --git a/libc/src/setjmp/riscv/longjmp.cpp b/libc/src/setjmp/riscv/longjmp.cpp index b14f636659ac3..0f9537ccc4151 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 92982cc9d74d4..12def578b56f3 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]); _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits