summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.extrawarn
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2022-09-29 22:57:43 -0700
committerKees Cook <keescook@chromium.org>2022-09-29 23:05:00 -0700
commit607e57c6c62c00965ae276902c166834ce73014a (patch)
treed283aabf6a96769dd213d34cab580a0ec32f1c91 /scripts/Makefile.extrawarn
parent17006e86a7641fa3c50324cfb602f0e74dac8527 (diff)
downloadlinux-607e57c6c62c00965ae276902c166834ce73014a.tar.gz
linux-607e57c6c62c00965ae276902c166834ce73014a.tar.bz2
linux-607e57c6c62c00965ae276902c166834ce73014a.zip
hardening: Remove Clang's enable flag for -ftrivial-auto-var-init=zero
Now that Clang's -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang option is no longer required, remove it from the command line. Clang 16 and later will warn when it is used, which will cause Kconfig to think it can't use -ftrivial-auto-var-init=zero at all. Check for whether it is required and only use it when so. Cc: Nathan Chancellor <nathan@kernel.org> Cc: Masahiro Yamada <masahiroy@kernel.org> Cc: Nick Desaulniers <ndesaulniers@google.com> Cc: linux-kbuild@vger.kernel.org Cc: llvm@lists.linux.dev Cc: stable@vger.kernel.org Fixes: f02003c860d9 ("hardening: Avoid harmless Clang option under CONFIG_INIT_STACK_ALL_ZERO") Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'scripts/Makefile.extrawarn')
0 files changed, 0 insertions, 0 deletions