]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
builtins: Fix comment typo mpft_t -> mpfr_t
authorJakub Jelinek <jakub@redhat.com>
Fri, 5 May 2023 07:52:28 +0000 (09:52 +0200)
committerJakub Jelinek <jakub@redhat.com>
Fri, 5 May 2023 07:52:28 +0000 (09:52 +0200)
I've noticed 4 typos in comments, fixed thusly.

2023-05-05  Jakub Jelinek  <jakub@redhat.com>

* builtins.cc (do_mpfr_ckconv, do_mpc_ckconv): Fix comment typo,
mpft_t -> mpfr_t.
* fold-const-call.cc (do_mpfr_ckconv, do_mpc_ckconv): Likewise.

gcc/builtins.cc
gcc/fold-const-call.cc

index bd07873a80e1723b5f7a61f60e47d6d90ac0942a..c21c4688c5893b4b60cae989eb4a00699fdffef1 100644 (file)
@@ -10911,7 +10911,7 @@ do_mpfr_ckconv (mpfr_srcptr m, tree type, int inexact)
       real_from_mpfr (&rr, m, type, MPFR_RNDN);
       /* Proceed iff GCC's REAL_VALUE_TYPE can hold the MPFR value,
         check for overflow/underflow.  If the REAL_VALUE_TYPE is zero
-        but the mpft_t is not, then we underflowed in the
+        but the mpfr_t is not, then we underflowed in the
         conversion.  */
       if (real_isfinite (&rr)
          && (rr.cl == rvc_zero) == (mpfr_zero_p (m) != 0))
@@ -10952,7 +10952,7 @@ do_mpc_ckconv (mpc_srcptr m, tree type, int inexact, int force_convert)
       real_from_mpfr (&im, mpc_imagref (m), TREE_TYPE (type), MPFR_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
+        but the mpfr_t is not, then we underflowed in the
         conversion.  */
       if (force_convert
          || (real_isfinite (&re) && real_isfinite (&im)
index fa0b287cc8adfb16d62012d31aaaf4bf153c3e78..340cb667f6a9ed8516697a1a148bcf3f0ce0d1c1 100644 (file)
@@ -101,7 +101,7 @@ do_mpfr_ckconv (real_value *result, mpfr_srcptr m, bool inexact,
   real_from_mpfr (&tmp, m, format, MPFR_RNDN);
 
   /* Proceed iff GCC's REAL_VALUE_TYPE can hold the MPFR values.
-     If the REAL_VALUE_TYPE is zero but the mpft_t is not, then we
+     If the REAL_VALUE_TYPE is zero but the mpfr_t is not, then we
      underflowed in the conversion.  */
   if (!real_isfinite (&tmp)
       || ((tmp.cl == rvc_zero) != (mpfr_zero_p (m) != 0)))
@@ -295,7 +295,7 @@ do_mpc_ckconv (real_value *result_real, real_value *result_imag,
   real_from_mpfr (&tmp_imag, mpc_imagref (m), format, MPFR_RNDN);
 
   /* Proceed iff GCC's REAL_VALUE_TYPE can hold the MPFR values.
-     If the REAL_VALUE_TYPE is zero but the mpft_t is not, then we
+     If the REAL_VALUE_TYPE is zero but the mpfr_t is not, then we
      underflowed in the conversion.  */
   if (!real_isfinite (&tmp_real)
       || !real_isfinite (&tmp_imag)