diff options
author | Ian Lynagh <igloo@earth.li> | 2011-06-17 18:47:08 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-06-17 18:47:08 +0100 |
commit | 7a80e2ddc60c611c744c38659a293d3f429efd20 (patch) | |
tree | 105a1438799047e609ad0c5fb8c998152216592d /compiler/cmm/CmmSpillReload.hs | |
parent | 97e4bbe1a59b292038f1d9153ba31ef358aa827b (diff) | |
download | haskell-7a80e2ddc60c611c744c38659a293d3f429efd20.tar.gz |
Fix the build with GHC 6.12
Diffstat (limited to 'compiler/cmm/CmmSpillReload.hs')
-rw-r--r-- | compiler/cmm/CmmSpillReload.hs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/compiler/cmm/CmmSpillReload.hs b/compiler/cmm/CmmSpillReload.hs index e3f631da09..031d20075f 100644 --- a/compiler/cmm/CmmSpillReload.hs +++ b/compiler/cmm/CmmSpillReload.hs @@ -3,9 +3,14 @@ -- If this module lives on I'd like to get rid of this flag in due course {-# OPTIONS_GHC -fno-warn-warnings-deprecations #-} -#if __GLASGOW_HASKELL__ < 701 --- GHC 7.0.1 improved incomplete pattern warnings with GADTs + +-- GHC 7.0.1 improved incomplete pattern warnings with GADTs, but for +-- older compilers we need to turn warn-incomplete-patterns off. +-- However, older compilers don't support OPTIONS_GHC inside CPP, so +-- we instead always turn it off, and then conditionally turn it back on. {-# OPTIONS_GHC -fno-warn-incomplete-patterns #-} +#if __GLASGOW_HASKELL__ >= 700 +{-# OPTIONS_GHC -fwarn-incomplete-patterns #-} #endif module CmmSpillReload |