aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/structleak_plugin.c
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2021-09-22 18:26:32 +0000
committerKees Cook <[email protected]>2021-10-04 17:58:08 +0000
commit4c78c7271f34befd96d2d221c8c356be1bbf132e (patch)
treeb91a202c3def53c85984fec73fd61b7f5456de6e /scripts/gcc-plugins/structleak_plugin.c
parenthardening: Avoid harmless Clang option under CONFIG_INIT_STACK_ALL_ZERO (diff)
downloadkernel-4c78c7271f34befd96d2d221c8c356be1bbf132e.tar.gz
kernel-4c78c7271f34befd96d2d221c8c356be1bbf132e.zip
gcc-plugins: remove support for GCC 4.9 and older
The minimum GCC version has been bumped to 5.1, so we can get rid of all the compatibility code for anything older than that. Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
-rw-r--r--scripts/gcc-plugins/structleak_plugin.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/gcc-plugins/structleak_plugin.c b/scripts/gcc-plugins/structleak_plugin.c
index d7190e443a14..74e319288389 100644
--- a/scripts/gcc-plugins/structleak_plugin.c
+++ b/scripts/gcc-plugins/structleak_plugin.c
@@ -103,10 +103,8 @@ static void finish_type(void *event_data, void *data)
if (type == NULL_TREE || type == error_mark_node)
return;
-#if BUILDING_GCC_VERSION >= 5000
if (TREE_CODE(type) == ENUMERAL_TYPE)
return;
-#endif
if (TYPE_USERSPACE(type))
return;