[llvm] [BOLT] Force frame pointers off for runtimes (PR #148009)
Paschalis Mpeis via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 13 22:23:02 PDT 2025
================
@@ -35,7 +35,12 @@ set(BOLT_RT_FLAGS
-fno-exceptions
-fno-rtti
-fno-stack-protector
- -fPIC)
+ -fPIC
+ # Runtime currently assumes omitted frame pointers for functions marked __attribute((naked)).
+ # Protect against distros adding -fno-omit-frame-pointer and compiling with GCC.
+ # Refs: llvm/llvm-project#147569 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77882
----------------
paschalis-mpeis wrote:
TMU, #147569 is unrelated so it could be dropped? ([link](https://github.com/llvm/llvm-project/issues/147569#issuecomment-3063346038))
```suggestion
# Refs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77882
```
https://github.com/llvm/llvm-project/pull/148009
More information about the llvm-commits
mailing list