Skip to content

Commit f32e90c

Browse files
tobluxkees
authored andcommitted
gcc-plugins: randstruct: Remove GCC 4.7 or newer requirement
Since the kernel currently requires GCC 5.1 as a minimum, remove the unnecessary GCC version >= 4.7 check. Signed-off-by: Thorsten Blum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent f91f7ac commit f32e90c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

scripts/gcc-plugins/randomize_layout_plugin.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
#include "gcc-common.h"
2020
#include "randomize_layout_seed.h"
2121

22-
#if BUILDING_GCC_MAJOR < 4 || (BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR < 7)
23-
#error "The RANDSTRUCT plugin requires GCC 4.7 or newer."
24-
#endif
25-
2622
#define ORIG_TYPE_NAME(node) \
2723
(TYPE_NAME(TYPE_MAIN_VARIANT(node)) != NULL_TREE ? ((const unsigned char *)IDENTIFIER_POINTER(TYPE_NAME(TYPE_MAIN_VARIANT(node)))) : (const unsigned char *)"anonymous")
2824

0 commit comments

Comments
 (0)