PR 92463 MPFR modernization: Revert r269139
authorJanne Blomqvist <jb@gcc.gnu.org>
Wed, 20 Nov 2019 20:08:29 +0000 (22:08 +0200)
committerJanne Blomqvist <jb@gcc.gnu.org>
Wed, 20 Nov 2019 20:08:29 +0000 (22:08 +0200)
commitacb156cc3170a848e1235d1f3402d42018219766
tree03981e07a9585a8e925cc4df8f22c537538035f3
parentc9d4cc5df27acfcea40e18cdcd6933b3b1349b9a
PR 92463 MPFR modernization: Revert r269139

Commit r269139 fixed an accidental dependency on MPFR 3.0. As we now
require at least MPFR 3.1.0+ we can revert it and instead use the
simpler MPFR 3.0+ code.

ChangeLog entry of the original commit was:

2019-02-23  David Malcolm  <dmalcolm@redhat.com>
            Jakub Jelinek  <jakub@redhat.com>

        PR middle-end/88074
        * simplify.c (norm2_do_sqrt, gfc_simplify_norm2): Use
        mpfr_number_p && !mpfr_zero_p instead of mpfr_regular_p.
        (norm2_add_squared): Likewise.  Use mp_exp_t rather than mpfr_exp_t.

ChangeLog for this commit:

2019-11-20  Janne Blomqvist  <jb@gcc.gnu.org>

PR fortran/92463
Revert r269139
* simplify.c (norm2_do_sqrt, gfc_simplify_norm2): Use
mpfr_regular_p instead of mpfr_number_p && !mpfr_zero_p.
(norm2_add_squared): Likewise.  Use mpfr_exp_t rather than
mp_exp_t.

From-SVN: r278525
gcc/fortran/ChangeLog
gcc/fortran/simplify.c