re PR go/89598 (go frontend fails to build against mpfr 2.4.2)
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 5 Mar 2019 19:41:42 +0000 (19:41 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 5 Mar 2019 19:41:42 +0000 (19:41 +0000)
PR go/89598
    compiler: use GMP_RNDN rather than MPFR_RNDN

    This fixes the build with mpfr 2.4.2.

    Fixes https://gcc.gnu.org/PR89598

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/165418

From-SVN: r269399

gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc

index 49ebe3260c242aca4796bc4485d30755f359cdf5..de7a3e10074125e83f99fdb61b59cff9d9e2310f 100644 (file)
@@ -1,4 +1,4 @@
-decbbfb563ecf4609a3148dc789ae77ab1c62768
+689d5bda159300dc12f559de2d47b8c1c762fcb9
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index b1f503abffba1ef9ecaf032f721a93e86976d9c9..953996336a8d02a561770f4c139fd4db52b378b4 100644 (file)
@@ -17287,8 +17287,8 @@ Numeric_constant::hash(unsigned int seed) const
       break;
     case NC_COMPLEX:
       mpfr_init(m);
-      mpc_abs(m, this->u_.complex_val, MPFR_RNDN);
-      val = mpfr_get_ui(m, MPFR_RNDN);
+      mpc_abs(m, this->u_.complex_val, GMP_RNDN);
+      val = mpfr_get_ui(m, GMP_RNDN);
       mpfr_clear(m);
       break;
     case NC_FLOAT: