diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-27 08:09:51 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-27 08:09:51 +0000 |
commit | f53594a1b77953ce80d290289dff74748e5f585a (patch) | |
tree | 9b53d39a447a3446de9ba64556a6cdc1f5aceda7 | |
parent | 6bc904cc9975ea5214d8d35b077be5d3ea768653 (diff) | |
download | gcc-f53594a1b77953ce80d290289dff74748e5f585a.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125108 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/real.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 |
3 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8edffc79fc7..4df2a050d37 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-05-27 Tobias Burnus <burnus@net-b.de> + + PR middle-end/32083 + * real.c (mpfr_from_real): Fix sign of -Inf. + 2007-05-27 H.J. Lu <hongjiu.lu@intel.com> * tree-vect-transform.c (vectorizable_conversion): Initialize 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; } diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1aa92c158e0..29b1eac0db9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-05-27 Tobias Burnus <burnus@net-b.de> + + PR middle-end/32083 + * gfortran.dg/transfer_simplify_3.f90: New. + 2007-05-26 Uros Bizjak <ubizjak@gmail.com> PR target/32065 |