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.
Showing the changes to scripts (1 of 6 files). Show all
Unified · Split
| @@ -8,7 +8,7 @@ config HAVE_GCC_PLUGINS · 7 unmodified lines | |||
| 8 | menuconfig GCC_PLUGINS | 8 | menuconfig GCC_PLUGINS |
| 9 | bool "GCC plugins" | 9 | bool "GCC plugins" |
| 10 | depends on HAVE_GCC_PLUGINS | 10 | depends on HAVE_GCC_PLUGINS |
| 11 | depends on CC_IS_GCC && GCC_VERSION >= 40800 | 11 | depends on CC_IS_GCC |
| 12 | depends on $(success,$(srctree)/scripts/gcc-plugin.sh $(CC)) | 12 | depends on $(success,$(srctree)/scripts/gcc-plugin.sh $(CC)) |
| 13 | default y | 13 | default y |
| 14 | help | 14 | help |