summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.kcsan
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2020-06-18 11:31:16 +0200
committerPaul E. McKenney <paulmck@kernel.org>2020-06-29 21:04:48 +0200
commite68dcd8eac63cf14745df0dc872ea479df8ed4b9 (patch)
tree31b34235353a65a914e00575ec78f061df3bc954 /scripts/Makefile.kcsan
parentkcsan: Add jiffies test to test suite (diff)
downloadlinux-e68dcd8eac63cf14745df0dc872ea479df8ed4b9.tar.xz
linux-e68dcd8eac63cf14745df0dc872ea479df8ed4b9.zip
kcsan: Re-add GCC as a supported compiler
GCC version 11 recently implemented all requirements to correctly support KCSAN: 1. Correct no_sanitize-attribute inlining behaviour: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=4089df8ef4a63126b0774c39b6638845244c20d2 2. --param=tsan-distinguish-volatile https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=ab2789ec507a94f1a75a6534bca51c7b39037ce0 3. --param=tsan-instrument-func-entry-exit https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=06712fc68dc9843d9af7c7ac10047f49d305ad76 Therefore, we can re-enable GCC for KCSAN, and document the new compiler requirements. Signed-off-by: Marco Elver <elver@google.com> Cc: Martin Liska <mliska@suse.cz> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'scripts/Makefile.kcsan')
-rw-r--r--scripts/Makefile.kcsan2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.kcsan b/scripts/Makefile.kcsan
index bd4da1af5953..dd66206f4578 100644
--- a/scripts/Makefile.kcsan
+++ b/scripts/Makefile.kcsan
@@ -6,7 +6,7 @@ ifdef CONFIG_KCSAN
ifdef CONFIG_CC_IS_CLANG
cc-param = -mllvm -$(1)
else
-cc-param = --param -$(1)
+cc-param = --param $(1)
endif
# Keep most options here optional, to allow enabling more compilers if absence