[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
Fri Feb 27 08:42:54 PST 2026


================
@@ -0,0 +1,13 @@
+! Test that -fruntime-trampoline is properly forwarded from driver to
+! frontend, and that -fno-runtime-trampoline (default) works.
+
+! RUN: %flang -### -fruntime-trampoline %s -o %t 2>&1 | FileCheck %s --check-prefix=ON
+! RUN: %flang -### -fno-runtime-trampoline %s -o %t 2>&1 | FileCheck %s --check-prefix=OFF
+! RUN: %flang -### %s -o %t 2>&1 | FileCheck %s --check-prefix=OFF
+! RUN: %flang -### -fruntime-trampoline -fno-runtime-trampoline %s -o %t 2>&1 | FileCheck %s --check-prefix=OFF
----------------
Saieiei wrote:

yeah, removed `-o %t` from all RUN lines in the latest [push](https://github.com/llvm/llvm-project/commit/72aaac357f1dbed87729d0c2929f22e745d6bd1f)

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


More information about the flang-commits mailing list