[flang-commits] [clang] [flang] [llvm] [flang] Add runtime trampoline pool for W^X compliance (PR #183108)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Thu Feb 26 09:01:20 PST 2026
================
@@ -0,0 +1,15 @@
+! Test that -fruntime-trampoline is properly forwarded from driver to
+! frontend, and that -fno-runtime-trampoline (default) works.
+
+! REQUIRES: x86-registered-target
+
+! RUN: %flang -### -fruntime-trampoline %s -o %t 2>&1 | FileCheck %s --check-prefix=CHECK-ON
+! RUN: %flang -### -fno-runtime-trampoline %s -o %t 2>&1 | FileCheck %s --check-prefix=CHECK-OFF
+! RUN: %flang -### %s -o %t 2>&1 | FileCheck %s --check-prefix=CHECK-DEFAULT
----------------
tarunprabhu wrote:
The `DEFAULT` prefix here is identical to `OFF`. Setting `--check-prefix=OFF` here would remove the need for an additional label. It is also a bit clearer that the default behavior is equivalent to `-fno-runtime-trampoline`
https://github.com/llvm/llvm-project/pull/183108
More information about the flang-commits
mailing list