[GHC] #10003: integer-gmp2 tries to be GMP 4.x compatible but uses functions from GMP 5.x

GHC ghc-devs at haskell.org
Tue Feb 24 09:13:27 UTC 2015


#10003: integer-gmp2 tries to be GMP 4.x compatible but uses functions from GMP 5.x
-------------------------------------+-------------------------------------
        Reporter:  kgardas           |                   Owner:  hvr
            Type:  bug               |                  Status:  patch
        Priority:  high              |               Milestone:  7.10.1
       Component:  libraries         |                 Version:  7.10.1-rc1
  (other)                            |                Keywords:
      Resolution:                    |            Architecture:  sparc
Operating System:  Solaris           |               Test Case:
 Type of failure:  Building GHC      |                Blocking:
  failed                             |  Differential Revisions:  Phab:D675
      Blocked By:                    |
 Related Tickets:                    |
-------------------------------------+-------------------------------------

Comment (by Herbert Valerio Riedel <hvr@…>):

 In [changeset:"5be8ed4da1963ed2d45a65fb61d761c977707cce/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="5be8ed4da1963ed2d45a65fb61d761c977707cce"
 Emulate GMP 5+ operations for GMP 4.x compat

 The following operations are only (officially) available starting with
 GMP 5.0:

 - `mpn_and_n`
 - `mpn_andn_n`
 - `mpn_ior_n`
 - `mpn_xor_n`

 In order to properly support GMP 4.x, we simply emulate those operation
 in terms of `mpz_*` operations available in GMP 4.x (unless GMP>=5.x
 available, obviously) while incurring some overhead. Ideally, GMP 4.x
 environments will reach their EOL in the foreseeable future...

 This fixes #10003

 Reviewed By: austin

 Differential Revision: https://phabricator.haskell.org/D675
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10003#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list