[PATCH] coverage: add support for GCC 15

Volodymyr Babchuk posted 1 patch 3 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20250716212504.406565-1-volodymyr._5Fbabchuk@epam.com
xen/common/coverage/gcc_4_7.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
[PATCH] coverage: add support for GCC 15
Posted by Volodymyr Babchuk 3 months, 2 weeks ago
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 <volodymyr_babchuk@epam.com>
---
 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
-- 
2.50.0
Re: [PATCH] coverage: add support for GCC 15
Posted by Jan Beulich 3 months, 1 week ago
On 16.07.2025 23:25, Volodymyr Babchuk wrote:
> 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 <volodymyr_babchuk@epam.com>

Acked-by: Jan Beulich <jbeulich@suse.com>