Commit cf8e20bf by Markus Trippelsdorf Committed by Markus Trippelsdorf

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
parent ad804024
2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
* gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
GMP_RNDx for compatiblity.
2017-01-24 Martin Liska <mliska@suse.cz> 2017-01-24 Martin Liska <mliska@suse.cz>
PR bootstrap/79132 PR bootstrap/79132
......
...@@ -1560,7 +1560,7 @@ format_floating (const directive &dir, tree arg) ...@@ -1560,7 +1560,7 @@ format_floating (const directive &dir, tree arg)
rounding in either direction can result in longer output. */ rounding in either direction can result in longer output. */
mpfr_t mpfrval; mpfr_t mpfrval;
mpfr_init2 (mpfrval, rfmt->p); 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 /* Use the MPFR rounding specifier to round down in the first
iteration and then up. In most but not all cases this will iteration and then up. In most but not all cases this will
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment