Skip to content

Commit 2d75b94

Browse files
committed
gcov: Another GCC, another gcov tweak
Signed-off-by: Stewart Smith <[email protected]>
1 parent b71db45 commit 2d75b94

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extract-gcov.c

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
typedef u32 gcov_unsigned_int;
3434

3535
/* You will need to pass -DTARGET__GNUC__=blah when building */
36+
#if (__GNUC__ >= 7)
37+
#define GCOV_COUNTERS 9
38+
#else
3639
#if TARGET__GNUC__ >= 6 || (TARGET__GNUC__ >= 5 && TARGET__GNUC_MINOR__ >= 1)
3740
#define GCOV_COUNTERS 10
3841
#else
@@ -42,6 +45,7 @@ typedef u32 gcov_unsigned_int;
4245
#define GCOV_COUNTERS 8
4346
#endif /* GCC 4.9 */
4447
#endif /* GCC 5.1 */
48+
#endif /* GCC 7 */
4549
typedef u64 gcov_type;
4650

4751
struct gcov_info

0 commit comments

Comments
 (0)