X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=tools%2Fgmp%2Fpatches%2F000-OE-amd64.patch;fp=tools%2Fgmp%2Fpatches%2F000-OE-amd64.patch;h=957a7224eac16e86016a0634d4ca1d5d3faf39b1;hb=2a3dde2cacd7ec6989141bdc66eaaae09ee1c9e9;hp=0000000000000000000000000000000000000000;hpb=8f143af3ffe3ee7c6a191ab943e0e1c55cee749b;p=lede-git%2F.git diff --git a/tools/gmp/patches/000-OE-amd64.patch b/tools/gmp/patches/000-OE-amd64.patch new file mode 100644 index 0000000000..957a7224ea --- /dev/null +++ b/tools/gmp/patches/000-OE-amd64.patch @@ -0,0 +1,16 @@ +Index: gmp-5.0.1/longlong.h +=================================================================== +--- gmp-5.0.1.orig/longlong.h ++++ gmp-5.0.1/longlong.h +@@ -849,8 +849,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ( + count is only an int. */ + #define count_trailing_zeros(count, x) \ + do { \ ++ UDItype __cbtmp; \ + ASSERT ((x) != 0); \ +- __asm__ ("bsfq %1,%q0" : "=r" (count) : "rm" ((UDItype)(x))); \ ++ __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \ ++ (count) = __cbtmp; \ + } while (0) + #endif /* x86_64 */ +