[all-commits] [llvm/llvm-project] fd4c4e: [libc] Add `returns_twice` attribute to `setjmp(3)...
Alan Zhao via All-commits
all-commits at lists.llvm.org
Wed Feb 5 14:37:26 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fd4c4ed712c14ab80979bcdca121387d83a465ff
https://github.com/llvm/llvm-project/commit/fd4c4ed712c14ab80979bcdca121387d83a465ff
Author: Alan Zhao <ayzhao at google.com>
Date: 2025-02-05 (Wed, 05 Feb 2025)
Changed paths:
M libc/include/__llvm-libc-common.h
M libc/include/setjmp.yaml
M libc/src/setjmp/setjmp_impl.h
Log Message:
-----------
[libc] Add `returns_twice` attribute to `setjmp(3)` (#124370)
This is to ensure that calls to `setjmp(3)` result in correct code
generation that respects `setjmp(3)`'s `returns_twice` behavior.
Otherwise, we might run into bugs (for example, Clang may perform
tail-call optimization on this function if `-fno-builtins` is set
(#122840)).
---------
Co-authored-by: Nick Desaulniers <nick.desaulniers at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list