From 3d3ed1afb2cff65f0986ae6b9bc69f9ae1b372e1 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 24 Jul 2022 14:52:24 -0400 Subject: 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 --- tools/gcc-plugins/gcc-common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/gcc-plugins/gcc-common.h') 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 -- cgit v1.2.3