Marge Bot pushed to branch wip/marge_bot_batch_merge_job at Glasgow Haskell Compiler / GHC

Commits:

4 changed files:

Changes:

  • testsuite/driver/runtests.py
    ... ... @@ -133,7 +133,7 @@ if args.unexpected_output_dir:
    133 133
         config.unexpected_output_dir = Path(args.unexpected_output_dir)
    
    134 134
     
    
    135 135
     if args.only:
    
    136
    -    config.only = args.only
    
    136
    +    config.only = set(args.only)
    
    137 137
         config.run_only_some_tests = True
    
    138 138
     
    
    139 139
     if args.skip:
    

  • testsuite/mk/test.mk
    ... ... @@ -109,9 +109,11 @@ endif
    109 109
     HAVE_GDB := $(shell if gdb --version > /dev/null 2> /dev/null; then echo YES; else echo NO; fi)
    
    110 110
     HAVE_READELF := $(shell if readelf --version > /dev/null 2> /dev/null; then echo YES; else echo NO; fi)
    
    111 111
     
    
    112
    -# we need a better way to find which backend is selected and if --check flag is
    
    113
    -# used
    
    114
    -BIGNUM_GMP := $(shell "$(GHC_PKG)" field ghc-bignum exposed-modules | grep GMP)
    
    112
    +# Detect whether the fast (GMP) bignum backend is in use. The GMP backend module
    
    113
    +# in ghc-internal is hidden, so we look instead for the gmp library it links
    
    114
    +# against: GMP_LIBS adds gmp to ghc-internal's extra-libraries only on a GMP
    
    115
    +# build.
    
    116
    +BIGNUM_GMP := $(shell "$(GHC_PKG)" field ghc-internal extra-libraries 2>/dev/null | grep gmp)
    
    115 117
     
    
    116 118
     ifeq "$(filter thr, $(GhcRTSWays))" "thr"
    
    117 119
     RUNTEST_OPTS += -e config.ghc_with_threaded_rts=True
    

  • utils/check-exact/Main.hs
    ... ... @@ -646,7 +646,7 @@ addLocaLDecl3 :: Changer
    646 646
     addLocaLDecl3 libdir top = do
    
    647 647
       Right newDecl <- withDynFlags libdir (\df -> parseDecl df "decl" "nn = 2")
    
    648 648
       let
    
    649
    -      doAddLocal = replaceDecls (anchorEof lp) [parent',d2']
    
    649
    +      doAddLocal = replaceDecls (addModuleCommentOrigDeltas lp) [parent',d2']
    
    650 650
             where
    
    651 651
              lp = top
    
    652 652
              (de1:d2:_) = hsDecls lp
    
    ... ... @@ -667,7 +667,7 @@ addLocaLDecl4 libdir lp = do
    667 667
       Right newDecl <- withDynFlags libdir (\df -> parseDecl df "decl" "nn = 2")
    
    668 668
       Right newSig  <- withDynFlags libdir (\df -> parseDecl df "sig"  "nn :: Int")
    
    669 669
       let
    
    670
    -      doAddLocal = replaceDecls (anchorEof lp) (parent':ds)
    
    670
    +      doAddLocal = replaceDecls (addModuleCommentOrigDeltas lp) (parent':ds)
    
    671 671
             where
    
    672 672
               (parent:ds) = hsDecls (makeDeltaAst lp)
    
    673 673
     
    
    ... ... @@ -781,7 +781,7 @@ rmDecl3 _libdir lp = do
    781 781
     rmDecl4 :: Changer
    
    782 782
     rmDecl4 _libdir lp = do
    
    783 783
       let
    
    784
    -      doRmDecl = replaceDecls (anchorEof lp) [de1',sd1]
    
    784
    +      doRmDecl = replaceDecls (addModuleCommentOrigDeltas lp) [de1',sd1]
    
    785 785
             where
    
    786 786
              [de1] = hsDecls lp
    
    787 787
              (de1',Just sd1) = modifyValD (getLocA de1) de1 $ \_m [sd1a,sd2] ->
    

  • utils/check-exact/Transform.hs
    ... ... @@ -65,7 +65,7 @@ module Transform
    65 65
             , balanceComments
    
    66 66
             , balanceCommentsList
    
    67 67
             , balanceCommentsListA
    
    68
    -        , anchorEof
    
    68
    +        , addModuleCommentOrigDeltas
    
    69 69
     
    
    70 70
             -- ** Managing lists, pure functions
    
    71 71
             , captureOrderBinds
    
    ... ... @@ -724,8 +724,8 @@ balanceSameLineComments (L la (Match anm mctxt pats (GRHSs x grhss lb)))
    724 724
     
    
    725 725
     -- ---------------------------------------------------------------------
    
    726 726
     
    
    727
    -anchorEof :: ParsedSource -> ParsedSource
    
    728
    -anchorEof (L l m@(HsModule (XModulePs an _lo _ _) _mn _exps _imps _decls)) = L l (m { hsmodExt = (hsmodExt m){ hsmodAnn = an' } })
    
    727
    +addModuleCommentOrigDeltas :: ParsedSource -> ParsedSource
    
    728
    +addModuleCommentOrigDeltas (L l m@(HsModule (XModulePs an _lo _ _) _mn _exps _imps _decls)) = L l (m { hsmodExt = (hsmodExt m){ hsmodAnn = an' } })
    
    729 729
       where
    
    730 730
         an' = addCommentOrigDeltasAnn an
    
    731 731