public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc/devel/power-ieee128] libgfortran: -mabi=ieeelongdouble I/O fix
Date: Tue,  4 Jan 2022 14:55:55 +0000 (GMT)	[thread overview]
Message-ID: <20220104145555.C7FE33858405@sourceware.org> (raw)

https://gcc.gnu.org/g:7e23d6ef2955416c1076f384151a5d6a4fc4c57e

commit 7e23d6ef2955416c1076f384151a5d6a4fc4c57e
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Jan 4 15:54:22 2022 +0100

    libgfortran: -mabi=ieeelongdouble I/O fix
    
    The following patch fixes:
    FAIL: gfortran.dg/fmt_en.f90   -O0  output pattern test
    FAIL: gfortran.dg/fmt_en.f90   -O1  output pattern test
    FAIL: gfortran.dg/fmt_en.f90   -O2  output pattern test
    FAIL: gfortran.dg/fmt_en.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  output pattern test
    FAIL: gfortran.dg/fmt_en.f90   -O3 -g  output pattern test
    FAIL: gfortran.dg/fmt_en.f90   -Os  output pattern test
    FAIL: gfortran.dg/fmt_en_rd.f90   -O0  output pattern test
    FAIL: gfortran.dg/fmt_en_rd.f90   -O1  output pattern test
    FAIL: gfortran.dg/fmt_en_rd.f90   -O2  output pattern test
    FAIL: gfortran.dg/fmt_en_rd.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  output pattern test
    FAIL: gfortran.dg/fmt_en_rd.f90   -O3 -g  output pattern test
    FAIL: gfortran.dg/fmt_en_rd.f90   -Os  output pattern test
    FAIL: gfortran.dg/fmt_en_rn.f90   -O0  output pattern test
    FAIL: gfortran.dg/fmt_en_rn.f90   -O1  output pattern test
    FAIL: gfortran.dg/fmt_en_rn.f90   -O2  output pattern test
    FAIL: gfortran.dg/fmt_en_rn.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  output pattern test
    FAIL: gfortran.dg/fmt_en_rn.f90   -O3 -g  output pattern test
    FAIL: gfortran.dg/fmt_en_rn.f90   -Os  output pattern test
    FAIL: gfortran.dg/fmt_en_ru.f90   -O0  output pattern test
    FAIL: gfortran.dg/fmt_en_ru.f90   -O1  output pattern test
    FAIL: gfortran.dg/fmt_en_ru.f90   -O2  output pattern test
    FAIL: gfortran.dg/fmt_en_ru.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  output pattern test
    FAIL: gfortran.dg/fmt_en_ru.f90   -O3 -g  output pattern test
    FAIL: gfortran.dg/fmt_en_ru.f90   -Os  output pattern test
    FAIL: gfortran.dg/fmt_en_rz.f90   -O0  output pattern test
    FAIL: gfortran.dg/fmt_en_rz.f90   -O1  output pattern test
    FAIL: gfortran.dg/fmt_en_rz.f90   -O2  output pattern test
    FAIL: gfortran.dg/fmt_en_rz.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  output pattern test
    FAIL: gfortran.dg/fmt_en_rz.f90   -O3 -g  output pattern test
    FAIL: gfortran.dg/fmt_en_rz.f90   -Os  output pattern test
    FAIL: gfortran.dg/fmt_g0_7.f08   -O0  execution test
    FAIL: gfortran.dg/fmt_g0_7.f08   -O1  execution test
    FAIL: gfortran.dg/fmt_g0_7.f08   -O2  execution test
    FAIL: gfortran.dg/fmt_g0_7.f08   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
    FAIL: gfortran.dg/fmt_g0_7.f08   -O3 -g  execution test
    FAIL: gfortran.dg/fmt_g0_7.f08   -Os  execution test
    FAIL: gfortran.dg/fmt_pf.f90   -O0  output pattern test
    FAIL: gfortran.dg/fmt_pf.f90   -O1  output pattern test
    FAIL: gfortran.dg/fmt_pf.f90   -O2  output pattern test
    FAIL: gfortran.dg/fmt_pf.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  output pattern test
    FAIL: gfortran.dg/fmt_pf.f90   -O3 -g  output pattern test
    FAIL: gfortran.dg/fmt_pf.f90   -Os  output pattern test
    FAIL: gfortran.dg/large_real_kind_1.f90   -O0  execution test
    FAIL: gfortran.dg/large_real_kind_1.f90   -O1  execution test
    FAIL: gfortran.dg/large_real_kind_1.f90   -O2  execution test
    FAIL: gfortran.dg/large_real_kind_1.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
    FAIL: gfortran.dg/large_real_kind_1.f90   -O3 -g  execution test
    FAIL: gfortran.dg/large_real_kind_1.f90   -Os  execution test
    
    2022-01-04  Jakub Jelinek  <jakub@redhat.com>
    
            * io/write_float.def (CALCULATE_EXP): If HAVE_GFC_REAL_17, also use
            CALCULATE_EXP(17).
            (determine_en_precision): Use 17 instead of 16 as first EN_PREC
            argument for kind 17.
            (get_float_string): Use 17 instead of 16 as first FORMAT_FLOAT
            argument for kind 17.

Diff:
---
 libgfortran/io/write_float.def | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/libgfortran/io/write_float.def b/libgfortran/io/write_float.def
index 5aa5fce775b..9e5a38dbc3f 100644
--- a/libgfortran/io/write_float.def
+++ b/libgfortran/io/write_float.def
@@ -799,6 +799,10 @@ CALCULATE_EXP(10)
 #ifdef HAVE_GFC_REAL_16
 CALCULATE_EXP(16)
 #endif
+
+#ifdef HAVE_GFC_REAL_17
+CALCULATE_EXP(17)
+#endif
 #undef CALCULATE_EXP
 
 
@@ -942,7 +946,7 @@ determine_en_precision (st_parameter_dt *dtp, const fnode *f,
 #endif
 #ifdef HAVE_GFC_REAL_17
     case 17:
-      EN_PREC(16,Q)
+      EN_PREC(17,Q)
 #endif
       break;
     default:
@@ -1150,7 +1154,7 @@ get_float_string (st_parameter_dt *dtp, const fnode *f, const char *source,
 #endif
 #ifdef HAVE_GFC_REAL_17
     case 17:
-      FORMAT_FLOAT(16,Q)
+      FORMAT_FLOAT(17,Q)
       break;
 #endif
     default:


                 reply	other threads:[~2022-01-04 14:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220104145555.C7FE33858405@sourceware.org \
    --to=jakub@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).