[project @ 2000-12-11 11:41:08 by simonmar]
authorsimonmar <unknown>
Mon, 11 Dec 2000 11:41:08 +0000 (11:41 +0000)
committersimonmar <unknown>
Mon, 11 Dec 2000 11:41:08 +0000 (11:41 +0000)
* -fno-strictness et al. were in the wrong set of flags.
* remove static version of -fno-implicit-prelude

ghc/compiler/main/DriverFlags.hs

index 4bd5129..1a0e6d8 100644 (file)
@@ -1,5 +1,5 @@
 -----------------------------------------------------------------------------
--- $Id: DriverFlags.hs,v 1.29 2000/12/08 10:26:41 simonmar Exp $
+-- $Id: DriverFlags.hs,v 1.30 2000/12/11 11:41:08 simonmar Exp $
 --
 -- Driver flags
 --
@@ -281,8 +281,14 @@ static_flags =
   ,  ( "fexcess-precision" , NoArg (do writeIORef v_Excess_precision True
                                       add v_Opt_C "-fexcess-precision"))
 
+       -- Optimisation flags are treated specially, so the normal
+       -- -fno-* pattern below doesn't work.  We therefore allow
+       -- certain optimisation passes to be turned off explicitly:
+  ,  ( "fno-strictness"           , NoArg (writeIORef v_Strictness False) )
+  ,  ( "fno-cpr"          , NoArg (writeIORef v_CPR False) )
+  ,  ( "fno-cse"          , NoArg (writeIORef v_CSE False) )
+
        -- flags that are "active negatives"
-  ,  ( "fno-implicit-prelude"  , PassFlag (add v_Opt_C) )
   ,  ( "fno-prune-tydecls"     , PassFlag (add v_Opt_C) )
   ,  ( "fno-prune-instdecls"   , PassFlag (add v_Opt_C) )
   ,  ( "fno-pre-inlining"      , PassFlag (add v_Opt_C) )
@@ -439,13 +445,6 @@ dynamic_flags = [
   ,  ( "fglasgow-exts", NoArg (setDynFlag Opt_GlasgowExts) )
   ,  ( "fno-implicit-prelude", NoArg (setDynFlag Opt_NoImplicitPrelude) )
 
-       -- Optimisation flags are treated specially, so the normal
-       -- -fno-* pattern below doesn't work.  We therefore allow
-       -- certain optimisation passes to be turned off explicitly:
-  ,  ( "fno-strictness"           , NoArg (writeIORef v_Strictness False) )
-  ,  ( "fno-cpr"          , NoArg (writeIORef v_CPR False) )
-  ,  ( "fno-cse"          , NoArg (writeIORef v_CSE False) )
-
   ,  ( "fallow-overlapping-instances", 
                NoArg (setDynFlag Opt_AllowOverlappingInstances) )