[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
Fri Feb 27 07:34:26 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
----------------
tarunprabhu wrote:
Sorry, I didn't notice this earlier, but is the `-o %t` in these tests necessary? With such tests, it is best to limit the number of options that are passed so it is clear what is being tested.
Although this test doesn't do it, I would generally avoid writing to temporary files if possible
https://github.com/llvm/llvm-project/pull/183108
More information about the flang-commits
mailing list