aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-12-03 15:36:50 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-12-03 15:36:50 +1100
commitc15cab6f07181310cbce47037f19c35b74ab8918 (patch)
tree77c33a9e2ac64e994c59aeb71060a60b6d0a248f /Makefile.main
parent11eea4785fee409aa79e08c1679ec175563f36ae (diff)
downloadskiboot-c15cab6f07181310cbce47037f19c35b74ab8918.zip
skiboot-c15cab6f07181310cbce47037f19c35b74ab8918.tar.gz
skiboot-c15cab6f07181310cbce47037f19c35b74ab8918.tar.bz2
Fix up extract-gcov for gcc > 4.8
The story of extract-gcov is not necessarily a pleasant one, involving GCC internals, padding of data structures, differences in data structures that are designed to change whenever GCC wants to and a strong desire to not implement a VFS in skiboot or some other streaming interface (and associated userspace and other such blergh). This patch makes us be all explicit about padding in the structures, enabling -Wpadding for extract-gcov.c. We also get all strict over the size of things and add support for gcc 5.1, which added an extra counter. There is likely GCC hacking in my future to make this a lot less fragile. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.main b/Makefile.main
index b206ee1..c0f0955 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -203,8 +203,8 @@ include $(shell find $(SRC)/* -name Makefile.check)
extract-gcov: extract-gcov.c
$(call Q, HOSTCC ,$(HOSTCC) $(HOSTCFLAGS) \
-DTARGET__GNUC__=`echo '__GNUC__'|$(CC) -E -|grep -v '^#'` \
- -DTARGET__GNUC_MINOR__=`echo '__GNUC__'|$(CC) -E -|grep -v '^#'` \
- -O0 -g -I$(SRC) -o $@ $<,$<)
+ -DTARGET__GNUC_MINOR__=`echo '__GNUC_MINOR__'|$(CC) -E -|grep -v '^#'` \
+ -Wpadded -O0 -g -I$(SRC) -o $@ $<,$<)
coverage-report: skiboot.info
genhtml --branch-coverage -q -o $@ $<