Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc][RISCV] Add naked attribute to setjmp/longjmp (#100036)
We want to avoid any possibility that the compiler will insert a prologue/epilogue violating the calling contracts for these special functions, potentially clobbering registers that must be preserved. To do that they should be marked naked, as is already the case on ARM. See #87837 for further context.
- Loading branch information