]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix Fortran array-access regressions
authorKwok Cheung Yeung <kcy@codesourcery.com>
Wed, 25 May 2022 11:10:03 +0000 (12:10 +0100)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 28 Jun 2022 20:55:30 +0000 (13:55 -0700)
commit9fb0076b11eb2774b620bcf2171d55c7d1fb899f
tree382e778d34e3ca7e94fcb58e44926e95465effaf
parent024485073448e1b02d8bf0c652e3b8e196b9fefb
Fix Fortran array-access regressions

The arguments to gfc_build_array_ref were recently updated in the commit
'fortran: Use pointer arithmetic to index arrays [PR102043]', but a call
from gfc_conv_array_ref used the old function signature.  This went
unnoticed due to the use of default arguments.

This patch should be merged into 'Fortran: delinearize multi-dimensional
array accesses'.

2022-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>

gcc/fortran/
* trans-array.cc (gfc_conv_array_ref): Update arguments to
gfc_build_array_ref.
gcc/fortran/ChangeLog.omp
gcc/fortran/trans-array.cc