From 2d75b9439f663e6ece06ef031ca7d2a6a40a09e7 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Fri, 9 Mar 2018 08:46:00 +1100 Subject: gcov: Another GCC, another gcov tweak Signed-off-by: Stewart Smith --- extract-gcov.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'extract-gcov.c') diff --git a/extract-gcov.c b/extract-gcov.c index 3d31d1b5..e5bcf165 100644 --- a/extract-gcov.c +++ b/extract-gcov.c @@ -33,6 +33,9 @@ typedef u32 gcov_unsigned_int; /* You will need to pass -DTARGET__GNUC__=blah when building */ +#if (__GNUC__ >= 7) +#define GCOV_COUNTERS 9 +#else #if TARGET__GNUC__ >= 6 || (TARGET__GNUC__ >= 5 && TARGET__GNUC_MINOR__ >= 1) #define GCOV_COUNTERS 10 #else @@ -42,6 +45,7 @@ typedef u32 gcov_unsigned_int; #define GCOV_COUNTERS 8 #endif /* GCC 4.9 */ #endif /* GCC 5.1 */ +#endif /* GCC 7 */ typedef u64 gcov_type; struct gcov_info -- cgit v1.2.1