[clang] [Driver][BoundsSafety] Add -fbounds-safety-experimental flag (PR #70480)
Yeoul Na via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 1 10:14:29 PDT 2023
================
@@ -330,6 +330,14 @@ def warn_alias_with_section : Warning<
"as the %select{aliasee|resolver}2">,
InGroup<IgnoredAttributes>;
+let CategoryName = "Bounds Safety Issue" in {
+def err_bounds_safety_lang_not_supported : Error<
+ "bounds safety is only supported for C">;
+def warn_bounds_safety_asm_ignored : Warning<
+ "'-fbounds-safety' is ignored for assembly">,
----------------
rapidsna wrote:
@MaskRay Thanks. I still need the error for `-fbounds-safety` not being supported in C++/Obj-C/etc in the frontend because it needs to be an error for `cc1`.
I will change it so that the unused warning for assembly to be handled in the driver like the rest of the unused options for assembly.
https://github.com/llvm/llvm-project/pull/70480
More information about the cfe-commits
mailing list