[commit: ghc] master: Ditch static flags (bbd3c39)

git at git.haskell.org git at git.haskell.org
Fri Feb 3 03:14:12 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/bbd3c399939311ec3e308721ab87ca6b9443f358/ghc

>---------------------------------------------------------------

commit bbd3c399939311ec3e308721ab87ca6b9443f358
Author: Sylvain Henry <sylvain at haskus.fr>
Date:   Thu Feb 2 14:37:24 2017 -0500

    Ditch static flags
    
    This patch converts the 4 lasting static flags (read from the command
    line and unsafely stored in immutable global variables) into dynamic
    flags. Most use cases have been converted into reading them from a DynFlags.
    
    In cases for which we don't have easy access to a DynFlags, we read from
    'unsafeGlobalDynFlags' that is set at the beginning of each 'runGhc'.
    It's not perfect (not thread-safe) but it is still better as we can
    set/unset these 4 flags before each run when using GHC API.
    
    Updates haddock submodule.
    
    Rebased and finished by: bgamari
    
    Test Plan: validate
    
    Reviewers: goldfire, erikd, hvr, austin, simonmar, bgamari
    
    Reviewed By: simonmar
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2839
    
    GHC Trac Issues: #8440


>---------------------------------------------------------------

bbd3c399939311ec3e308721ab87ca6b9443f358
 compiler/backpack/DriverBkp.hs                  |  11 +-
 compiler/basicTypes/BasicTypes.hs               |   6 +-
 compiler/basicTypes/Id.hs                       |   4 +-
 compiler/basicTypes/RdrName.hs                  |   6 +-
 compiler/basicTypes/VarEnv.hs                   |   8 +-
 compiler/cmm/CmmParse.y                         |   1 -
 compiler/coreSyn/CoreLint.hs                    |  20 +-
 compiler/deSugar/Coverage.hs                    |   4 +-
 compiler/ghc.cabal.in                           |   1 -
 compiler/ghc.mk                                 |   1 -
 compiler/ghci/Linker.hs                         |   8 +-
 compiler/ghci/RtClosureInspect.hs               |  25 ++-
 compiler/hsSyn/HsExpr.hs                        |  15 +-
 compiler/hsSyn/HsTypes.hs                       |   8 +-
 compiler/iface/BinIface.hs                      |   2 +-
 compiler/iface/IfaceSyn.hs                      |   3 +-
 compiler/iface/IfaceType.hs                     |  18 +-
 compiler/iface/LoadIface.hs                     |  12 +-
 compiler/llvmGen/LlvmCodeGen/Base.hs            |   4 +-
 compiler/main/CmdLineParser.hs                  |   3 +-
 compiler/main/CodeOutput.hs                     |   2 +-
 compiler/main/DriverPipeline.hs                 |   6 +-
 compiler/main/DynFlags.hs                       |  35 +++-
 compiler/main/DynFlags.hs-boot                  |   2 +
 compiler/main/ErrUtils.hs                       |  21 +-
 compiler/main/GHC.hs                            |   6 +-
 compiler/main/StaticFlags.hs                    | 248 ------------------------
 compiler/main/StaticFlags.hs-boot               |   4 -
 compiler/main/SysTools.hs                       |   6 +-
 compiler/main/TidyPgm.hs                        |   5 +-
 compiler/simplCore/CoreMonad.hs                 |  12 +-
 compiler/simplCore/SimplCore.hs                 |   2 +-
 compiler/simplStg/SimplStg.hs                   |   3 +-
 compiler/specialise/Rules.hs                    |  24 +--
 compiler/specialise/SpecConstr.hs               |  15 +-
 compiler/typecheck/TcBackpack.hs                |   3 +-
 compiler/typecheck/TcDeriv.hs                   |   7 +-
 compiler/typecheck/TcDerivUtils.hs              |   8 +-
 compiler/typecheck/TcErrors.hs                  |  19 +-
 compiler/typecheck/TcGenDeriv.hs                | 243 ++++++++++++-----------
 compiler/typecheck/TcRnDriver.hs                |  37 ++--
 compiler/typecheck/TcRnDriver.hs-boot           |   3 +-
 compiler/typecheck/TcRnMonad.hs                 |  33 ++--
 compiler/typecheck/TcSMonad.hs                  |   4 +-
 compiler/types/OptCoercion.hs                   |   4 +-
 compiler/utils/Outputable.hs                    |  71 ++++---
 ghc/Main.hs                                     |  22 +--
 rts/RtsSymbols.c                                |   2 -
 testsuite/tests/ghc-api/T10052/T10052.hs        |   5 +-
 testsuite/tests/plugins/LinkerTicklingPlugin.hs |  10 +-
 utils/haddock                                   |   2 +-
 51 files changed, 413 insertions(+), 611 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc bbd3c399939311ec3e308721ab87ca6b9443f358


More information about the ghc-commits mailing list