Skip to content

Commit

Permalink
gcov: Another GCC, another gcov tweak
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
stewartsmith committed Mar 8, 2018
1 parent b71db45 commit 2d75b94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extract-gcov.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2d75b94

Please sign in to comment.