eventually be controllable by a command line option. */
mpfr_set_default_prec (256);
+ /* If necessary, override GCC's choice of minimum and maximum
+ exponents. This should only affect GCC middle-end
+ compilation-time, not correctness. */
+ mpfr_exp_t exp = mpfr_get_emax ();
+ if (exp < (1 << 16) - 1)
+ mpfr_set_emax ((1 << 16) - 1);
+ exp = mpfr_get_emin ();
+ if (exp > - ((1 << 16) - 1))
+ mpfr_set_emin (- ((1 << 16) - 1));
+
/* Go uses exceptions. */
using_eh_for_cleanups ();