diff options
Diffstat (limited to 'dev-libs/gmp/files/gmp-6.2.1-no-zarch.patch')
-rw-r--r-- | dev-libs/gmp/files/gmp-6.2.1-no-zarch.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-libs/gmp/files/gmp-6.2.1-no-zarch.patch b/dev-libs/gmp/files/gmp-6.2.1-no-zarch.patch new file mode 100644 index 000000000000..6ba7c8aa561b --- /dev/null +++ b/dev-libs/gmp/files/gmp-6.2.1-no-zarch.patch @@ -0,0 +1,20 @@ +configure.ac decides whether udiv_w_sdiv.c fallback is needed +based on $CHOST value (without $CFLAGS). longlong.h relies +on compiler macros (relies on $CFLAGS implicitly). + +That leads to use of undefined macros. The workaround makes +udiv_w_sdiv.c a no-on for -mzarch. + +https://bugs.gentoo.org/761310 +--- a/mpn/generic/udiv_w_sdiv.c ++++ b/mpn/generic/udiv_w_sdiv.c +@@ -1,3 +1,4 @@ ++#if !defined(__zarch__) + /* mpn_udiv_w_sdiv -- implement udiv_qrnnd on machines with only signed + division. + +@@ -139,3 +140,4 @@ mpn_udiv_w_sdiv (mp_limb_t *rp, mp_limb_t a1, mp_limb_t a0, mp_limb_t d) + *rp = r; + return q; + } ++#endif |