diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-03-05 19:41:42 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-03-05 19:41:42 +0000 |
commit | 77fa4c4275502fb4a030db1799d82704395a03ab (patch) | |
tree | 5bb1563ea1c0cf787a85a7db231fcfb7df51881c | |
parent | 243874426dddf0cd56031eea8bbb7b3986f37baa (diff) | |
download | gcc-77fa4c4275502fb4a030db1799d82704395a03ab.zip gcc-77fa4c4275502fb4a030db1799d82704395a03ab.tar.gz gcc-77fa4c4275502fb4a030db1799d82704395a03ab.tar.bz2 |
re PR go/89598 (go frontend fails to build against mpfr 2.4.2)
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
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 | ||||
-rw-r--r-- | gcc/go/gofrontend/expressions.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 49ebe32..de7a3e1 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -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. diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index b1f503a..9539963 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -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: |