[llvm] [BOLT] Force frame pointers off for runtimes (PR #148009)

Peter Waller via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 14 02:19:16 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
----------------
peterwaller-arm wrote:

Thanks, I created https://github.com/llvm/llvm-project/issues/148595 and I'll hide comments relating to this problem on #147569, but I will leave it as 'see also' in the commit header.

https://github.com/llvm/llvm-project/pull/148009


More information about the llvm-commits mailing list