[libc-commits] [libc] [libc] Add `returns_twice` attribute to `setjmp(3)` (PR #124370)
Alan Zhao via libc-commits
libc-commits at lists.llvm.org
Mon Jan 27 11:30:51 PST 2025
alanzhao1 wrote:
> But, llvm-libc actually defines and (at least in tests, calls) setjmp with a function name which is not in the list: LIBC_NAMESPACE::setjmp. That non-standard name will not ever get the magic behavior automatically.
Isn't this intended behavior though? My understanding is that the special casing should only apply to the function named `setjmp(...)` provided by the standard library, and since `LIBC_NAMESPACE::setjmp` is in a namespace, it's not the specific function in question and therefore special casing shouldn't apply.
https://github.com/llvm/llvm-project/pull/124370
More information about the libc-commits
mailing list