diff options
author | 2025-05-07 15:30:43 +0200 | |
---|---|---|
committer | 2025-05-21 16:08:42 +0200 | |
commit | 582847f9702461b0a1cba3efdb2b8135bf940d53 (patch) | |
tree | fde410194606a81e2f0ba65de7c691b8e2219ced /scripts | |
parent | Documentation: update binutils-2.30 version reference (diff) | |
download | linux-rng-582847f9702461b0a1cba3efdb2b8135bf940d53.tar.xz linux-rng-582847f9702461b0a1cba3efdb2b8135bf940d53.zip |
Makefile.kcov: apply needed compiler option unconditionally in CFLAGS_KCOV
Commit 852faf805539 ("gcc-plugins: remove SANCOV gcc plugin") removes the
config CC_HAS_SANCOV_TRACE_PC, as all supported compilers include the
compiler option '-fsanitize-coverage=trace-pc' by now.
The commit however misses the important use of this config option in
Makefile.kcov to add '-fsanitize-coverage=trace-pc' to CFLAGS_KCOV.
Include the compiler option '-fsanitize-coverage=trace-pc' unconditionally
to CFLAGS_KCOV, as all compilers provide that option now.
Fixes: 852faf805539 ("gcc-plugins: remove SANCOV gcc plugin")
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@redhat.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.kcov | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.kcov b/scripts/Makefile.kcov index 67de7942b3e7..01616472f43e 100644 --- a/scripts/Makefile.kcov +++ b/scripts/Makefile.kcov @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -kcov-flags-$(CONFIG_CC_HAS_SANCOV_TRACE_PC) += -fsanitize-coverage=trace-pc +kcov-flags-y += -fsanitize-coverage=trace-pc kcov-flags-$(CONFIG_KCOV_ENABLE_COMPARISONS) += -fsanitize-coverage=trace-cmp export CFLAGS_KCOV := $(kcov-flags-y) |