[libc-commits] [PATCH] D145584: [libc] Add support for setjmp and longjmp in riscv

Mikhail Ramalho via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Mar 16 04:23:10 PDT 2023


mikhail.ramalho updated this revision to Diff 505766.
mikhail.ramalho added a comment.

1. Added -fomit-frame-pointer
2. Removed __attribute__((naked)) from setjmp/longjmp
3. Because of (2) we don't need the __NOEXCEPT anymore
4. Rewrote the riscv functions to use the function arguments directly, instead of fixed offset
5. Split the platform specific implementations into different directories/files


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145584/new/

https://reviews.llvm.org/D145584

Files:
  libc/config/linux/riscv64/entrypoints.txt
  libc/config/linux/riscv64/headers.txt
  libc/include/llvm-libc-types/jmp_buf.h
  libc/src/setjmp/CMakeLists.txt
  libc/src/setjmp/longjmp.cpp
  libc/src/setjmp/riscv64/longjmp.h
  libc/src/setjmp/riscv64/setjmp.h
  libc/src/setjmp/setjmp.cpp
  libc/src/setjmp/x86_64/longjmp.h
  libc/src/setjmp/x86_64/setjmp.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145584.505766.patch
Type: text/x-patch
Size: 15451 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230316/40ddfae6/attachment-0001.bin>


More information about the libc-commits mailing list