summaryrefslogtreecommitdiff
path: root/rts/sm
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2017-05-11 18:14:26 +0800
committerMoritz Angermann <moritz.angermann@gmail.com>2017-05-11 18:31:44 +0800
commitb5ca082d297bc6306f445cb672a07b907dff8b18 (patch)
tree8bf02720f75953e97a84dc7ad27b79c55bbf12fd /rts/sm
parent83dcaa8c1e25e5d73c0010029ade30713c0e1696 (diff)
downloadhaskell-b5ca082d297bc6306f445cb672a07b907dff8b18.tar.gz
We define the `<XXX>_HOST_ARCH` to `1`, but never to `0`in
compiler/ghc.mk @echo "#define $(HostArch_CPP)_HOST_ARCH 1" >> $@ @echo "#define $(TargetArch_CPP)_HOST_ARCH 1" >> $@ this leads to warnigns like: > warning: 'x86_64_HOST_ARCH' is not defined, evaluates to 0 [-Wundef] Reviewers: austin, bgamari, erikd, simonmar Reviewed By: simonmar Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3555
Diffstat (limited to 'rts/sm')
-rw-r--r--rts/sm/HeapAlloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/sm/HeapAlloc.h b/rts/sm/HeapAlloc.h
index 9a36d106bb..197317f6fa 100644
--- a/rts/sm/HeapAlloc.h
+++ b/rts/sm/HeapAlloc.h
@@ -130,7 +130,7 @@ extern StgWord8 mblock_map[];
#define MBC_LINE_BITS 0
#define MBC_TAG_BITS 15
-#if x86_64_HOST_ARCH
+#if defined(x86_64_HOST_ARCH)
// 32bits are enough for 'entry' as modern amd64 boxes have
// only 48bit sized virtual addres.
typedef StgWord32 MbcCacheLine;