[clang] [clang][PAC][darwin] Set correct default ptrauth features for arm64e-darwin (PR #153722)

Ahmed Bougacha via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 15 13:31:00 PDT 2025


================
@@ -0,0 +1,85 @@
+// RUN: %clang -target arm64                   -DNO_DEFAULT_PTRAUTH     %s -fsyntax-only -Xclang -verify=no_default_ptrauth
+// RUN: %clang -target arm64-apple-macosx      -DNO_DEFAULT_PTRAUTH     %s -fsyntax-only -Xclang -verify=no_default_ptrauth
+// RUN: %clang -target arm64-darwin            -DNO_DEFAULT_PTRAUTH     %s -fsyntax-only -Xclang -verify=no_default_ptrauth
+// RUN: %clang -target arm64-apple-darwin      -DNO_DEFAULT_PTRAUTH     %s -fsyntax-only -Xclang -verify=no_default_ptrauth
+// RUN: %clang -target arm64-apple-ios-macabi  -DNO_DEFAULT_PTRAUTH     %s -fsyntax-only -Xclang -verify=no_default_ptrauth
+// RUN: %clang -target arm64-linux-gnu         -DNO_DEFAULT_PTRAUTH     %s -fsyntax-only -Xclang -verify=no_default_ptrauth
+// RUN: %clang -target arm64e-linux-gnu        -DNO_DEFAULT_PTRAUTH     %s -fsyntax-only -Xclang -verify=no_default_ptrauth
----------------
ahmedbougacha wrote:

I'm not sure we really need to test 75% of these, should we? I wouldn't mind if they were free, but they're not ;)  Some are really triple-parsing tests that ought to be covered elsewhere
But I'd especially remove `arm64e-linux-gnu`, because it normalizes something that we should straight up reject.

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


More information about the cfe-commits mailing list