summaryrefslogtreecommitdiff
path: root/gcc/real.c
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2007-05-27 10:09:51 +0200
committerTobias Burnus <burnus@gcc.gnu.org>2007-05-27 10:09:51 +0200
commitfe67caf6297762ca40524e1efe2783c62585d811 (patch)
tree9b53d39a447a3446de9ba64556a6cdc1f5aceda7 /gcc/real.c
parent8ff43db0f9b217bcdfd0743187a8b6920e68a190 (diff)
downloadgcc-fe67caf6297762ca40524e1efe2783c62585d811.tar.gz
re PR middle-end/32083 (bug in transfer integer->real->integer)
2007-05-26 Tobias Burnus <burnus@net-b.de> PR fortran/32083 * real.c (mpfr_from_real): Fix sign of -Inf. 2007-05-26 Tobias Burnus <burnus@net-b.de> PR fortran/32083 * gfortran.dg/transfer_simplify_3.f90: New. From-SVN: r125108
Diffstat (limited to 'gcc/real.c')
-rw-r--r--gcc/real.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/real.c b/gcc/real.c
index f5d842e24b5..867fdc70b03 100644
--- a/gcc/real.c
+++ b/gcc/real.c
@@ -4746,7 +4746,7 @@ mpfr_from_real (mpfr_ptr m, const REAL_VALUE_TYPE *r, mp_rnd_t rndmode)
/* Take care of Infinity and NaN. */
if (r->cl == rvc_inf)
{
- mpfr_set_inf (m, r->sign);
+ mpfr_set_inf (m, r->sign == 1 ? -1 : 1);
return;
}