Commit 14aa6352 by David Edelsohn Committed by David Edelsohn

builtins.c (do_mpc_ckconv): Pass the component type to real_from_mpfr().

	* builtins.c (do_mpc_ckconv): Pass the component type to
	real_from_mpfr().

From-SVN: r155122
parent 2bfaa3d8
2009-12-09 David Edelsohn <edelsohn@gnu.org>
* builtins.c (do_mpc_ckconv): Pass the component type to
real_from_mpfr().
2009-12-09 Xinliang David Li <davidxl@google.com>
PR tree-optimization/42337
......@@ -12726,8 +12726,8 @@ do_mpc_ckconv (mpc_srcptr m, tree type, int inexact, int force_convert)
{
REAL_VALUE_TYPE re, im;
real_from_mpfr (&re, mpc_realref (m), type, GMP_RNDN);
real_from_mpfr (&im, mpc_imagref (m), type, GMP_RNDN);
real_from_mpfr (&re, mpc_realref (m), TREE_TYPE (type), GMP_RNDN);
real_from_mpfr (&im, mpc_imagref (m), TREE_TYPE (type), GMP_RNDN);
/* Proceed iff GCC's REAL_VALUE_TYPE can hold the MPFR values,
check for overflow/underflow. If the REAL_VALUE_TYPE is zero
but the mpft_t is not, then we underflowed in the
......
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