1. 07 Dec, 2015 8 commits
  2. 06 Dec, 2015 3 commits
  3. 05 Dec, 2015 10 commits
  4. 04 Dec, 2015 19 commits
    • Sergei Trofimovich's avatar
      libdw: enable support only on i386 and amd64 · e2c518e6
      Sergei Trofimovich authored
      Currently libdw requires per-arch implementation of
      set_initial_registers() function.
      Otherwise build fails with linkage error
      (seen on sparc):
            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
    • Ö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
    • 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.
    • Ben Gamari's avatar
      Add linter to check for binaries accidentally added to repository · 020375d1
      Ben Gamari authored and Ben Gamari's avatar Ben Gamari committed
      This should catch mistakes like
      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
    • 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.
    • Ben Gamari's avatar
      testsuite: Rename pmcheck/T7669 to pmcheck/T7669a · caa68516
      Ben Gamari authored
      This was a duplicate.
    • Ben Gamari's avatar
      T5642: Fix skip usage · 16aae608
      Ben Gamari authored
    • Simon Peyton Jones's avatar
      Comments only · 43a5970a
      Simon Peyton Jones authored
    • 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
    • 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
    • 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
    • Simon Peyton Jones's avatar
      Make -dppr-debug show contents of (TypeError ...) · 822141b9
      Simon Peyton Jones authored
      Just for debugging
    • Simon Peyton Jones's avatar
      Wibbles only · 1cb3c8c2
      Simon Peyton Jones authored
    • 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]
    • 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.
    • 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.
        $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#
        $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 ->
                  (Just @ Int (I# (-# sc_s18mTo 1#))) (Just @ Int sc_s18mTn);
              True -> 0#
      Test Plan:
      I've added a new testcase
      Reviewers: simonmar, simonpj, austin, goldfire, bgamari
      Reviewed By: bgamari
      Subscribers: thomie
      Differential Revision: https://phabricator.haskell.org/D1508
      GHC Trac Issues: #4012
    • 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.
    • Ben Gamari's avatar
      T5642 is broken · dc33e4c6
      Ben Gamari authored
      This appears to be due to the new exhaustiveness checker. See #11163.
    • Ben Gamari's avatar
      Bump allocations for T783 · e9220daf
      Ben Gamari authored
      The new pattern match checker increased allocations by over 100%.
      Tracking in #11162.