X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fmain%2FDriverFlags.hs;h=b696abe9eb20aab511f9d1e635111b866b35a32a;hb=31285afea6a7b553380fd0a01e0a8ce0d7e50878;hp=435e50a859ad005b03e7915085493d2e18b4fd3f;hpb=fb7a723bfd7650a705cb226e07c5b08b7a8e9279;p=ghc-hetmet.git diff --git a/ghc/compiler/main/DriverFlags.hs b/ghc/compiler/main/DriverFlags.hs index 435e50a..b696abe 100644 --- a/ghc/compiler/main/DriverFlags.hs +++ b/ghc/compiler/main/DriverFlags.hs @@ -1,7 +1,7 @@ {-# OPTIONS -#include "hschooks.h" #-} ----------------------------------------------------------------------------- --- $Id: DriverFlags.hs,v 1.68 2001/09/04 18:29:20 ken Exp $ +-- $Id: DriverFlags.hs,v 1.72 2001/09/25 18:08:47 ken Exp $ -- -- Driver flags -- @@ -76,8 +76,8 @@ processArgs _spec [] spare = return (reverse spare) processArgs spec args@(('-':arg):args') spare = do case findArg spec arg of - Just (rest,action) -> do args' <- processOneArg action rest args - processArgs spec args' spare + Just (rest,action) -> do args' <- processOneArg action rest args + processArgs spec args' spare Nothing -> processArgs spec args' (('-':arg):spare) processArgs spec (arg:args) spare = @@ -272,6 +272,9 @@ static_flags = , ( "fmax-simplifier-iterations", Prefix (writeIORef v_MaxSimplifierIterations . read) ) + , ( "frule-check", + SepArg (\s -> writeIORef v_RuleCheck (Just s)) ) + , ( "fusagesp" , NoArg (do writeIORef v_UsageSPInf True add v_Opt_C "-fusagesp-on") ) @@ -482,7 +485,7 @@ buildStaticHscOpts = do machdepCCOpts | prefixMatch "alpha" cTARGETPLATFORM - = return ( ["-static"], ["-w"] ) + = return ( ["-static", "-w"], ["-mieee"] ) -- For now, to suppress the gcc warning "call-clobbered -- register used for global register variable", we simply -- disable all warnings altogether using the -w flag. Oh well.