https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78881

--- Comment #24 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Christophe Lyon from comment #23)
> (In reply to Jiong Wang from comment #22)
> > (In reply to Rainer Orth from comment #15)
> > > The new testcase FAILs on 64-bit Solaris/SPARC:
> > 
> > + AArch64
> > 
> 
> For me, the tests pass on aarch64 (using qemu), but as I reported in
> https://gcc.gnu.org/ml/gcc-patches/2017-03/msg01370.html
> the tests fails for arm*linux-gnueabihf and pass for arm*linux-gnueabi
> (using qemu too)

Can you try this patch. From what I read there can be issues with char pointer
sizes between these architectures.

diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c
index 1e56b5de..daa741b4 100644
--- a/libgfortran/io/transfer.c
+++ b/libgfortran/io/transfer.c
@@ -272,7 +272,7 @@ read_sf_internal (st_parameter_dt *dtp, int * length)
       return NULL;
     }

-  if (base && *base == 0)
+  if (base && *base == '\0')
     {
       generate_error (&dtp->common, LIBERROR_EOR, NULL);
       return NULL;

Reply via email to