From ae8db766e95268fbeb5cfffd2f5f982d505a6fb1 Mon Sep 17 00:00:00 2001 From: Volodymyr Babchuk Date: Tue, 22 Jul 2025 16:19:39 +0200 Subject: [PATCH] coverage: add support for GCC 15 GCC 15 (with commit "Add prime path coverage to gcc/gcov") added a new, tenth counter. Reflect this in gcc_4_7.c. Signed-off-by: Volodymyr Babchuk Acked-by: Jan Beulich --- xen/common/coverage/gcc_4_7.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/common/coverage/gcc_4_7.c b/xen/common/coverage/gcc_4_7.c index f4c1802303..0d83f60180 100644 --- a/xen/common/coverage/gcc_4_7.c +++ b/xen/common/coverage/gcc_4_7.c @@ -30,8 +30,10 @@ #define GCOV_COUNTERS 9 #elif GCC_VERSION < 140000 #define GCOV_COUNTERS 8 -#else +#elif GCC_VERSION < 150000 #define GCOV_COUNTERS 9 +#else +#define GCOV_COUNTERS 10 #endif #define GCOV_TAG_FUNCTION_LENGTH 3