Message ID | 20180309020417.1335-2-stewart@linux.vnet.ibm.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/2] Keep constructors with priorities | expand |
diff --git a/extract-gcov.c b/extract-gcov.c index 3d31d1b5a1f9..e5bcf165342f 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
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> --- extract-gcov.c | 4 ++++ 1 file changed, 4 insertions(+)