diff options
| author | Alan Zhao <ayzhao@google.com> | 2025-03-31 09:42:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-31 09:42:34 -0700 |
| commit | c5b3fe209408c89c1ca21f103a8fd45fb48c3138 (patch) | |
| tree | 3bcc5f3f254813b6b6f30b555071b6e962bef311 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 94b04b411903e97bd228c6bdbdb845c29f6de6a1 (diff) | |
[clang] Automatically add the `returns_twice` attribute to certain functions even if `-fno-builtin` is set (#133511)
Certain functions require the `returns_twice` attribute in order to
produce correct codegen. However, `-fno-builtin` removes all knowledge
of functions that require this attribute, so this PR modifies Clang to
add the `returns_twice` attribute even if `-fno-builtin` is set. This
behavior is also consistent with what GCC does.
It's not (easily) possible to get the builtin information from
`Builtins.td` because `-fno-builtin` causes Clang to never initialize
any builtins, so functions never get tokenized as functions/builtins
that require `returns_twice`. Therefore, the most straightforward
solution is to explicitly hard code the function names that require
`returns_twice`.
Fixes #122840
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
