[commit: ghc] wip/T9281: Implement new integer-gmp2 from scratch (re #9281) (91ef3b4)
git at git.haskell.org
git at git.haskell.org
Sat Aug 16 21:19:05 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T9281
Link : http://ghc.haskell.org/trac/ghc/changeset/91ef3b4c45eed6faf63bb630b383186eca4abc3f/ghc
>---------------------------------------------------------------
commit 91ef3b4c45eed6faf63bb630b383186eca4abc3f
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Fri Jul 18 15:02:43 2014 +0200
Implement new integer-gmp2 from scratch (re #9281)
Summary:
(preliminary commit message)
This is done as a separate integer-gmp2 backend library because it
turned out to become a complete rewrite from scratch. This has been
tested only on Linux/x86_64 so far. The code has been written while
taking into account Linux/i386 and "64-bit" Windows, but will probably
need some tweaking to get right.
Also, we don't do any autoconf stuff anymore, and rely on Cabal's
"extra-libraries: gmp" to do the right thing (which probably won't work
everywhere). We may need to re-introduce the use of autoconf at some point.
Test Plan: nofib & testsuite
Reviewers: #ghc, austin, simonmar, rwbarton
Subscribers: simonmar, relrod, carter
Differential Revision: https://phabricator.haskell.org/D82
>---------------------------------------------------------------
91ef3b4c45eed6faf63bb630b383186eca4abc3f
compiler/coreSyn/CorePrep.lhs | 4 +
compiler/ghc.mk | 8 +-
compiler/prelude/PrelNames.lhs | 9 +-
compiler/prelude/TysWiredIn.lhs | 32 +-
ghc.mk | 4 +-
libraries/base/GHC/Real.lhs | 6 +
libraries/base/base.cabal | 19 +-
libraries/{ghc-prim => integer-gmp2}/.gitignore | 0
libraries/integer-gmp2/LICENSE | 30 +
libraries/integer-gmp2/cbits/wrappers.c | 281 ++++
libraries/integer-gmp2/integer-gmp2.cabal | 49 +
.../src/GHC/Integer.hs} | 49 +-
.../integer-gmp2/src/GHC/Integer/GMP2/Internals.hs | 126 ++
.../integer-gmp2/src/GHC/Integer/Logarithms.hs | 73 +
.../src/GHC/Integer/Logarithms/Internals.hs | 118 ++
libraries/integer-gmp2/src/GHC/Integer/Type.hs | 1663 ++++++++++++++++++++
rules/foreachLibrary.mk | 2 +
testsuite/driver/testlib.py | 2 +-
testsuite/tests/safeHaskell/check/pkg01/all.T | 6 +-
19 files changed, 2452 insertions(+), 29 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 91ef3b4c45eed6faf63bb630b383186eca4abc3f
More information about the ghc-commits
mailing list