simonmar 2005/03/18 05:42:01 PST
Modified files:
ghc/compiler package.conf.in
ghc/compiler/basicTypes Id.lhs NewDemand.lhs VarEnv.lhs
ghc/compiler/cmm CLabel.hs CmmParse.y PprC.hs
ghc/compiler/codeGen CgCallConv.hs CgCase.lhs CgClosure.lhs
CgForeignCall.hs CgHeapery.lhs
CgInfoTbls.hs CgMonad.lhs CgParallel.hs
CgProf.hs CgTicky.hs CgUtils.hs
ClosureInfo.lhs CodeGen.lhs SMRep.lhs
ghc/compiler/compMan CompManager.lhs
ghc/compiler/coreSyn CoreLint.lhs CorePrep.lhs CoreSyn.lhs
CoreUnfold.lhs CoreUtils.lhs
MkExternalCore.lhs
ghc/compiler/cprAnalysis CprAnalyse.lhs
ghc/compiler/deSugar Desugar.lhs DsBinds.lhs DsListComp.lhs
DsMonad.lhs Match.lhs
ghc/compiler/ghci ByteCodeGen.lhs InteractiveUI.hs
Linker.lhs ObjLink.lhs
ghc/compiler/hsSyn HsTypes.lhs
ghc/compiler/iface BinIface.hs LoadIface.lhs MkIface.lhs
TcIface.lhs
ghc/compiler/ilxGen IlxGen.lhs
ghc/compiler/main CodeOutput.lhs DriverMkDepend.hs
DriverPhases.hs DriverPipeline.hs
ErrUtils.lhs Finder.lhs GetImports.hs
HscMain.lhs HscTypes.lhs Main.hs
Packages.lhs ParsePkgConf.y SysTools.lhs
TidyPgm.lhs
ghc/compiler/nativeGen AsmCodeGen.lhs MachCodeGen.hs
PositionIndependentCode.hs PprMach.hs
RegisterAlloc.hs
ghc/compiler/ndpFlatten FlattenInfo.hs Flattening.hs
ghc/compiler/parser Lexer.x Parser.y.pp
ghc/compiler/prelude PrelRules.lhs
ghc/compiler/profiling SCCfinal.lhs
ghc/compiler/rename RnBinds.lhs RnEnv.lhs RnExpr.lhs
RnNames.lhs RnSource.lhs RnTypes.lhs
ghc/compiler/simplCore CSE.lhs FloatIn.lhs FloatOut.lhs
LiberateCase.lhs SetLevels.lhs
SimplCore.lhs SimplEnv.lhs
SimplMonad.lhs SimplUtils.lhs
Simplify.lhs
ghc/compiler/simplStg SimplStg.lhs
ghc/compiler/specialise SpecConstr.lhs Specialise.lhs
ghc/compiler/stgSyn CoreToStg.lhs StgSyn.lhs
ghc/compiler/stranal DmdAnal.lhs SaAbsInt.lhs StrictAnal.lhs
WorkWrap.lhs
ghc/compiler/typecheck Inst.lhs TcBinds.lhs TcClassDcl.lhs
TcDeriv.lhs TcExpr.lhs TcForeign.lhs
TcMType.lhs TcPat.lhs TcRnDriver.lhs
TcRnMonad.lhs TcSimplify.lhs
TcTyClsDecls.lhs TcType.lhs
ghc/compiler/types InstEnv.lhs Type.lhs
ghc/compiler/utils Outputable.lhs Util.lhs
Added files:
ghc/compiler/main CmdLineParser.hs DynFlags.hs
StaticFlags.hs
Removed files:
ghc/compiler/main CmdLineOpts.lhs DriverFlags.hs
DriverState.hs DriverUtil.hs
Log:
Flags cleanup.
Basically the purpose of this commit is to move more of the compiler's
global state into DynFlags, which is moving in the direction we need
to go for the GHC API which can have multiple active sessions
supported by a single GHC instance.
Before:
$ grep 'global_var' */*hs | wc -l
78
After:
$ grep 'global_var' */*hs | wc -l
27
Well, it's an improvement. Most of what's left won't really affect
our ability to host multiple sessions.
Lots of static flags have become dynamic flags (yay!). Notably lots
of flags that we used to think of as "driver" flags, like -I and -L,
are now dynamic. The most notable static flags left behind are the
"way" flags, eg. -prof. It would be nice to fix this, but it isn't
urgent.
On the way, lots of cleanup has happened. Everything related to
static and dynamic flags lives in StaticFlags and DynFlags
respectively, and they share a common command-line parser library in
CmdLineParser. The flags related to modes (--makde, --interactive
etc.) are now private to the front end: in fact private to Main
itself, for now.
Revision Changes Path
1.9 +253 -254 fptools/ghc/compiler/package.conf.in
1.127 +1 -1 fptools/ghc/compiler/basicTypes/Id.lhs
1.20 +1 -1 fptools/ghc/compiler/basicTypes/NewDemand.lhs
1.18 +1 -1 fptools/ghc/compiler/basicTypes/VarEnv.lhs
1.16 +2 -1 fptools/ghc/compiler/cmm/CLabel.hs
1.7 +2 -1 fptools/ghc/compiler/cmm/CmmParse.y
1.13 +3 -3 fptools/ghc/compiler/cmm/PprC.hs
1.4 +1 -1 fptools/ghc/compiler/codeGen/CgCallConv.hs
1.73 +2 -2 fptools/ghc/compiler/codeGen/CgCase.lhs
1.67 +2 -2 fptools/ghc/compiler/codeGen/CgClosure.lhs
1.4 +1 -1 fptools/ghc/compiler/codeGen/CgForeignCall.hs
1.44 +2 -2 fptools/ghc/compiler/codeGen/CgHeapery.lhs
1.9 +2 -1 fptools/ghc/compiler/codeGen/CgInfoTbls.hs
1.44 +2 -2 fptools/ghc/compiler/codeGen/CgMonad.lhs
1.3 +1 -1 fptools/ghc/compiler/codeGen/CgParallel.hs
1.9 +1 -1 fptools/ghc/compiler/codeGen/CgProf.hs
1.3 +1 -1 fptools/ghc/compiler/codeGen/CgTicky.hs
1.14 +1 -1 fptools/ghc/compiler/codeGen/CgUtils.hs
1.68 +2 -1 fptools/ghc/compiler/codeGen/ClosureInfo.lhs
1.64 +5 -7 fptools/ghc/compiler/codeGen/CodeGen.lhs
1.23 +2 -1 fptools/ghc/compiler/codeGen/SMRep.lhs
1.167 +27 -31 fptools/ghc/compiler/compMan/CompManager.lhs
1.89 +2 -1 fptools/ghc/compiler/coreSyn/CoreLint.lhs
1.40 +1 -1 fptools/ghc/compiler/coreSyn/CorePrep.lhs
1.57 +1 -1 fptools/ghc/compiler/coreSyn/CoreSyn.lhs
1.97 +3 -5 fptools/ghc/compiler/coreSyn/CoreUnfold.lhs
1.132 +1 -1 fptools/ghc/compiler/coreSyn/CoreUtils.lhs
1.30 +2 -1 fptools/ghc/compiler/coreSyn/MkExternalCore.lhs
1.22 +1 -1 fptools/ghc/compiler/cprAnalysis/CprAnalyse.lhs
1.85 +4 -3 fptools/ghc/compiler/deSugar/Desugar.lhs
1.55 +2 -1 fptools/ghc/compiler/deSugar/DsBinds.lhs
1.51 +2 -1 fptools/ghc/compiler/deSugar/DsListComp.lhs
1.59 +1 -1 fptools/ghc/compiler/deSugar/DsMonad.lhs
1.70 +1 -1 fptools/ghc/compiler/deSugar/Match.lhs
1.108 +1 -1 fptools/ghc/compiler/ghci/ByteCodeGen.lhs
1.194 +4 -6 fptools/ghc/compiler/ghci/InteractiveUI.hs
1.53 +2 -6 fptools/ghc/compiler/ghci/Linker.lhs
1.4 +5 -1 fptools/ghc/compiler/ghci/ObjLink.lhs
1.82 +1 -1 fptools/ghc/compiler/hsSyn/HsTypes.lhs
1.14 +1 -2 fptools/ghc/compiler/iface/BinIface.hs
1.28 +3 -4 fptools/ghc/compiler/iface/LoadIface.lhs
1.28 +5 -5 fptools/ghc/compiler/iface/MkIface.lhs
1.35 +1 -1 fptools/ghc/compiler/iface/TcIface.lhs
1.34 +1 -1 fptools/ghc/compiler/ilxGen/IlxGen.lhs
1.58 +4 -4 fptools/ghc/compiler/main/CodeOutput.lhs
1.43 +18 -18 fptools/ghc/compiler/main/DriverMkDepend.hs
1.35 +3 -17 fptools/ghc/compiler/main/DriverPhases.hs
1.188 +186 -197 fptools/ghc/compiler/main/DriverPipeline.hs
1.53 +2 -1 fptools/ghc/compiler/main/ErrUtils.lhs
1.79 +57 -56 fptools/ghc/compiler/main/Finder.lhs
1.14 +1 -1 fptools/ghc/compiler/main/GetImports.hs
1.206 +9 -10 fptools/ghc/compiler/main/HscMain.lhs
1.126 +3 -19 fptools/ghc/compiler/main/HscTypes.lhs
1.149 +286 -122 fptools/ghc/compiler/main/Main.hs
1.29 +6 -7 fptools/ghc/compiler/main/Packages.lhs
1.21 +1 -1 fptools/ghc/compiler/main/ParsePkgConf.y
1.126 +33 -152 fptools/ghc/compiler/main/SysTools.lhs
1.21 +1 -1 fptools/ghc/compiler/main/TidyPgm.lhs
1.67 +4 -4 fptools/ghc/compiler/nativeGen/AsmCodeGen.lhs
1.6 +1 -1 fptools/ghc/compiler/nativeGen/MachCodeGen.hs
1.10 +1 -1 fptools/ghc/compiler/nativeGen/PositionIndependentCode.hs
1.8 +1 -1 fptools/ghc/compiler/nativeGen/PprMach.hs
1.6 +52 -0 fptools/ghc/compiler/nativeGen/RegisterAlloc.hs
1.4 +1 -1 fptools/ghc/compiler/ndpFlatten/FlattenInfo.hs
1.12 +2 -2 fptools/ghc/compiler/ndpFlatten/Flattening.hs
1.27 +1 -1 fptools/ghc/compiler/parser/Lexer.x
1.28 +1 -1 fptools/ghc/compiler/parser/Parser.y.pp
1.44 +1 -1 fptools/ghc/compiler/prelude/PrelRules.lhs
1.39 +2 -1 fptools/ghc/compiler/profiling/SCCfinal.lhs
1.96 +1 -1 fptools/ghc/compiler/rename/RnBinds.lhs
1.190 +1 -1 fptools/ghc/compiler/rename/RnEnv.lhs
1.134 +1 -1 fptools/ghc/compiler/rename/RnExpr.lhs
1.187 +2 -2 fptools/ghc/compiler/rename/RnNames.lhs
1.173 +1 -1 fptools/ghc/compiler/rename/RnSource.lhs
1.32 +1 -1 fptools/ghc/compiler/rename/RnTypes.lhs
1.18 +1 -1 fptools/ghc/compiler/simplCore/CSE.lhs
1.37 +1 -1 fptools/ghc/compiler/simplCore/FloatIn.lhs
1.36 +1 -1 fptools/ghc/compiler/simplCore/FloatOut.lhs
1.31 +2 -1 fptools/ghc/compiler/simplCore/LiberateCase.lhs
1.65 +1 -1 fptools/ghc/compiler/simplCore/SetLevels.lhs
1.133 +3 -6 fptools/ghc/compiler/simplCore/SimplCore.lhs
1.43 +1 -1 fptools/ghc/compiler/simplCore/SimplEnv.lhs
1.60 +2 -3 fptools/ghc/compiler/simplCore/SimplMonad.lhs
1.98 +4 -2 fptools/ghc/compiler/simplCore/SimplUtils.lhs
1.158 +1 -1 fptools/ghc/compiler/simplCore/Simplify.lhs
1.45 +3 -5 fptools/ghc/compiler/simplStg/SimplStg.lhs
1.24 +1 -1 fptools/ghc/compiler/specialise/SpecConstr.lhs
1.93 +1 -1 fptools/ghc/compiler/specialise/Specialise.lhs
1.115 +2 -1 fptools/ghc/compiler/stgSyn/CoreToStg.lhs
1.47 +2 -1 fptools/ghc/compiler/stgSyn/StgSyn.lhs
1.53 +2 -1 fptools/ghc/compiler/stranal/DmdAnal.lhs
1.54 +1 -1 fptools/ghc/compiler/stranal/SaAbsInt.lhs
1.43 +1 -1 fptools/ghc/compiler/stranal/StrictAnal.lhs
1.63 +1 -1 fptools/ghc/compiler/stranal/WorkWrap.lhs
1.149 +1 -1 fptools/ghc/compiler/typecheck/Inst.lhs
1.140 +1 -1 fptools/ghc/compiler/typecheck/TcBinds.lhs
1.148 +1 -1 fptools/ghc/compiler/typecheck/TcClassDcl.lhs
1.141 +1 -1 fptools/ghc/compiler/typecheck/TcDeriv.lhs
1.180 +2 -1 fptools/ghc/compiler/typecheck/TcExpr.lhs
1.73 +4 -4 fptools/ghc/compiler/typecheck/TcForeign.lhs
1.69 +1 -1 fptools/ghc/compiler/typecheck/TcMType.lhs
1.110 +1 -1 fptools/ghc/compiler/typecheck/TcPat.lhs
1.99 +6 -8 fptools/ghc/compiler/typecheck/TcRnDriver.lhs
1.46 +5 -4 fptools/ghc/compiler/typecheck/TcRnMonad.lhs
1.153 +2 -1 fptools/ghc/compiler/typecheck/TcSimplify.lhs
1.122 +2 -1 fptools/ghc/compiler/typecheck/TcTyClsDecls.lhs
1.122 +1 -1 fptools/ghc/compiler/typecheck/TcType.lhs
1.41 +1 -1 fptools/ghc/compiler/types/InstEnv.lhs
1.135 +1 -1 fptools/ghc/compiler/types/Type.lhs
1.65 +1 -1 fptools/ghc/compiler/utils/Outputable.lhs
1.73 +160 -5 fptools/ghc/compiler/utils/Util.lhs
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc