vapier 15/06/04 03:46:52 Added: gmp-6.0.0a-arm-thumb.diff Log: Add fix from upstream for building on arm in thumb mode. (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Revision Changes Path 1.1 dev-libs/gmp/files/6.0.0a/gmp-6.0.0a-arm-thumb.diff file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/files/6.0.0a/gmp-6.0.0a-arm-thumb.diff?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/files/6.0.0a/gmp-6.0.0a-arm-thumb.diff?rev=1.1&content-type=text/plain Index: gmp-6.0.0a-arm-thumb.diff =================================================================== https://gmplib.org/list-archives/gmp-discuss/2014-March/005537.html # HG changeset patch # User Torbjorn Granlund <[email protected]> # 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" \
