We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0d6e76 + 81ad8e6 commit b9e41c9Copy full SHA for b9e41c9
bolt/runtime/CMakeLists.txt
@@ -35,7 +35,12 @@ set(BOLT_RT_FLAGS
35
-fno-exceptions
36
-fno-rtti
37
-fno-stack-protector
38
- -fPIC)
+ -fPIC
39
+ # Runtime currently assumes omitted frame pointers for functions marked __attribute((naked)).
40
+ # Protect against distros adding -fno-omit-frame-pointer and compiling with GCC.
41
+ # Refs: llvm/llvm-project#148595 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77882
42
+ -fomit-frame-pointer
43
+)
44
if (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
45
set(BOLT_RT_FLAGS ${BOLT_RT_FLAGS}
46
-mno-sse
0 commit comments