aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2009-12-10 02:42:40 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2009-12-09 21:42:40 -0500
commit14aa63526a63156b1ae10de42af2730cbd7234d7 (patch)
treeda9cbbf5f94c2cc38ac18711ba9c7cead407b484 /gcc
parent2bfaa3d848fbb79b07795cde9460871872dd7813 (diff)
downloadgcc-14aa63526a63156b1ae10de42af2730cbd7234d7.zip
gcc-14aa63526a63156b1ae10de42af2730cbd7234d7.tar.gz
gcc-14aa63526a63156b1ae10de42af2730cbd7234d7.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/builtins.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9fff002..e9815ac 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 532a481..75a7e10 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -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