Replace __gcov_flush by __gcov_dump and __gcov_reset 81/318281/1 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.231727 accepted/tizen/unified/20240927.171039 accepted/tizen/unified/toolchain/20241004.101509 accepted/tizen/unified/x/20240929.082829 accepted/tizen/unified/x/asan/20241013.235826 tizen_9.0_m2_release
authorJakub Wlostowski <j.wlostowski@samsung.com>
Thu, 26 Sep 2024 08:48:21 +0000 (10:48 +0200)
committerJakub Wlostowski <j.wlostowski@samsung.com>
Thu, 26 Sep 2024 08:49:13 +0000 (10:49 +0200)
Change-Id: I14730923bf0df40fefb58f57dd2dc0c4f02482b0

src/framework/common/connection.cpp

index 421dde7..417e2f6 100644 (file)
 #include <utility>
 
 #ifdef TIZEN_TEST_GCOV
-extern "C" void __gcov_flush();
+# if (defined(__GNUC__) \
+           && ((__GNUC__ == 11 && __GNUC_MINOR__ >= 1) || (__GNUC__ >= 12))) \
+       || (defined(__clang__) && (__clang_major__ >= 12))
+extern "C" void __gcov_dump(void);
+extern "C" void __gcov_reset(void);
+       #  define __gcov_flush() do { __gcov_dump(); __gcov_reset(); } while (0)
+# else
+extern "C" void __gcov_flush(void);
+# endif
 #endif
 
 namespace Csr {