1. 28 Nov, 2014 6 commits
    • Simon Marlow's avatar
      Add purgeObj() to remove the symbol table entries for an object · 9e6e4796
      Simon Marlow authored
      This allows us to replace an object without actually unloading the old
      object, which is necessary when we know we have references to the old
      object so it can't be completely unloaded.  Using unloadObj() would
      cause the GC (CheckUnload) to repeatedly and fruitlessly try to unload
      the old object.
    • Simon Marlow's avatar
      Make the linker API thread-safe · b5e8b3b1
      Simon Marlow authored
      We used to be able to rely on the client to use the API in a
      single-threaded way, but now that the GC calls into the linker to
      unload objects this isn't a safe assumption.
    • Herbert Valerio Riedel's avatar
      Re-implement `testPrimeInteger` predicate (#9281) · 58dcd5c2
      Herbert Valerio Riedel authored
      This also adds `testPrimeWord#` and `testPrimeBigNat` predicates.
      `testPrimeInteger` has been available since `integer-gmp-0.5.1`
      (added via f4973548).
      The `nextPrimeInteger` function is still missing though.
    • Simon Peyton Jones's avatar
      Tidy up tracing somewhat · 342ebb04
      Simon Peyton Jones authored
      This is a knock-on from the -dump-to-file changes.
      (I found that -ddump-cs-trace stuff wasn't coming out!)
    • Simon Peyton Jones's avatar
      Don't discard a bang on a newtype pattern (Trac #9844) · 227a5668
      Simon Peyton Jones authored
      We were wrongly simply dropping the bang, in tidy_bang_pat.
    • Herbert Valerio Riedel's avatar
      Improve VERSION/GIT_COMMIT_ID handling for sdist · 7dd4c12c
      Herbert Valerio Riedel authored
      This makes `VERSION` updating a bit more robust (the file gets only
      updated if its content would actually change), as well as moving the
      dependency of `VERSION` and `GIT_COMMIT_ID` to the `sdist-ghc-prep`
      target, as that's where it's actually needed.
      This fixes the specialised target `make sdist-ghc` not properly
      creating/updating the `VERSION` and `GIT_COMMIT_ID` files before
      creating the ghc source-dist tarball, as well as avoiding stale
      `VERSION` files.
  2. 27 Nov, 2014 11 commits
  3. 26 Nov, 2014 4 commits
  4. 25 Nov, 2014 6 commits
  5. 24 Nov, 2014 10 commits
  6. 23 Nov, 2014 3 commits
    • Herbert Valerio Riedel's avatar
      Update in-tree GMP to version 5.0.4 · 41c35459
      Herbert Valerio Riedel authored
      This is mostly a proof of concept for updating the in-tree GMP via patch files
      (and therefore w/o introducing new blobs into the Git history).
      NOTE: The updated GMP 5.0.4 version is only used by the integer-gmp2 backend.
    • Herbert Valerio Riedel's avatar
      Fix minor typo in 6d1c8ec7 · fd253790
      Herbert Valerio Riedel authored
    • Herbert Valerio Riedel's avatar
      Persist build-time GMP ver to `HsIntegerGmp.h` · 6d1c8ec7
      Herbert Valerio Riedel authored
      This creates the additional macro definitions in `HsIntegerGmp.h` which
      are useful for 3rd party `integer-gmp`-addon libraries.
      Here's an example for the definitions created for the in-tree GMP:
        #define GHC_GMP_INTREE     1
        #define GHC_GMP_VERSION_MJ 5
        #define GHC_GMP_VERSION_MI 0
        #define GHC_GMP_VERSION_PL 4
        #define GHC_GMP_VERSION   (5 * 10000 + 0 * 100 + 4)
      And here's an example for a system-installed GMP:
        #define GHC_GMP_INTREE     0
        #define GHC_GMP_VERSION_MJ 6
        #define GHC_GMP_VERSION_MI 0
        #define GHC_GMP_VERSION_PL 0
        #define GHC_GMP_VERSION   (6 * 10000 + 0 * 100 + 0)
      Part of #9281
      Reviewed By: ekmett (via D522)