+2006-11-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR middle-end/29862
+ * real.c (mpfr_from_real): Call mpfr_set_str before gcc_assert.
+
2006-11-15 Paul Brook <paul@codesourcery.com>
* config/arm/unwind-arm.c (_Unwind_GetDataRelBase,
{
/* We use a string as an intermediate type. */
char buf[128];
+ int ret;
real_to_hexadecimal (buf, r, sizeof (buf), 0, 1);
/* mpfr_set_str() parses hexadecimal floats from strings in the same
format that GCC will output them. Nothing extra is needed. */
- gcc_assert (mpfr_set_str (m, buf, 16, GMP_RNDN) == 0);
+ ret = mpfr_set_str (m, buf, 16, GMP_RNDN);
+ gcc_assert (ret == 0);
}
/* Convert from MPFR to REAL_VALUE_TYPE. */