[Skiboot] [PATCH] Fix GCOV_COUNTERS ifdef logic for GCC 6.0

Stewart Smith stewart at linux.vnet.ibm.com
Mon Jul 11 17:27:04 AEST 2016


Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 extract-gcov.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extract-gcov.c b/extract-gcov.c
index a9298fad362e..3d31d1b5a1f9 100644
--- a/extract-gcov.c
+++ b/extract-gcov.c
@@ -33,7 +33,7 @@
 typedef u32 gcov_unsigned_int;
 
 /* You will need to pass -DTARGET__GNUC__=blah when building */
-#if TARGET__GNUC__ >= 5 && TARGET__GNUC_MINOR__ >= 1
+#if TARGET__GNUC__ >= 6 || (TARGET__GNUC__ >= 5 && TARGET__GNUC_MINOR__ >= 1)
 #define GCOV_COUNTERS                   10
 #else
 #if TARGET__GNUC__ >= 4 && TARGET__GNUC_MINOR__ >= 9
-- 
2.1.4



More information about the Skiboot mailing list