summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2016-05-24 00:35:33 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2016-05-24 03:05:41 +0200
commit4f5b33529b9e13b49a3ee00e9116b0edc9df1234 (patch)
tree325535b4bebf2c96ae768776fbf8c983609ac9a6 /mk
parent9bb277269ec020f138fe70a65f5972466113ab61 (diff)
downloadhaskell-4f5b33529b9e13b49a3ee00e9116b0edc9df1234.tar.gz
Suppress the warning about __sync_fetch_and_nand (#9678)
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk.in1
-rw-r--r--mk/warnings.mk5
2 files changed, 6 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 6d97463196..5dbde02e55 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -525,6 +525,7 @@ endif
# the necessary format to pass to libffi's configure.
TargetPlatformFull = @TargetPlatformFull@
GccLT34 = @GccLT34@
+GccLT44 = @GccLT44@
GccLT46 = @GccLT46@
GccIsClang = @GccIsClang@
diff --git a/mk/warnings.mk b/mk/warnings.mk
index b1e4bbd9d8..61d60ab0ea 100644
--- a/mk/warnings.mk
+++ b/mk/warnings.mk
@@ -25,6 +25,11 @@ endif
SRC_CC_WARNING_OPTS += -Wno-error=inline
endif
+ifeq "$(GccLT44)" "NO"
+# Suppress the warning about __sync_fetch_and_nand (#9678).
+libraries/ghc-prim/cbits/atomic_CC_OPTS += -Wno-sync-nand
+endif
+
else
# Don't warn about unknown GCC pragmas when using clang