diff options
Diffstat (limited to 'poky/meta/recipes-support/gmp/gmp-6.1.2/amd64.patch')
-rw-r--r-- | poky/meta/recipes-support/gmp/gmp-6.1.2/amd64.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/poky/meta/recipes-support/gmp/gmp-6.1.2/amd64.patch b/poky/meta/recipes-support/gmp/gmp-6.1.2/amd64.patch new file mode 100644 index 000000000..3935589f8 --- /dev/null +++ b/poky/meta/recipes-support/gmp/gmp-6.1.2/amd64.patch @@ -0,0 +1,18 @@ +Upstream-Status: Pending + +Index: gmp-6.1.2/longlong.h +=================================================================== +--- gmp-6.1.2.orig/longlong.h ++++ gmp-6.1.2/longlong.h +@@ -1036,8 +1036,10 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype + 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 /* __amd64__ */ + |