summaryrefslogtreecommitdiff
path: root/compiler/cmm/Cmm.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-09-06 19:57:37 +0000
committerIan Lynagh <igloo@earth.li>2007-09-06 19:57:37 +0000
commit3ed54797c2824e1ad5cbe8015401e9e648bf122a (patch)
tree71b5f8ac5259f66ee4a53db616cfd4cc5c00e0fe /compiler/cmm/Cmm.hs
parentd9e439063bbd9827df7a6f75471834d8479c3ea3 (diff)
downloadhaskell-3ed54797c2824e1ad5cbe8015401e9e648bf122a.tar.gz
Fix building with old compilers which don't understand -fno-warn-orphans
Diffstat (limited to 'compiler/cmm/Cmm.hs')
-rw-r--r--compiler/cmm/Cmm.hs12
1 files changed, 4 insertions, 8 deletions
diff --git a/compiler/cmm/Cmm.hs b/compiler/cmm/Cmm.hs
index 22479ca247..24542e1020 100644
--- a/compiler/cmm/Cmm.hs
+++ b/compiler/cmm/Cmm.hs
@@ -1,4 +1,7 @@
-{-# OPTIONS -Wall -fno-warn-name-shadowing -fno-warn-orphans #-}
+{-# OPTIONS -fno-warn-name-shadowing -w #-}
+-- We'd like to use -fno-warn-orphans rather than -w, but old compilers
+-- don't understand it so building stage1 fails.
+
-----------------------------------------------------------------------------
--
-- Cmm data types
@@ -7,13 +10,6 @@
--
-----------------------------------------------------------------------------
-{-# OPTIONS -w #-}
--- The above warning supression flag is a temporary kludge.
--- While working on this module you are encouraged to remove it and fix
--- any warnings in the module. See
--- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
--- for details
-
module Cmm (
GenCmm(..), Cmm, RawCmm,
GenCmmTop(..), CmmTop, RawCmmTop,