diff options
author | Arnaud Lacombe <lacombar@gmail.com> | 2010-08-05 17:59:51 +0200 |
---|---|---|
committer | Arnaud Lacombe <lacombar@gmail.com> | 2010-08-05 17:59:51 +0200 |
commit | 7e96dc369eda940da56870c9f77254b1bc0540ac (patch) | |
tree | c0780e48efa2a4eafcdeff47142016df59655620 /patches | |
parent | 218438ee9235a7d6936374043b9f147511180654 (diff) | |
download | crosstool-ng-7e96dc369eda940da56870c9f77254b1bc0540ac.tar.gz crosstool-ng-7e96dc369eda940da56870c9f77254b1bc0540ac.tar.bz2 crosstool-ng-7e96dc369eda940da56870c9f77254b1bc0540ac.zip |
complibs/mpc: fix MPC 0.8.1 build with MPFR 3.0.0
This is the change introduced by revision 734 of MPC repository.
Author: Paul Zimmermann <Paul.Zimmermann@loria.fr>
Revision log: [acos.c] fixed problem with GMP_RNDA (should be MPFR_RNDA, and code was wrong)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Diffstat (limited to 'patches')
-rw-r--r-- | patches/mpc/0.8.1/100-fix-build-with-mpfr-3_0_9.diff | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/patches/mpc/0.8.1/100-fix-build-with-mpfr-3_0_9.diff b/patches/mpc/0.8.1/100-fix-build-with-mpfr-3_0_9.diff new file mode 100644 index 00000000..88e1517d --- /dev/null +++ b/patches/mpc/0.8.1/100-fix-build-with-mpfr-3_0_9.diff @@ -0,0 +1,14 @@ +--- trunk/src/acos.c 2009/12/08 16:49:43 733 ++++ trunk/src/acos.c 2009/12/09 20:51:38 734 +@@ -188,10 +188,7 @@ + else + rnd_im = rnd_im == GMP_RNDU ? GMP_RNDD + : rnd_im == GMP_RNDD ? GMP_RNDU +-#if MPFR_VERSION_MAJOR >= 3 +- : rnd_im == GMP_RNDA ? GMP_RNDZ +-#endif +- : rnd_im; ++ : rnd_im; /* both RNDZ and RNDA map to themselves for -asin(z) */ + rnd1 = RNDC(GMP_RNDN, rnd_im); + mpfr_init2 (pi_over_2, p); + for (;;) |