mbox

[pushed,0/3,gcc11] fortran: Backpoprt KIND arg of intrinsics fix [PR103789]

Message ID 20220116212143.1901964-1-mikael@gcc.gnu.org
Headers

Message

Mikael Morin Jan. 16, 2022, 9:21 p.m. UTC
  Hello,

I noticed a bug while backporting the fix for PR103789 on the 11 branch.
It makes the cherry-pick not exactly straightforward.
The bug is fixed in the first patch, the backport comes in the second, and
additional test coverage (pushed earlier today on master) is added in
the third.

Tested on x86_64-linux on the 11 branch, pushed.


Mikael Morin (3):
  Fortran: Fix KIND argument index for LEN_TRIM.
  Fortran: Ignore KIND argument of a few more intrinsics. [PR103789]
  testsuite: Enrich tests with variants failing on the branch.

 gcc/fortran/trans-array.c              | 45 ++++++++++++++++++++------
 gcc/testsuite/gfortran.dg/index_5.f90  |  2 ++
 gcc/testsuite/gfortran.dg/len_trim.f90 |  6 ++++
 gcc/testsuite/gfortran.dg/maskl_1.f90  | 11 +++++++
 gcc/testsuite/gfortran.dg/maskr_1.f90  | 11 +++++++
 gcc/testsuite/gfortran.dg/scan_3.f90   | 14 ++++++++
 gcc/testsuite/gfortran.dg/verify_3.f90 | 14 ++++++++
 7 files changed, 93 insertions(+), 10 deletions(-)
 create mode 100644 gcc/testsuite/gfortran.dg/maskl_1.f90
 create mode 100644 gcc/testsuite/gfortran.dg/maskr_1.f90
 create mode 100644 gcc/testsuite/gfortran.dg/scan_3.f90
 create mode 100644 gcc/testsuite/gfortran.dg/verify_3.f90