On Tue, Mar 5, 2019 at 11:41 AM Ian Lance Taylor <i...@golang.org> wrote:
>
> This patch to the Go frontend changes from using MPFR_RNDN to using
> GMP_RNDN.  This should fix the build when using MPFR 2.4.2, fixing PR
> 89598.  Bootstrapped and ran Go tests on x86_64-pc-linux-gnu.
> Committed to mainline.

I missed one.  This patch also bootstrapped, tested, and committed to mainline.

Ian
Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE     (revision 269406)
+++ gcc/go/gofrontend/MERGE     (working copy)
@@ -1,4 +1,4 @@
-3f8ddaa1d773309b6a4b8e4640f8b9675d9764c6
+9b1374ded3d5e352a655d96bfe1bfb6aa1491a98
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
Index: gcc/go/gofrontend/expressions.cc
===================================================================
--- gcc/go/gofrontend/expressions.cc    (revision 269399)
+++ gcc/go/gofrontend/expressions.cc    (working copy)
@@ -17292,7 +17292,7 @@ Numeric_constant::hash(unsigned int seed
       mpfr_clear(m);
       break;
     case NC_FLOAT:
-      f = mpfr_get_d_2exp(&e, this->u_.float_val, MPFR_RNDN) * 4294967295.0;
+      f = mpfr_get_d_2exp(&e, this->u_.float_val, GMP_RNDN) * 4294967295.0;
       val = static_cast<unsigned long>(e + static_cast<long>(f));
       break;
     default:

Reply via email to