[flang-commits] [clang] [flang] [llvm] [flang] Add runtime trampoline pool for W^X compliance (PR #183108)

Sairudra More via flang-commits flang-commits at lists.llvm.org
Thu Feb 26 22:46:58 PST 2026


================
@@ -7588,6 +7567,11 @@ defm stack_arrays : BoolOptionWithoutMarshalling<"f", "stack-arrays",
   PosFlag<SetTrue, [], [ClangOption], "Attempt to allocate array temporaries on the stack, no matter their size">,
   NegFlag<SetFalse, [], [ClangOption], "Allocate array temporaries on the heap (default)">>;
 
+defm runtime_trampoline : BoolOptionWithoutMarshalling<"f",
+  "runtime-trampoline",
+  PosFlag<SetTrue, [], [ClangOption], "Use W^X compliant runtime trampoline pool for internal procedures">,
----------------
Saieiei wrote:

Done — changed to `[FlangOption]` for both PosFlag and NegFlag.

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


More information about the flang-commits mailing list