diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-03-09 08:46:00 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-03-09 08:46:00 +1100 |
commit | 2d75b9439f663e6ece06ef031ca7d2a6a40a09e7 (patch) | |
tree | c59068c54a4731c02f82d21f2d7393988b2e018c /extract-gcov.c | |
parent | b71db454f7031cb493d18294f59fda9f6909c7b0 (diff) | |
download | skiboot-2d75b9439f663e6ece06ef031ca7d2a6a40a09e7.zip skiboot-2d75b9439f663e6ece06ef031ca7d2a6a40a09e7.tar.gz skiboot-2d75b9439f663e6ece06ef031ca7d2a6a40a09e7.tar.bz2 |
gcov: Another GCC, another gcov tweak
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'extract-gcov.c')
-rw-r--r-- | extract-gcov.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extract-gcov.c b/extract-gcov.c index 3d31d1b..e5bcf16 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 |