From 519f5162614df6d705de3dce23384d63a2b2b81d Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Tue, 24 Sep 2019 18:39:23 -0400 Subject: 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. --- mk/config.mk.in | 1 - mk/warnings.mk | 2 -- 2 files changed, 3 deletions(-) (limited to 'mk') 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 -- cgit v1.2.1