diff options
author | Markus Trippelsdorf <markus@trippelsdorf.de> | 2017-01-24 09:32:16 +0000 |
---|---|---|
committer | Markus Trippelsdorf <trippels@gcc.gnu.org> | 2017-01-24 09:32:16 +0000 |
commit | cf8e20bfd8c8fd29869544452e31557a15d3e388 (patch) | |
tree | 46aece6fd86ebd0929516bf6d1c19277f7fe5081 /gcc/gimple-ssa-sprintf.c | |
parent | ad8040243acd2a909b61b5690f7dac9ae362c945 (diff) | |
download | gcc-cf8e20bfd8c8fd29869544452e31557a15d3e388.zip gcc-cf8e20bfd8c8fd29869544452e31557a15d3e388.tar.gz gcc-cf8e20bfd8c8fd29869544452e31557a15d3e388.tar.bz2 |
Fix build failure with MPFR 2.4.x
* gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
GMP_RNDx for compatiblity.
From-SVN: r244858
Diffstat (limited to 'gcc/gimple-ssa-sprintf.c')
-rw-r--r-- | gcc/gimple-ssa-sprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-ssa-sprintf.c b/gcc/gimple-ssa-sprintf.c index 66edc3e..283b625 100644 --- a/gcc/gimple-ssa-sprintf.c +++ b/gcc/gimple-ssa-sprintf.c @@ -1560,7 +1560,7 @@ format_floating (const directive &dir, tree arg) rounding in either direction can result in longer output. */ mpfr_t mpfrval; mpfr_init2 (mpfrval, rfmt->p); - mpfr_from_real (mpfrval, rvp, i ? MPFR_RNDU : MPFR_RNDD); + mpfr_from_real (mpfrval, rvp, i ? GMP_RNDU : GMP_RNDD); /* Use the MPFR rounding specifier to round down in the first iteration and then up. In most but not all cases this will |