diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2014-11-05 19:59:29 -0500 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-11-18 18:06:46 +0100 |
commit | ff1e5ba8c75254ccfb08f408c607e98859d88a74 (patch) | |
tree | 80f049ffa9af43af2c89feda5fb951daea5fc41f /depends/patches/gmp/arm_gmp_build_fix.patch | |
parent | cf61b5441bd6d7232a50f66f28c1b5c6bbdb1570 (diff) | |
download | bitcoin-ff1e5ba8c75254ccfb08f408c607e98859d88a74.tar.xz |
depends: add gmp package
Diffstat (limited to 'depends/patches/gmp/arm_gmp_build_fix.patch')
-rw-r--r-- | depends/patches/gmp/arm_gmp_build_fix.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/depends/patches/gmp/arm_gmp_build_fix.patch b/depends/patches/gmp/arm_gmp_build_fix.patch new file mode 100644 index 0000000000..666cf58cf6 --- /dev/null +++ b/depends/patches/gmp/arm_gmp_build_fix.patch @@ -0,0 +1,21 @@ + +# HG changeset patch +# User Torbjorn Granlund <tege@gmplib.org> +# Date 1396602422 -7200 +# Node ID 676e2d0f0e4dd301a7066079d2c9326c25c34a40 +# Parent 0194a75b56b21a9196626430af86c5bd9110c42d +Conditionalise ARM asm on !__thumb__. + +diff -r 0194a75b56b2 -r 676e2d0f0e4d mpn/generic/div_qr_1n_pi1.c +--- a/mpn/generic/div_qr_1n_pi1.c Thu Apr 03 23:58:51 2014 +0200 ++++ b/mpn/generic/div_qr_1n_pi1.c Fri Apr 04 11:07:02 2014 +0200 +@@ -130,7 +130,7 @@ + "%2" ((UDItype)(a0)), "r" ((UDItype)(b0)) __CLOBBER_CC) + #endif + +-#if defined (__arm__) && W_TYPE_SIZE == 32 ++#if defined (__arm__) && !defined (__thumb__) && W_TYPE_SIZE == 32 + #define add_mssaaaa(m, sh, sl, ah, al, bh, bl) \ + __asm__ ( "adds %2, %5, %6\n\t" \ + "adcs %1, %3, %4\n\t" \ + |