aboutsummaryrefslogtreecommitdiff
path: root/extract-gcov.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-08-18 07:59:22 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-08-18 07:59:22 +1000
commitf8ee4092d4b5d23033bf699d1c3a9aa82965fbc5 (patch)
tree790f8590de760548cb2ad9fb574474ca7a670b8f /extract-gcov.c
parent1590e5814c14c4de4a6accfe9156eb1ce4d1d392 (diff)
downloadskiboot-f8ee4092d4b5d23033bf699d1c3a9aa82965fbc5.zip
skiboot-f8ee4092d4b5d23033bf699d1c3a9aa82965fbc5.tar.gz
skiboot-f8ee4092d4b5d23033bf699d1c3a9aa82965fbc5.tar.bz2
Use target CC for __GNUC__ version defines in extract-gcov
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'extract-gcov.c')
-rw-r--r--extract-gcov.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/extract-gcov.c b/extract-gcov.c
index 8320b3a..75c1108 100644
--- a/extract-gcov.c
+++ b/extract-gcov.c
@@ -32,7 +32,8 @@
typedef unsigned int gcov_unsigned_int;
-#if __GNUC__ == 4 && __GNUC_MINOR__ >= 9
+/* You will need to pass -DTARGET__GNUC__=blah when building */
+#if TARGET__GNUC__ >= 4 && TARGET__GNUC_MINOR__ >= 9
#define GCOV_COUNTERS 9
#else
#define GCOV_COUNTERS 8