From cf8e20bfd8c8fd29869544452e31557a15d3e388 Mon Sep 17 00:00:00 2001 From: Markus Trippelsdorf Date: Tue, 24 Jan 2017 09:32:16 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/gimple-ssa-sprintf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bec27d3d992..96def33bd56 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-01-24 Markus Trippelsdorf + + * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to + GMP_RNDx for compatiblity. + 2017-01-24 Martin Liska PR bootstrap/79132 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 -- 2.30.2