From: sewardj Date: Mon, 11 Dec 2000 15:26:00 +0000 (+0000) Subject: [project @ 2000-12-11 15:26:00 by sewardj] X-Git-Tag: Approximately_9120_patches~3135 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=a1b15fd402f88902f9cb29275e3a429f17261be8;p=ghc-hetmet.git [project @ 2000-12-11 15:26:00 by sewardj] More driver straightening-out. --- diff --git a/ghc/compiler/main/DriverFlags.hs b/ghc/compiler/main/DriverFlags.hs index 924f29b..b04326a 100644 --- a/ghc/compiler/main/DriverFlags.hs +++ b/ghc/compiler/main/DriverFlags.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: DriverFlags.hs,v 1.32 2000/12/11 12:30:58 rrt Exp $ +-- $Id: DriverFlags.hs,v 1.33 2000/12/11 15:26:00 sewardj Exp $ -- -- Driver flags -- @@ -429,7 +429,7 @@ dynamic_flags = [ -- the rest of the -f* and -fno-* flags , ( "fno-", PrefixPred (\f -> isFFlag f) (\f -> unSetDynFlag (getFFlag f)) ) - , ( "f". PrefixPred (\f -> isFFlag f) (\f -> setDynFlag (getFFlag f)) ) + , ( "f", PrefixPred (\f -> isFFlag f) (\f -> setDynFlag (getFFlag f)) ) ] -- these -f flags can all be reversed with -fno- diff --git a/ghc/compiler/main/TmpFiles.hs b/ghc/compiler/main/TmpFiles.hs index 823b79c..5bd5e59 100644 --- a/ghc/compiler/main/TmpFiles.hs +++ b/ghc/compiler/main/TmpFiles.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: TmpFiles.hs,v 1.13 2000/12/11 14:42:21 sewardj Exp $ +-- $Id: TmpFiles.hs,v 1.14 2000/12/11 15:26:00 sewardj Exp $ -- -- Temporary file management -- @@ -19,6 +19,7 @@ module TmpFiles ( -- main import Config import Util +import DriverUtil -- hslibs import Exception @@ -75,8 +76,3 @@ newTempName extn = do addFilesToClean :: [FilePath] -> IO () addFilesToClean files = mapM_ (add v_FilesToClean) files - -add :: IORef [a] -> a -> IO () -add var x = do - xs <- readIORef var - writeIORef var (x:xs)