summaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/gcc-generate-gimple-pass.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2021-09-22 20:26:32 +0200
committerKees Cook <keescook@chromium.org>2021-10-04 10:58:08 -0700
commit4c78c7271f34befd96d2d221c8c356be1bbf132e (patch)
treeb91a202c3def53c85984fec73fd61b7f5456de6e /scripts/gcc-plugins/gcc-generate-gimple-pass.h
parentf02003c860d921171be4a27e2893766eb3bc6871 (diff)
downloadlinux-4c78c7271f34befd96d2d221c8c356be1bbf132e.tar.bz2
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 <ardb@kernel.org> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20210922182632.633394-1-ardb@kernel.org
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-gimple-pass.h')
-rw-r--r--scripts/gcc-plugins/gcc-generate-gimple-pass.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/scripts/gcc-plugins/gcc-generate-gimple-pass.h b/scripts/gcc-plugins/gcc-generate-gimple-pass.h
index 51780828734e..503c07496396 100644
--- a/scripts/gcc-plugins/gcc-generate-gimple-pass.h
+++ b/scripts/gcc-plugins/gcc-generate-gimple-pass.h
@@ -78,17 +78,6 @@ static const pass_data _PASS_NAME_PASS_DATA = {
.type = GIMPLE_PASS,
.name = _PASS_NAME_NAME,
.optinfo_flags = OPTGROUP_NONE,
-#if BUILDING_GCC_VERSION >= 5000
-#elif BUILDING_GCC_VERSION == 4009
- .has_gate = _HAS_GATE,
- .has_execute = _HAS_EXECUTE,
-#else
- .gate = _GATE,
- .execute = _EXECUTE,
- .sub = NULL,
- .next = NULL,
- .static_pass_number = 0,
-#endif
.tv_id = TV_NONE,
.properties_required = PROPERTIES_REQUIRED,
.properties_provided = PROPERTIES_PROVIDED,
@@ -102,21 +91,13 @@ public:
_PASS_NAME_PASS() : gimple_opt_pass(_PASS_NAME_PASS_DATA, g) {}
#ifndef NO_GATE
-#if BUILDING_GCC_VERSION >= 5000
virtual bool gate(function *) { return _GATE(); }
-#else
- virtual bool gate(void) { return _GATE(); }
-#endif
#endif
virtual opt_pass * clone () { return new _PASS_NAME_PASS(); }
#ifndef NO_EXECUTE
-#if BUILDING_GCC_VERSION >= 5000
virtual unsigned int execute(function *) { return _EXECUTE(); }
-#else
- virtual unsigned int execute(void) { return _EXECUTE(); }
-#endif
};
}