summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunkyeong Kim <jk0430.kim@samsung.com>2024-10-11 19:13:52 +0900
committerJunkyeong Kim <jk0430.kim@samsung.com>2024-10-11 19:14:00 +0900
commitc73f9b2f08fec6692c1396ad9a8910277afe0b18 (patch)
treefd9bcd721c1be138e41b034e9dfef3c2584ccb1b
parent79dca242257e2b0ecd2e4e10dd345beec222a1f1 (diff)
downloadlibtbm-c73f9b2f08fec6692c1396ad9a8910277afe0b18.tar.gz
libtbm-c73f9b2f08fec6692c1396ad9a8910277afe0b18.tar.bz2
libtbm-c73f9b2f08fec6692c1396ad9a8910277afe0b18.zip
haltest: Support new gcc version gcov
Change-Id: I5a195695ca7338a62d833c18ac37cc069e1f8957 Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
-rw-r--r--haltests/tc_main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/haltests/tc_main.cpp b/haltests/tc_main.cpp
index 7545995..b01d3ab 100644
--- a/haltests/tc_main.cpp
+++ b/haltests/tc_main.cpp
@@ -32,6 +32,13 @@
#ifdef TIZEN_TEST_GCOV
extern "C" void __gcov_flush(void);
+#if (defined(__GNUC__) && ((__GNUC__ == 11 && __GNUC_MINOR__ >= 1) || (__GNUC__ >= 12))) \ || (defined(__clang__) && (__clang_major__ >= 12))
+extern void __gcov_dump(void);
+extern void __gcov_reset(void);
+#define __gcov_flush() do { __gcov_dump(); __gcov_reset(); } while (0)
+#else
+extern void __gcov_flush(void);
+#endif
#endif
int main(int argc, char **argv)