summaryrefslogtreecommitdiffstats
path: root/tools/gcc-plugins/gcc-common.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-07-24 20:52:24 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2022-07-26 21:38:16 +0200
commit3d3ed1afb2cff65f0986ae6b9bc69f9ae1b372e1 (patch)
treebf549cc38ca3eb6abe5fb7ad20f507a6d056636f /tools/gcc-plugins/gcc-common.h
parentMerge pull request #11679 from donaldsharp/fix_compilation_bgp_vty (diff)
downloadfrr-3d3ed1afb2cff65f0986ae6b9bc69f9ae1b372e1.tar.xz
frr-3d3ed1afb2cff65f0986ae6b9bc69f9ae1b372e1.zip
tools/gcc-plugins: make GCC 12 compatible
check_function_arguments_recurse() has received a new function argument in GCC 12. Fill it in and add a compatibility wrapper. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to '')
-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 ec45de1a5..9f59447d6 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