Fix strides for C descriptors with stride > 2.
authorHarris Snyder <hsnyder@structura.bio>
Wed, 27 Jan 2021 21:54:04 +0000 (22:54 +0100)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 27 Jan 2021 21:57:41 +0000 (22:57 +0100)
commit1cdca4261e88f4dc9c3293c6b3c2fff3071ca32b
treeb60a25cb6e6547d7d44f7d7444d60f5d7c8fd64c
parent081c96621da658760b4a67c07530805f770fa22c
Fix strides for C descriptors with stride > 2.

libgfortran/ChangeLog:

* runtime/ISO_Fortran_binding.c (CFI_establish): fixed
strides for rank >2 arrays.

gcc/testsuite/ChangeLog:

* gfortran.dg/ISO_Fortran_binding_18.c: New test.
* gfortran.dg/ISO_Fortran_binding_18.f90: New test.
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_18.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_18.f90 [new file with mode: 0644]
libgfortran/runtime/ISO_Fortran_binding.c