diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-12-02 16:49:29 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-12-05 01:09:41 +0300 |
commit | af2d22254e8ee4558d3803372735c0b4f6046cd2 (patch) | |
tree | b9644c9f4aaf14ec391b781fa37555800145986a /scripts/gcc-plugins/sancov_plugin.c | |
parent | b65054597872ce3aefbc6a666385eabdf9e288da (diff) | |
download | linux-af2d22254e8ee4558d3803372735c0b4f6046cd2.tar.xz |
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
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
-rw-r--r-- | scripts/gcc-plugins/sancov_plugin.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/scripts/gcc-plugins/sancov_plugin.c b/scripts/gcc-plugins/sancov_plugin.c index caff4a6c7e9a..23bd023a283b 100644 --- a/scripts/gcc-plugins/sancov_plugin.c +++ b/scripts/gcc-plugins/sancov_plugin.c @@ -80,10 +80,8 @@ static void sancov_start_unit(void __unused *gcc_data, void __unused *user_data) nothrow_attr = tree_cons(get_identifier("nothrow"), NULL, NULL); decl_attributes(&sancov_fndecl, nothrow_attr, 0); gcc_assert(TREE_NOTHROW(sancov_fndecl)); -#if BUILDING_GCC_VERSION > 4005 leaf_attr = tree_cons(get_identifier("leaf"), NULL, NULL); decl_attributes(&sancov_fndecl, leaf_attr, 0); -#endif } __visible int plugin_init(struct plugin_name_args *plugin_info, struct plugin_gcc_version *version) @@ -106,11 +104,7 @@ __visible int plugin_init(struct plugin_name_args *plugin_info, struct plugin_gc }; /* BBs can be split afterwards?? */ -#if BUILDING_GCC_VERSION >= 4009 PASS_INFO(sancov, "asan", 0, PASS_POS_INSERT_BEFORE); -#else - PASS_INFO(sancov, "nrv", 1, PASS_POS_INSERT_BEFORE); -#endif if (!plugin_default_version_check(version, &gcc_version)) { error(G_("incompatible gcc/plugin versions")); |