linux-stable/scripts/gcc-plugins
Masahiro Yamada ce6ed1c4c9 kbuild: rebuild GCC plugins when the compiler is upgraded
Linus reported a build error due to the GCC plugin incompatibility
when the compiler is upgraded. [1]

GCC plugins are tied to a particular GCC version. So, they must be
rebuilt when the compiler is upgraded.

This seems to be a long-standing flaw since the initial support of
GCC plugins.

Extend commit 8b59cd81dc ("kbuild: ensure full rebuild when the
compiler is updated"), so that GCC plugins are covered by the
compiler upgrade detection.

[1]: https://lore.kernel.org/lkml/CAHk-=wieoN5ttOy7SnsGwZv+Fni3R6m-Ut=oxih6bbZ28G+4dw@mail.gmail.com/

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
2021-03-11 14:40:50 +09:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
arm_ssp_per_task_plugin.c gcc-plugins: arm_ssp_per_task_plugin: Fix for older GCC < 6 2019-05-10 15:35:01 -07:00
cyc_complexity_plugin.c gcc-plugins: Replace HTTP links with HTTPS ones 2020-07-13 09:29:09 -07:00
gcc-common.h gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
gcc-generate-gimple-pass.h gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
gcc-generate-ipa-pass.h gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
gcc-generate-rtl-pass.h gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
gcc-generate-simple_ipa-pass.h gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
gen-random-seed.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig gcc-plugins: simplify GCC plugin-dev capability test 2020-12-04 14:09:55 -08:00
latent_entropy_plugin.c gcc-plugins: latent_entropy: remove unneeded semicolon 2021-03-01 19:19:50 -08:00
Makefile kbuild: rebuild GCC plugins when the compiler is upgraded 2021-03-11 14:40:50 +09:00
randomize_layout_plugin.c gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
sancov_plugin.c gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
stackleak_plugin.c gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
structleak_plugin.c gcc-plugins: structleak: remove unneeded variable 'ret' 2021-03-01 19:19:44 -08:00