gcc-plugins: remove code for GCC versions older than 4.9
Documentation/process/changes.rst says the minimal GCC version is 4.9. Hence, BUILDING_GCC_VERSION is greater than or equal to 4009. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20201202134929.99883-1-masahiroy@kernel.org
This commit is contained in:
committed by
Kees Cook
parent
b650545978
commit
af2d22254e
@@ -590,16 +590,12 @@ static void register_attributes(void *event_data, void *data)
|
||||
randomize_layout_attr.name = "randomize_layout";
|
||||
randomize_layout_attr.type_required = true;
|
||||
randomize_layout_attr.handler = handle_randomize_layout_attr;
|
||||
#if BUILDING_GCC_VERSION >= 4007
|
||||
randomize_layout_attr.affects_type_identity = true;
|
||||
#endif
|
||||
|
||||
no_randomize_layout_attr.name = "no_randomize_layout";
|
||||
no_randomize_layout_attr.type_required = true;
|
||||
no_randomize_layout_attr.handler = handle_randomize_layout_attr;
|
||||
#if BUILDING_GCC_VERSION >= 4007
|
||||
no_randomize_layout_attr.affects_type_identity = true;
|
||||
#endif
|
||||
|
||||
randomize_considered_attr.name = "randomize_considered";
|
||||
randomize_considered_attr.type_required = true;
|
||||
|
||||
Reference in New Issue
Block a user