Skip to content

Commit

Permalink
* builtins.c (do_mpc_ckconv): Pass the component type to
Browse files Browse the repository at this point in the history
	real_from_mpfr().


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155122 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
dje committed Dec 10, 2009
1 parent 6fb536a commit b0e7c4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
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
Expand Down
4 changes: 2 additions & 2 deletions gcc/builtins.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0e7c4d

Please sign in to comment.