================ @@ -1262,6 +1275,14 @@ typedef __char32_t char32_t; # define _LIBCPP_HAS_EXPLICIT_THIS_PARAMETER 0 # endif +# if defined(__POINTER_FIELD_PROTECTION__) +# define _LIBCPP_PFP [[clang::pointer_field_protection]] +# define _LIBCPP_NO_PFP [[clang::no_field_protection]] ---------------- pcc wrote:
`[[clang::pointer_field_protection]]` will enable PFP on a type even if the command line flag is not passed, so we should avoid it when PFP is not enabled on the command line to avoid ABI breaks. Checking attribute availability for `[[clang::no_field_protection]]` sounds fine to me. https://github.com/llvm/llvm-project/pull/151651 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits