public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6500] fortran, libgfortran: Assorted -mabi=ieeelongdouble I/O fixes
@ 2022-01-11 22:51 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2022-01-11 22:51 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:06a74228ce589dc24b37341d22a6933cdccdb6bd

commit r12-6500-g06a74228ce589dc24b37341d22a6933cdccdb6bd
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Jan 4 15:55:27 2022 +0100

    fortran, libgfortran: Assorted -mabi=ieeelongdouble I/O fixes
    
    Another patch, this fixes:
    FAIL: gfortran.dg/intrinsic_spread_2.f90   -O0  execution test
    FAIL: gfortran.dg/intrinsic_spread_2.f90   -O1  execution test
    FAIL: gfortran.dg/intrinsic_spread_2.f90   -O2  execution test
    FAIL: gfortran.dg/intrinsic_spread_2.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
    FAIL: gfortran.dg/intrinsic_spread_2.f90   -O3 -g  execution test
    FAIL: gfortran.dg/intrinsic_spread_2.f90   -Os  execution test
    FAIL: gfortran.dg/intrinsic_unpack_2.f90   -O0  execution test
    FAIL: gfortran.dg/intrinsic_unpack_2.f90   -O1  execution test
    FAIL: gfortran.dg/intrinsic_unpack_2.f90   -O2  execution test
    FAIL: gfortran.dg/intrinsic_unpack_2.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
    FAIL: gfortran.dg/intrinsic_unpack_2.f90   -O3 -g  execution test
    FAIL: gfortran.dg/intrinsic_unpack_2.f90   -Os  execution test
    FAIL: gfortran.dg/large_real_kind_form_io_1.f90   -O0  execution test
    FAIL: gfortran.dg/large_real_kind_form_io_1.f90   -O1  execution test
    FAIL: gfortran.dg/large_real_kind_form_io_1.f90   -O2  execution test
    FAIL: gfortran.dg/large_real_kind_form_io_1.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
    FAIL: gfortran.dg/large_real_kind_form_io_1.f90   -O3 -g  execution test
    FAIL: gfortran.dg/large_real_kind_form_io_1.f90   -Os  execution test
    FAIL: gfortran.dg/quad_2.f90   -O0  execution test
    FAIL: gfortran.dg/quad_2.f90   -O1  execution test
    FAIL: gfortran.dg/quad_2.f90   -O2  execution test
    FAIL: gfortran.dg/quad_2.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
    FAIL: gfortran.dg/quad_2.f90   -O3 -g  execution test
    FAIL: gfortran.dg/quad_2.f90   -Os  execution test
    
    2022-01-04  Jakub Jelinek  <jakub@redhat.com>
    
    gcc/fortran/
            * trans-io.c (transfer_array_desc): Pass abi kind instead of kind
            to libgfortran.
    libgfortran/
            * io/read.c (convert_real): Add missing break; for the
            HAVE_GFC_REAL_17 case.

Diff:
---
 gcc/fortran/trans-io.c | 2 +-
 libgfortran/io/read.c  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/fortran/trans-io.c b/gcc/fortran/trans-io.c
index 2730b47501b..033b102244b 100644
--- a/gcc/fortran/trans-io.c
+++ b/gcc/fortran/trans-io.c
@@ -2528,7 +2528,7 @@ transfer_array_desc (gfc_se * se, gfc_typespec * ts, tree addr_expr)
   else
     charlen_arg = build_int_cst (gfc_charlen_type_node, 0);
 
-  kind_arg = build_int_cst (integer_type_node, ts->kind);
+  kind_arg = build_int_cst (integer_type_node, gfc_type_abi_kind (ts));
 
   tmp = gfc_build_addr_expr (NULL_TREE, dt_parm);
   if (last_dt == READ)
diff --git a/libgfortran/io/read.c b/libgfortran/io/read.c
index 49d7983a037..21e78511896 100644
--- a/libgfortran/io/read.c
+++ b/libgfortran/io/read.c
@@ -202,6 +202,7 @@ convert_real (st_parameter_dt *dtp, void *dest, const char *buffer, int length)
 # else
       *((GFC_REAL_17*) dest) = __qmath_(strtoflt128) (buffer, &endptr);
 # endif
+      break;
 #endif
 
     default:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-11 22:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 22:51 [gcc r12-6500] fortran, libgfortran: Assorted -mabi=ieeelongdouble I/O fixes Jakub Jelinek

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).