summaryrefslogtreecommitdiff
path: root/tools/gcc-plugins/gcc-common.h
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-07-27 11:44:39 -0400
committerGitHub <noreply@github.com>2022-07-27 11:44:39 -0400
commitd335feeff824b3313864096e8cefc5fbcb1df10f (patch)
tree1153c28aac9922cd3bf15b9606c263007c176797 /tools/gcc-plugins/gcc-common.h
parent528d3d87bf1a4fe201bd07c1e83d39637c62417b (diff)
parent3d3ed1afb2cff65f0986ae6b9bc69f9ae1b372e1 (diff)
Merge pull request #11682 from opensourcerouting/frr-format-gcc-12
tools/gcc-plugins: make GCC 12 compatible
Diffstat (limited to 'tools/gcc-plugins/gcc-common.h')
-rw-r--r--tools/gcc-plugins/gcc-common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gcc-plugins/gcc-common.h b/tools/gcc-plugins/gcc-common.h
index ec45de1a53..9f59447d63 100644
--- a/tools/gcc-plugins/gcc-common.h
+++ b/tools/gcc-plugins/gcc-common.h
@@ -982,4 +982,9 @@ static inline void debug_gimple_stmt(const_gimple s)
#define SET_DECL_MODE(decl, mode) DECL_MODE(decl) = (mode)
#endif
+#if BUILDING_GCC_VERSION < 12000
+#define check_function_arguments_recurse(arg, ctx, tree, num, opt) \
+ check_function_arguments_recurse(arg, ctx, tree, num)
+#endif
+
#endif