]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix sm computation in CFI_allocate [PR93524]
authorSandra Loosemore <sandra@codesourcery.com>
Tue, 22 Jun 2021 19:42:17 +0000 (12:42 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Tue, 22 Jun 2021 19:45:47 +0000 (12:45 -0700)
commitf61e5d4d8b6d4cfa96863187fa61b8c6b057a491
treec72c4ba437b68586b2435717827e48bc7b8a317c
parente02840c1a92abecd211ffaf05b28329bcb534583
Fortran: fix sm computation in CFI_allocate [PR93524]

This patch fixes a bug in setting the step multiplier field in the
C descriptor for array dimensions > 2.

2021-06-21  Sandra Loosemore  <sandra@codesourcery.com>
    Tobias Burnus  <tobias@codesourcery.com>

libgfortran/
PR fortran/93524
* runtime/ISO_Fortran_binding.c (CFI_allocate): Fix
sm computation.

gcc/testsuite/
PR fortran/93524
* gfortran.dg/pr93524.c: New.
* gfortran.dg/pr93524.f90: New.
gcc/testsuite/gfortran.dg/pr93524.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr93524.f90 [new file with mode: 0644]
libgfortran/runtime/ISO_Fortran_binding.c