summaryrefslogtreecommitdiff
path: root/includes/Stg.h
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2014-02-13 07:27:46 -0600
committerAustin Seipp <austin@well-typed.com>2014-02-17 01:46:03 -0600
commit858a807d5522145e8ede9148a15bb65a0d851c00 (patch)
treeab7997028b1f4e4c56bbf392962b6c2a4c1d14da /includes/Stg.h
parentebace6969f0ec85b1caa0fea265a5f9990a23b2e (diff)
downloadhaskell-858a807d5522145e8ede9148a15bb65a0d851c00.tar.gz
includes/Stg.h: add declarations for hs_popcnt and frinds
This fixes most of implicit function declarations emitted C codegen in UNREG mode. Found by adding the following to mk/build.mk: SRC_CC_OPTS += -Werror=implicit-function-declaration SRC_HC_OPTS += -optc-Werror=implicit-function-declaration Issue #8748 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'includes/Stg.h')
-rw-r--r--includes/Stg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/Stg.h b/includes/Stg.h
index 09de8d4b2a..be966aaf16 100644
--- a/includes/Stg.h
+++ b/includes/Stg.h
@@ -240,6 +240,7 @@ typedef StgFunPtr F_;
#include "stg/MiscClosures.h"
#endif
+#include "stg/Prim.h" /* ghc-prim fallbacks */
#include "stg/SMP.h" // write_barrier() inline is required
/* -----------------------------------------------------------------------------