diff options
Diffstat (limited to 'patches')
-rw-r--r-- | patches/gmp/5.0.1/100-fix-tests-ABI-long-long.patch | 43 | ||||
-rw-r--r-- | patches/libelf/0.8.13/100-fix-64-bit-detection.patch | 24 |
2 files changed, 67 insertions, 0 deletions
diff --git a/patches/gmp/5.0.1/100-fix-tests-ABI-long-long.patch b/patches/gmp/5.0.1/100-fix-tests-ABI-long-long.patch new file mode 100644 index 0000000..1683f08 --- /dev/null +++ b/patches/gmp/5.0.1/100-fix-tests-ABI-long-long.patch @@ -0,0 +1,43 @@ + +# HG changeset patch +# User Torbjorn Granlund <tege@gmplib.org> +# Date 1267122532 -3600 +# Node ID 794410151f5f966bcb5c3489b6441614990efe7c +# Parent 948660e2e56d9cfaae035082b8fd473985505fb6 +Fix a test case to work for long long limbs. + +diff -r 948660e2e56d -r 794410151f5f ChangeLog +--- a/ChangeLog Thu Feb 25 16:08:21 2010 +0100 ++++ b/ChangeLog Thu Feb 25 19:28:52 2010 +0100 +@@ -1,5 +1,8 @@ + 2010-02-25 Torbjorn Granlund <tege@gmplib.org> + ++ * tests/mpz/t-perfpow.c (check_random): Use mp_limb_t type for limb ++ variables. ++ + * tests/mpn/t-div.c: Cast a switch index to placate HP's cc. + * tests/mpn/t-bdiv.c: Likewise. + +diff -r 948660e2e56d -r 794410151f5f tests/mpz/t-perfpow.c +--- a/tests/mpz/t-perfpow.c Thu Feb 25 16:08:21 2010 +0100 ++++ b/tests/mpz/t-perfpow.c Thu Feb 25 19:28:52 2010 +0100 +@@ -2,7 +2,7 @@ + + Contributed to the GNU project by Torbjorn Granlund and Martin Boij. + +-Copyright 2008, 2009 Free Software Foundation, Inc. ++Copyright 2008, 2009, 2010 Free Software Foundation, Inc. + + This file is part of the GNU MP Library. + +@@ -109,7 +109,8 @@ + { + mpz_t n, np, temp, primes[NRP]; + int i, j, k, unique, destroy, res; +- unsigned long int nrprimes, primebits, g, exp[NRP], e; ++ unsigned long int nrprimes, primebits; ++ mp_limb_t g, exp[NRP], e; + gmp_randstate_ptr rands; + + rands = RANDS; + diff --git a/patches/libelf/0.8.13/100-fix-64-bit-detection.patch b/patches/libelf/0.8.13/100-fix-64-bit-detection.patch new file mode 100644 index 0000000..7995443 --- /dev/null +++ b/patches/libelf/0.8.13/100-fix-64-bit-detection.patch @@ -0,0 +1,24 @@ +diff -dur libelf-0.8.10.orig/configure libelf-0.8.10/configure +--- libelf-0.8.10.orig/configure 2007-09-07 14:08:06.000000000 +0200 ++++ libelf-0.8.10/configure 2008-10-23 22:43:19.000000000 +0200 +@@ -1595,7 +1595,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + if test "$cross_compiling" = yes; then +- ac_cv_sizeof_long_long=0 ++ ac_cv_sizeof_long_long=8 + else + cat > conftest.$ac_ext <<EOF + #line 1602 "configure" +diff -dur libelf-0.8.10.orig/configure.in libelf-0.8.10/configure.in +--- libelf-0.8.10.orig/configure.in 2007-09-07 14:07:59.000000000 +0200 ++++ libelf-0.8.10/configure.in 2008-10-23 22:43:10.000000000 +0200 +@@ -90,7 +90,7 @@ + AC_CHECK_SIZEOF(short,2) + AC_CHECK_SIZEOF(int,4) + AC_CHECK_SIZEOF(long,4) +-AC_CHECK_SIZEOF(long long,0) ++AC_CHECK_SIZEOF(long long,8) + # Windows port + AC_CHECK_SIZEOF(__int64, 0) + |