[clang] [Driver] -fno-plt: warn for unsupported targets (PR #124081)
Martin Storsjö via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 23 01:21:44 PST 2025
================
@@ -0,0 +1,9 @@
+// RUN: %clang -### -c --target=aarch64 -fno-plt -Werror %s 2>&1 | FileCheck %s
+// RUN: %clang -### -c --target=x86_64 -fno-plt -Werror %s 2>&1 | FileCheck %s
+// RUN: %clang -### -c --target=aarch64 -fno-plt -fplt -Werror %s 2>&1 | FileCheck %s --check-prefix=NO
----------------
mstorsjo wrote:
There's quite many negations involved in this check line, can you rename the `NO` prefix to e.g. `PLT` or something like that, to signify the case when `-fplt` is in effect? Then again, using `--check-prefix=PLT` for the `aarch64-windows` target feels a bit misleading as well. Perhaps if we'd rename `CHECK` into `NOPLT` and `NO` into `DEFAULT`?
https://github.com/llvm/llvm-project/pull/124081
More information about the cfe-commits
mailing list