]> xenbits.xensource.com Git - xen.git/commitdiff
xen: gcov: add support for gcc 14
authorVolodymyr Babchuk <volodymyr_babchuk@epam.com>
Mon, 31 Mar 2025 07:22:11 +0000 (09:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 31 Mar 2025 07:22:11 +0000 (09:22 +0200)
gcc 14 (with patch "Add condition coverage (MC/DC)") introduced 9th
gcov counter. Also this version can call new merge function
__gcov_merge_ior(), so we need a new stub for it.

Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/coverage/gcc_4_7.c
xen/common/coverage/gcov_base.c

index 1c20e35ee50a01c9fe269d76cc8a7bc4dd78489f..f4c1802303fb868529eb6a61c38f1573a416fb2d 100644 (file)
 #define GCOV_COUNTERS 10
 #elif GCC_VERSION < 100000
 #define GCOV_COUNTERS 9
-#else
+#elif GCC_VERSION < 140000
 #define GCOV_COUNTERS 8
+#else
+#define GCOV_COUNTERS 9
 #endif
 
 #define GCOV_TAG_FUNCTION_LENGTH        3
index d0c6d0a3f9ae6d5c19df46165cafa22bda368864..742034e039d8582709ef98e75333b11be4b71758 100644 (file)
@@ -56,6 +56,11 @@ void __gcov_merge_delta(gcov_type *counters, unsigned int n_counters)
     /* Unused. */
 }
 
+void __gcov_merge_ior(gcov_type *counters, unsigned int n_counters)
+{
+    /* Unused. */
+}
+
 /*
  * Local variables:
  * mode: C