================ @@ -324,6 +324,7 @@ FEATURE(shadow_call_stack, FEATURE(tls, PP.getTargetInfo().isTLSSupported()) FEATURE(underlying_type, LangOpts.CPlusPlus) FEATURE(experimental_library, LangOpts.ExperimentalLibrary) +FEATURE(bounds_safety, LangOpts.BoundsSafety) ---------------- ojhunt wrote:
I've given this some thought - this is a critical security feature, as opposed to something like ptrauth where losing the extension (under -pedantic) meant you lose customization, while retaining the core platform security, switching this to EXTENSION would mean -pedantic would lose all the protection, and fundamentally rule out the combination of -pedantic and -fbounds-safety due to the inability to detect the feature. https://github.com/llvm/llvm-project/pull/182994 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
