Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/d4a1964300295bfe700caa89f5d28c53eb74bdef >--------------------------------------------------------------- commit d4a1964300295bfe700caa89f5d28c53eb74bdef Author: Ian Lynagh <i...@well-typed.com> Date: Thu Oct 18 14:59:12 2012 +0100 Refactor the way dump flags are handled We were being inconsistent about how we tested whether dump flags were enabled; in particular, sometimes we also checked the verbosity, and sometimes we didn't. This lead to oddities such as "ghc -v4" printing an "Asm code" section which didn't contain any code, and "-v4" enabled some parts of "-ddump-deriv" but not others. Now all the tests use dopt, which also takes the verbosity into account as appropriate. compiler/cmm/CmmPipeline.hs | 8 +- compiler/coreSyn/CoreSubst.lhs | 2 +- compiler/coreSyn/CoreUnfold.lhs | 4 +- compiler/deSugar/Coverage.lhs | 2 +- compiler/deSugar/Match.lhs | 3 +- compiler/ghci/Debugger.hs | 4 +- compiler/main/DriverMkDepend.hs | 2 +- compiler/main/DynFlags.hs | 98 +++++++++++++++++++--------- compiler/main/ErrUtils.lhs | 18 +++-- compiler/main/HscMain.hs | 4 +- compiler/main/InteractiveEval.hs | 2 +- compiler/main/TidyPgm.lhs | 4 +- compiler/nativeGen/AsmCodeGen.lhs | 8 +- compiler/nativeGen/RegAlloc/Graph/Main.hs | 6 +- compiler/simplCore/CoreMonad.lhs | 14 ++-- compiler/simplCore/FloatOut.lhs | 2 +- compiler/simplCore/SimplCore.lhs | 6 +- compiler/simplCore/Simplify.lhs | 10 ++-- compiler/simplStg/SimplStg.lhs | 7 +- compiler/typecheck/TcRnDriver.lhs | 4 +- compiler/typecheck/TcRnMonad.lhs | 23 ++++-- compiler/typecheck/TcSMonad.lhs | 2 +- compiler/typecheck/TcUnify.lhs | 2 +- compiler/vectorise/Vectorise/Monad/Base.hs | 4 +- 24 files changed, 141 insertions(+), 98 deletions(-) Diff suppressed because of size. To see it, use: git show d4a1964300295bfe700caa89f5d28c53eb74bdef _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc