diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
commit | d99093fb4bb5652015c06274d64083daa2439e4f (patch) | |
tree | cf61513204d97974179580065e85df5c8009087c /dev-libs/gmp/files/gmp-6.2.1-no-zarch.patch | |
parent | 463397cf1e064185110fe57c568d73f99a06f5d1 (diff) |
gentoo resync : 03.03.2021
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 |