tools/gmp: update to version 5.0.1
[openwrt.git] / tools / gmp / patches / 000-OE-amd64.patch
diff --git a/tools/gmp/patches/000-OE-amd64.patch b/tools/gmp/patches/000-OE-amd64.patch
new file mode 100644 (file)
index 0000000..957a722
--- /dev/null
@@ -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 */
This page took 0.027224 seconds and 4 git commands to generate.