diff options
author | Will Deacon <will@kernel.org> | 2020-01-22 20:38:21 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-04-15 22:36:20 +0200 |
commit | 5429ef62bcf360aae06740cbe065be01e5cfb6fc (patch) | |
tree | 5b9078d844f38350b67e5e4c96b414aaf5acc56d /scripts | |
parent | Linux 5.7-rc1 (diff) | |
download | linux-5429ef62bcf360aae06740cbe065be01e5cfb6fc.tar.xz linux-5429ef62bcf360aae06740cbe065be01e5cfb6fc.zip |
compiler/gcc: Raise minimum GCC version for kernel builds to 4.8
It is very rare to see versions of GCC prior to 4.8 being used to build
the mainline kernel. These old compilers are also know to have codegen
issues which can lead to silent miscompilation:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58145
Raise the minimum GCC version for kernel build to 4.8 and remove some
tautological Kconfig dependencies as a consequence.
Cc: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/gcc-plugins/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gcc-plugins/Kconfig b/scripts/gcc-plugins/Kconfig index 013ba3a57669..ce0b99fb5847 100644 --- a/scripts/gcc-plugins/Kconfig +++ b/scripts/gcc-plugins/Kconfig @@ -8,7 +8,7 @@ config HAVE_GCC_PLUGINS menuconfig GCC_PLUGINS bool "GCC plugins" depends on HAVE_GCC_PLUGINS - depends on CC_IS_GCC && GCC_VERSION >= 40800 + depends on CC_IS_GCC depends on $(success,$(srctree)/scripts/gcc-plugin.sh $(CC)) default y help |