1. 01 Jun, 2015 7 commits
    • Alan Zimmerman's avatar
      ApiAnnotations : strings in warnings do not return SourceText · e6191d1c
      Alan Zimmerman authored
      Summary:
      The strings used in a WARNING pragma are captured via
      
          strings :: { Located ([AddAnn],[Located FastString]) }
              : STRING { sL1 $1 ([],[L (gl $1) (getSTRING $1)]) }
          ..
      
      The STRING token has a method getSTRINGs that returns the original
      source text for a string.
      
      A warning of the form
      
          {-# WARNING Logic
                    , mkSolver
                    , mkSimpleSolver
                    , mkSolverForLogic
                    , solverSetParams
                    , solverPush
                    , solverPop
                    , solverReset
                    , solverGetNumScopes
                    , solverAssertCnstr
                    , solverAssertAndTrack
                    , solverCheck
                    , solverCheckAndGetModel
                    , solverGetReasonUnknown
                    "New Z3 API support is still incomplete and fragile: \
                    \you may experience segmentation faults!"
            #-}
      
      returns the concatenated warning string rather than the original source.
      
      This patch now deals with all remaining instances of getSTRING to bring
      in a SourceText for each.
      
      This updates the haddock submodule as well, for the AST change.
      
      Test Plan: ./validate
      
      Reviewers: hvr, austin, goldfire
      
      Reviewed By: austin
      
      Subscribers: bgamari, thomie, mpickering
      
      Differential Revision: https://phabricator.haskell.org/D907
      
      GHC Trac Issues: #10313
      e6191d1c
    • Herbert Valerio Riedel's avatar
      Update binary submodule to 0.7.5.0 release · 7dd0ea74
      Herbert Valerio Riedel authored
      Quoting the changelog, this pulls in the following fixes:
      
      binary-0.7.5.0
      --------------
      
      - Fix performance bug that was noticable when you get a big strict ByteString
        and the input to the decoder consists of many small chunks.
          - https://github.com/kolmodin/binary/issues/73
          - https://github.com/kolmodin/binary/pull/76
      - Fix memory leak when decoding Double and Float.
          - Commit 497a181c083fa9faf7fa3aa64d1d8deb9ac76ecb
      - We now require QuickCheck >= 2.8. Remove our version of arbitrarySizedNatural.
      
      binary-0.7.4.0
      --------------
      
      - Some invalid UTF-8 strings caused an exception when decoded. Those errors will
        now now fail in the Get monad instead. See issue 70.
        Patch contributed by @ttuegel.
      7dd0ea74
    • Alan Zimmerman's avatar
      ApiAnnotations : rationalise tests · e00910b0
      Alan Zimmerman authored
      Summary:
      At the moment the API Annotations tests have a driver that has been
      copy/pasted multiple times.
      
      Compile it once, and run it for each test case.
      
      Test Plan: ./validate
      
      Reviewers: hvr, austin
      
      Reviewed By: austin
      
      Subscribers: bgamari, thomie
      
      Differential Revision: https://phabricator.haskell.org/D913
      
      GHC Trac Issues: #10452
      e00910b0
    • Erik de Castro Lopo's avatar
      rts: Fix aarch64 implementation of xchg · f6ca6959
      Erik de Castro Lopo authored
      
      
      In the previous implementation, the `stlxr` instruction clobbered
      the value that was supposed to be returned by the the `xchg`
      function.
      Signed-off-by: Erik de Castro Lopo's avatarErik de Castro Lopo <erikd@mega-nerd.com>
      
      Test Plan: build on aarch64
      
      Reviewers: austin, bgamari, rwbarton
      
      Subscribers: bgamari, thomie
      
      Differential Revision: https://phabricator.haskell.org/D932
      f6ca6959
    • Austin Seipp's avatar
      compiler/specialise: shut match_co up a bit · f5b43ce1
      Austin Seipp authored
      
      
      This stray pprTrace is quite annoying and makes our build logs a bit
      bigger (hundreds of lines of occurrences), so we should probably just
      get rid of it. Kept under DEBUG for future brave hackers.
      Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
      
      Reviewed By: thomie, nomeata
      
      Differential Revision: https://phabricator.haskell.org/D934
      f5b43ce1
    • rwbarton's avatar
      In ghci linker, link against all previous temp sos (#10322) · a52f1444
      rwbarton authored
      The OS X dlopen() appears to only resolve undefined symbols in
      the direct dependencies of the shared library it is loading.
      
      Reviewed By: trommler, austin
      
      Differential Revision: https://phabricator.haskell.org/D852
      
      GHC Trac Issues: #10322
      a52f1444
    • archblob's avatar
      Catch canonicalizePath exceptions, fix #10101 · 47564389
      archblob authored
      Summary:
      Introduce by #95 'canonicalizePath' throws and exception when given
      an invalid file in a call to 'sameFile'.
      
      There are two cases when this can happen when using ghci:
        1) If there is an error at the interactive prompt, "<interactive>"
           file is searched for and not found.
        2) If there is an error in any loaded file and editing an inexistent/new
           file with 'e: foo'.
      
      Both cases are now tested.
      
      Test Plan: validate
      
      Reviewers: austin, #ghc
      
      Reviewed By: austin, #ghc
      
      Subscribers: bgamari, thomie
      
      Differential Revision: https://phabricator.haskell.org/D930
      
      GHC Trac Issues: #10101
      47564389
  2. 31 May, 2015 3 commits
  3. 30 May, 2015 16 commits
  4. 29 May, 2015 2 commits
  5. 28 May, 2015 4 commits
    • Austin Seipp's avatar
      base: fix #10298 & #7695 · e28462de
      Austin Seipp authored
      
      
      Summary:
      This applies a patch from Reid Barton and Sylvain Henry, which fix a
      disasterous infinite loop when iconv fails to load locale files, as
      specified in #10298.
      
      The fix is a bit of a hack but should be fine - for the actual reasoning
      behind it, see `Note [Disaster and iconv]` for more info.
      
      In addition to this fix, we also patch up the IO Encoding utilities to
      recognize several variations of the 'ASCII' encoding (including its
      aliases) directly so that GHC can do conversions without iconv. This
      allows a static binary to sit in an initramfs.
      Authored-by: rwbarton's avatarReid Barton <rwbarton@gmail.com>
      Authored-by: default avatarSylvain Henry <hsyl20@gmail.com>
      Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
      
      Test Plan: Eyeballed it.
      
      Reviewers: rwbarton, hvr
      
      Subscribers: bgamari, thomie
      
      Differential Revision: https://phabricator.haskell.org/D898
      
      GHC Trac Issues: #10298, #7695
      e28462de
    • Edward Z. Yang's avatar
      Remove unnecessary loadInterface for TH quoted name. · 640fe142
      Edward Z. Yang authored
      Summary:
      The load was introduced a32d3e4d
      
      
      to fix a bug where deprecations assumed that the name in question
      had already had their interface loaded.  The new deprecation
      code no longer makes this assumption and just loads the interface,
      so this eager load is not necessary.
      
      Verified that TH_reifyType2 continues to work.
      Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
      
      Test Plan: validate
      
      Reviewers: simonpj, austin
      
      Subscribers: bgamari, thomie
      
      Differential Revision: https://phabricator.haskell.org/D891
      
      GHC Trac Issues: #10419
      640fe142
    • thomie's avatar
      Testdriver: do not interfer with MinGW path magic (#10449) · ce166a3a
      thomie authored
      This should fix the testsuite driver on Windows using the MinGW tools
      with a native build of Python.
      
      MinGW automagically converts MinGW-style paths (e.g.
      '/c/programs/ghc/bin/ghc') into ordinary Windows paths (e.g.
      'C:/programs/ghc/bin/ghc') when a native Windows program is invoked. But
      it doesn't do so when those paths are wrapped with a pair of escaped
      double quotes.
      
      The fix is to not call `eval` on the paths in Python, which let's us use
      one less pair of quotes, and makes MinGW happy.
      
      Reviewers: Rufflewind, austin
      
      Differential Revision: https://phabricator.haskell.org/D911
      ce166a3a
    • Rufflewind's avatar
      Testdriver: don't use os.popen in config/ghc · ef904660
      Rufflewind authored
      Rewrite config/ghc to use getStdout (which use subprocess.Popen) instead
      of os.popen, which is deprecated; this also avoids the use of shell
      
      Also:
      * Move getStdout to driver/testutil.py so both config/ghc and
        driver/runtests.py can use it
      
      * Remove support for Python below 2.4, which doesn't have subprocess
      
      Reviewed By: thomie
      
      Differential Revision: https://phabricator.haskell.org/D908
      ef904660
  6. 27 May, 2015 2 commits
    • Alan Zimmerman's avatar
      ApiAnnotations tweaks · c5911479
      Alan Zimmerman authored
      Summary:
      A collection of minor updates for the API Annotations.
      
      1. The annotations for the implicity parameter is disconnected in the
         following
      
          type MPI = ?mpi_secret :: MPISecret
      
      2. In the following, the annotation for one of the commas is disconeected.
      
          mkPoli = mkBila . map ((,,(),,()) <$> P.base <*> P.pos <*> P.form)
      
      3. In the following, the annotation for the parens becomes disconnected
      
          data MaybeDefault v where
              SetTo :: forall v . ( Eq v, Show v ) => !v -> MaybeDefault v
              SetTo4 :: forall v a. (( Eq v, Show v ) => v -> MaybeDefault v
                                                      -> a -> MaybeDefault [a])
      
      Test Plan: ./validate
      
      Reviewers: hvr, austin
      
      Reviewed By: austin
      
      Subscribers: bgamari, thomie, mpickering
      
      Differential Revision: https://phabricator.haskell.org/D901
      
      GHC Trac Issues: #10399
      c5911479
    • thomie's avatar
      Build system: don't install haddock .t files (#10410) · 388448bc
      thomie authored
      When generating a haddock .t file for a library, don't save it in the
      `dist-install/doc` directory for that library, as then it gets copied to
      the installation directory during `make install` by `ghc-cabal copy`.
      Instead, save it a few directories up; putting it next to
      `haddock-prologue.txt` seemed appropriate.
      
      Test Plan: run `make` in `tests/perf/haddock`.
      
      Differential Revision: https://phabricator.haskell.org/D903
      388448bc
  7. 26 May, 2015 2 commits
  8. 25 May, 2015 1 commit
  9. 23 May, 2015 3 commits