[Skiboot] [PATCH 2/2] gcov: Another GCC, another gcov tweak
Stewart Smith
stewart at linux.vnet.ibm.com
Fri Mar 9 13:04:17 AEDT 2018
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
extract-gcov.c | 4 ++++
1 file changed, 4 insertions(+)
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
--
2.14.3
More information about the Skiboot
mailing list