summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-09-24 18:39:23 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-25 09:03:40 -0400
commit519f5162614df6d705de3dce23384d63a2b2b81d (patch)
treed9990e17a5ef6c2fecbea6a287f46799756d70c4 /mk
parent02822d847c0bf6a4562cb1a600251d6568f72ce3 (diff)
downloadhaskell-519f5162614df6d705de3dce23384d63a2b2b81d.tar.gz
configure: Drop GccLT46
GCC 4.6 was released 7 years ago. I think we can finally assume that it's available. This is a simplification prompted by #15742.
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk.in1
-rw-r--r--mk/warnings.mk2
2 files changed, 0 insertions, 3 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 05ad6ad199..cd85c65189 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -526,7 +526,6 @@ GccVersion = @GccVersion@
# TargetPlatformFull retains the string passed to configure so we have it in
# the necessary format to pass to libffi's configure.
TargetPlatformFull = @TargetPlatformFull@
-GccLT46 = @GccLT46@
# Do we have a C compiler using an LLVM back end?
CcLlvmBackend = @CcLlvmBackend@
diff --git a/mk/warnings.mk b/mk/warnings.mk
index cee408d061..e2116a332a 100644
--- a/mk/warnings.mk
+++ b/mk/warnings.mk
@@ -21,12 +21,10 @@ ifneq "$(CcLlvmBackend)" "YES"
# Debian doesn't turn -Werror=unused-but-set-variable on by default, so
# we turn it on explicitly for consistency with other users
-ifeq "$(GccLT46)" "NO"
# Never set the flag on Windows as the host gcc may be too old.
ifneq "$(HostOS_CPP)" "mingw32"
SRC_CC_WARNING_OPTS += -Werror=unused-but-set-variable
endif
-endif
# Suppress the warning about __sync_fetch_and_nand (#9678).
libraries/ghc-prim/cbits/atomic_CC_OPTS += -Wno-sync-nand