[clang] Allow the no_stack_protector attribute on local variables (PR #173311)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 21 16:56:58 PST 2026


================
@@ -312,6 +312,10 @@ def warn_stack_clash_protection_inline_asm : Warning<
   "unable to protect inline asm that clobbers stack pointer against stack "
   "clash">, InGroup<DiagGroup<"stack-protector">>;
 
+def warn_stack_protection_ignore_attribute : Warning<
+  "'stack_protector_ignore' attribute ignored due to "
+  "'-fstack-protector-all' option">;
----------------
cooperp wrote:

Thanks @AaronBallman!  I applied that fix and it passes locally with `check-clang`

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


More information about the cfe-commits mailing list