diff options
author | trippels <trippels@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-01-24 09:32:16 +0000 |
---|---|---|
committer | trippels <trippels@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-01-24 09:32:16 +0000 |
commit | 4c7d2cb49a3a3ac844d9ef06bacfb567d4138d6b (patch) | |
tree | 46aece6fd86ebd0929516bf6d1c19277f7fe5081 /gcc/gimple-ssa-sprintf.c | |
parent | 5db2fd79776691dffaaa980c9615548f0e0663a7 (diff) | |
download | gcc-4c7d2cb49a3a3ac844d9ef06bacfb567d4138d6b.tar.gz |
Fix build failure with MPFR 2.4.x
* gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
GMP_RNDx for compatiblity.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244858 138bc75d-0d04-0410-961f-82ee72b054a4
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 66edc3ec1cc..283b6251d74 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 |