This project is mirrored from https://gitlab.haskell.org/ghc/ghc.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
  1. 07 Dec, 2015 9 commits
  2. 06 Dec, 2015 3 commits
  3. 05 Dec, 2015 10 commits
  4. 04 Dec, 2015 18 commits
    • Sergei Trofimovich's avatar
      libdw: enable support only on i386 and amd64 · e2c518e6
      Sergei Trofimovich authored
      
      
      Summary:
      Currently libdw requires per-arch implementation of
      set_initial_registers() function.
      
      Otherwise build fails with linkage error
      (seen on sparc):
      
        rts/dist/build/libHSrts_thr-ghc7.11.20151129.so:
            undefined reference to `set_initial_registers'
        collect2: error: ld returned 1 exit status
        `gcc' failed in phase `Linker'. (Exit code: 1)
        make[1]: *** [ghc/stage2/build/tmp/ghc-stage2] Error 1
      
      Converted link-time error to compile-time error,
      added arch whitelist.
      Signed-off-by: default avatarSergei Trofimovich <siarheit@google.com>
      
      Reviewers: austin, thomie, bgamari
      
      Reviewed By: bgamari
      
      Differential Revision: https://phabricator.haskell.org/D1567
      e2c518e6
    • Ömer Sinan Ağacan's avatar
      StgCmmMonad: Implement Outputable instance for Sequel for debugging · c865c425
      Ömer Sinan Ağacan authored
      Reviewers: austin, bgamari
      
      Reviewed By: bgamari
      
      Subscribers: thomie
      
      Differential Revision: https://phabricator.haskell.org/D1563
      c865c425
    • Ben Gamari's avatar
      lint: Add linter to catch uses of ASSERT macro that Clang dislikes · 901cab10
      Ben Gamari authored
      In particular Clang rejects uses of CPP macros where the argument list
      is separated by a space from the macro name. Warn when we see ASSERT
      used in this way.
      901cab10
    • Ben Gamari's avatar
      Add linter to check for binaries accidentally added to repository · 020375d1
      Ben Gamari authored
      This should catch mistakes like
      a703fbce.
      
      Adds an arcanist-external-json-linter submodule, which should eventually
      be mirrored on haskell.org resources.
      
      Test Plan: Validate
      
      Reviewers: thomie, hvr, austin
      
      Reviewed By: austin
      
      Differential Revision: https://phabricator.haskell.org/D1515
      020375d1
    • Ben Gamari's avatar
      Update peak_megabytes_allocated for T9675 · d4bf8632
      Ben Gamari authored
      Interestingly enough this decreased with the new pattern checker. I'm
      not entirely sure why at the moment as the test is merely a large
      record with a bunch of selectors. I wouldn't have thought this would tax
      the pattern checker particularly much but oh well.
      d4bf8632
    • Ben Gamari's avatar
      testsuite: Rename pmcheck/T7669 to pmcheck/T7669a · caa68516
      Ben Gamari authored
      This was a duplicate.
      caa68516
    • Ben Gamari's avatar
      T5642: Fix skip usage · 16aae608
      Ben Gamari authored
      16aae608
    • Simon Peyton Jones's avatar
      Comments only · 43a5970a
      Simon Peyton Jones authored
      43a5970a
    • Simon Peyton Jones's avatar
      Tidy user type errors in checkValidType · 67565a72
      Simon Peyton Jones authored
      Trac #11144 showed that we need to tidy the type in the error message
      generated in TcValidity.checkUserTypeError.
      
      This is still unsatisfactory.  checkValidType was originally supposed
      to be called only on types gotten directly from user-written HsTypes.
      So its error messages do no tidying.  But TcBinds calls it checkValidType
      on an /inferred/ type, which may need tidying.
      
      Still this at least fixes the bad error message in CustomTypeErrors02,
      which was the original ticket.
      
      Some other small refactorings:
      
      * Remove unused Kind result of getUserTypeErrorMsg
      * Rename isUserErrorTy  -->   userTypeError_maybe
      67565a72
    • Simon Peyton Jones's avatar
      Minor refactoring of user type errors · 31b482bf
      Simon Peyton Jones authored
      * Remove unused Kind result of getUserTypeErrorMsg
      * Rename isUserErrorTy  -->   userTypeError_maybe
      31b482bf
    • Simon Peyton Jones's avatar
      Fix egregious error in eta-reduction of data families · 1160dc51
      Simon Peyton Jones authored
      This terrible and long-standing bug was shown up by Trac #11148.
      We are trying to eta-reduce a data family instance, so that we
      can then derive Functor or Generic.  But we were assuming, for
      absolutely not reason whatsoever, that the type variables were
      lined up in a convenient order.  The fact that it ever worked
      was a fluke.
      
      This patch fixes it properly.  Main change is in eta_reduce
      in TcInstDcls.tcDataFamInstDecl
      1160dc51
    • Simon Peyton Jones's avatar
      Make -dppr-debug show contents of (TypeError ...) · 822141b9
      Simon Peyton Jones authored
      Just for debugging
      822141b9
    • Simon Peyton Jones's avatar
      Wibbles only · 1cb3c8c2
      Simon Peyton Jones authored
      1cb3c8c2
    • Simon Peyton Jones's avatar
      Add derived constraints for wildcard signatures · 28035c09
      Simon Peyton Jones authored
      This fixes Trac #11016
      
      See Note [Add deriveds for signature contexts] in TcSimplify]
      28035c09
    • Simon Peyton Jones's avatar
      Case-of-empty-alts is trivial (Trac #11155) · 1c9fd3f1
      Simon Peyton Jones authored
      As you'll see from Trac #11155, the code generator was confused
      by a binding let x = y in ....   Why did that happen? Because of
      a (case y of {}) expression on the RHS.
      
      The right thing is just to expand what a "trivial" expression is.
      
      See Note [Empty case is trivial] in CoreUtils.
      1c9fd3f1
    • Bartosz Nitka's avatar
      Make callToPats deterministic in SpecConstr · 5b2b7e33
      Bartosz Nitka authored
      This fixes a non-determinism bug where where depending on the
      order of uniques allocated, the specialized workers would have different
      order of arguments.
      
      Compare:
      
      ```
        $s$wgo_s1CN :: Int# -> Int -> Int#
        [LclId, Arity=2, Str=DmdType <L,U><L,U>]
        $s$wgo_s1CN =
          \ (sc_s1CI :: Int#) (sc_s1CJ :: Int) ->
            case tagToEnum# @ Bool (<=# sc_s1CI 0#) of _ [Occ=Dead] {
              False ->
                $wgo_s1BU (Just @ Int (I# (-# sc_s1CI 1#))) (Just @ Int sc_s1CJ);
              True -> 0#
            }
      ```
      
      vs
      
      ```
        $s$wgo_s18mTj :: Int -> Int# -> Int#
        [LclId, Arity=2, Str=DmdType <L,U><L,U>]
        $s$wgo_s18mTj =
          \ (sc_s18mTn :: Int) (sc_s18mTo :: Int#) ->
            case tagToEnum# @ Bool (<=# sc_s18mTo 0#) of _ [Occ=Dead] {
              False ->
                $wgo_s18mUc
                  (Just @ Int (I# (-# sc_s18mTo 1#))) (Just @ Int sc_s18mTn);
              True -> 0#
            }
      ```
      
      Test Plan:
      I've added a new testcase
      ./validate
      
      Reviewers: simonmar, simonpj, austin, goldfire, bgamari
      
      Reviewed By: bgamari
      
      Subscribers: thomie
      
      Differential Revision: https://phabricator.haskell.org/D1508
      
      GHC Trac Issues: #4012
      5b2b7e33
    • Ben Gamari's avatar
      T5642: Skip it entirely · 96e67c01
      Ben Gamari authored
      It uses so much memory that it would be unsafe to even allow it to run
      as it may jeopardize the stability of the build-bots.
      96e67c01
    • Ben Gamari's avatar
      T5642 is broken · dc33e4c6
      Ben Gamari authored
      This appears to be due to the new exhaustiveness checker. See #11163.
      dc33e4c6