Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC

Commits:

3 changed files:

Changes:

  • compiler/GHC/Driver/Make.hs
    ... ... @@ -1851,24 +1851,25 @@ Also closely related are
    1851 1851
     -}
    
    1852 1852
     
    
    1853 1853
     executeLinkNode :: HomeUnitGraph -> (Int, Int) -> UnitId -> [NodeKey] -> RunMakeM ()
    
    1854
    -executeLinkNode hug kn uid deps = do
    
    1854
    +executeLinkNode hug kn@(k, _) uid deps = do
    
    1855 1855
       withCurrentUnit uid $ do
    
    1856
    -    MakeEnv{..} <- ask
    
    1856
    +    make_env@MakeEnv{..} <- ask
    
    1857 1857
         let dflags = hsc_dflags hsc_env
    
    1858
    -    let hsc_env' = setHUG hug hsc_env
    
    1859 1858
             msg' = (\messager -> \recomp -> messager hsc_env kn recomp (LinkNode deps uid)) <$> env_messager
    
    1860 1859
     
    
    1861
    -    linkresult <- liftIO $ withAbstractSem compile_sem $ do
    
    1862
    -                            link (ghcLink dflags)
    
    1863
    -                                (hsc_logger hsc_env')
    
    1864
    -                                (hsc_tmpfs hsc_env')
    
    1865
    -                                (hsc_FC hsc_env')
    
    1866
    -                                (hsc_hooks hsc_env')
    
    1867
    -                                dflags
    
    1868
    -                                (hsc_unit_env hsc_env')
    
    1869
    -                                True -- We already decided to link
    
    1870
    -                                msg'
    
    1871
    -                                (hsc_HPT hsc_env')
    
    1860
    +    linkresult <- lift $ MaybeT $ withAbstractSem compile_sem $ withLoggerHsc k make_env $ \lcl_hsc_env -> do
    
    1861
    +                             let hsc_env' = setHUG hug lcl_hsc_env
    
    1862
    +                             wrapAction diag_wrapper hsc_env' $ do
    
    1863
    +                               link (ghcLink dflags)
    
    1864
    +                                 (hsc_logger hsc_env')
    
    1865
    +                                 (hsc_tmpfs hsc_env')
    
    1866
    +                                 (hsc_FC hsc_env')
    
    1867
    +                                 (hsc_hooks hsc_env')
    
    1868
    +                                 dflags
    
    1869
    +                                 (hsc_unit_env hsc_env')
    
    1870
    +                                 True -- We already decided to link
    
    1871
    +                                 msg'
    
    1872
    +                                 (hsc_HPT hsc_env')
    
    1872 1873
         case linkresult of
    
    1873 1874
           Failed -> fail "Link Failed"
    
    1874 1875
           Succeeded -> return ()
    

  • testsuite/tests/ghc-e/should_fail/T9930fail.stderr
    1
    -ghc: Uncaught exception ghc-9.13-inplace:GHC.Utils.Panic.GhcException:
    
    2
    -
    
    3
    -default output name would overwrite the input file; must specify -o explicitly
    
    1
    +<no location info>: error:
    
    2
    +    default output name would overwrite the input file; must specify -o explicitly
    
    4 3
     Usage: For basic information, try the `--help' option.
    
    5 4
     
    6
    -While handling default output name would overwrite the input file; must specify -o explicitly
    
    7
    -  | Usage: For basic information, try the `--help' option.
    
    8
    -
    
    9
    -HasCallStack backtrace:
    
    10
    -  bracket, called at compiler/GHC/Driver/MakeAction.hs:2955:3 in ghc-9.13-inplace:GHC.Driver.MakeAction
    
    11
    -

  • testsuite/tests/ghc-e/should_fail/all.T
    ... ... @@ -15,10 +15,8 @@ test('ghc-e-fail2', req_interp, makefile_test, ['ghc-e-fail2'])
    15 15
     test('T9930fail',
    
    16 16
          [extra_files(['T9930']),
    
    17 17
           when(opsys('mingw32'), skip),
    
    18
    -      normalise_errmsg_fun(lambda s: normalise_version_("ghc")(s).replace('ghc-<VERSION>-<HASH>','ghc')),
    
    19
    -      # broken for JS until cross-compilers become stage2 compilers (#19174)
    
    20
    -      # or until we bootstrap with a 9.10 compiler
    
    21
    -      js_broken(19174)],
    
    18
    +      normalise_errmsg_fun(lambda s: normalise_version_("ghc")(s).replace('ghc-<VERSION>-<HASH>','ghc'))
    
    19
    +      ],
    
    22 20
          makefile_test, ['T9930fail'])
    
    23 21
     
    
    24 22
     test('T18441fail0', req_interp, makefile_test, ['T18441fail0'])