* realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
* gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
instead of MPFR_RNDN.
From-SVN: r244966
+2017-01-27 Jakub Jelinek <jakub@redhat.com>
+
+ * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
+ * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
+ instead of MPFR_RNDN.
+
2017-01-27 Richard Earnshaw <rearnsha@arm.com>
PR target/79239
round-to-nearest mode. */
mpfr_t x;
mpfr_init2 (x, rfmt->p);
- mpfr_from_real (x, &rv, MPFR_RNDN);
+ mpfr_from_real (x, &rv, GMP_RNDN);
/* Return a value one greater to account for the leading minus sign. */
return 1 + get_mpfr_format_length (x, "", prec, spec, 'D');
const real_format *, mp_rnd_t);
extern void mpfr_from_real (mpfr_ptr, const REAL_VALUE_TYPE *, mp_rnd_t);
-#endif /* ! GCC_REALGMP_H */
+#if (GCC_VERSION >= 3000)
+ /* For compatibility with mpfr 2.4 and earlier, we want to only use
+ GMP_RND*. */
+ #pragma GCC poison MPFR_RNDN MPFR_RNDZ MPFR_RNDU MPFR_RNDD
+#endif
+#endif /* ! GCC_REALGMP_H */