summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gmp/gmp-6.1.2/amd64.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-02-13 10:00:12 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-23 12:49:49 -0800
commit30bcc8c2662d70fe8e6ca0152538591ff3ecd1ea (patch)
treecad166a2e96337cdf315921622e23f6597bd6ef3 /meta/recipes-support/gmp/gmp-6.1.2/amd64.patch
parent930b6d4ddbfadbc4e24a840529f5aca6c1a5a09d (diff)
downloadpoky-30bcc8c2662d70fe8e6ca0152538591ff3ecd1ea.tar.gz
gmp: Update to 6.1.2
(From OE-Core rev: a341bc666c6d25741bbe879ccf0ade8da6ba4373) (From OE-Core rev: ba962c8cd4f39f72028662db4cb8505befe64206) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gmp/gmp-6.1.2/amd64.patch')
-rw-r--r--meta/recipes-support/gmp/gmp-6.1.2/amd64.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-support/gmp/gmp-6.1.2/amd64.patch b/meta/recipes-support/gmp/gmp-6.1.2/amd64.patch
new file mode 100644
index 0000000000..564d12d42b
--- /dev/null
+++ b/meta/recipes-support/gmp/gmp-6.1.2/amd64.patch
@@ -0,0 +1,18 @@
1Upstream-Status: Pending
2
3Index: gmp-5.0.3/longlong.h
4===================================================================
5--- gmp-5.0.3.orig/longlong.h
6+++ gmp-5.0.3/longlong.h
7@@ -994,8 +994,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO (
8 count is only an int. */
9 #define count_trailing_zeros(count, x) \
10 do { \
11+ UDItype __cbtmp; \
12 ASSERT ((x) != 0); \
13- __asm__ ("bsfq %1,%q0" : "=r" (count) : "rm" ((UDItype)(x))); \
14+ __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \
15+ (count) = __cbtmp; \
16 } while (0)
17 #endif /* x86_64 */
18