Fortran: Ignore KIND argument of a few more intrinsics. [PR103789]
authorMikael Morin <mikael@gcc.gnu.org>
Fri, 7 Jan 2022 21:34:59 +0000 (22:34 +0100)
committerMikael Morin <mikael@gcc.gnu.org>
Sun, 9 Jan 2022 13:34:15 +0000 (14:34 +0100)
commitc1c17a43e172ebc28f2cd247f6e83c5fdbc6219f
tree62bb3619dad1c74d2ccd6591209052e1139b509a
parent57fe1f6ad36dec80c02a9fb976ddcf038679cbf0
Fortran: Ignore KIND argument of a few more intrinsics. [PR103789]

After PR97896 for which some code was added to ignore the KIND argument
of the INDEX intrinsics, and PR87711 for which that was extended to LEN_TRIM
as well, this propagates it further to MASKL, MASKR, SCAN and VERIFY.

PR fortran/103789

gcc/fortran/ChangeLog:

* trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
ignored.

gcc/testsuite/ChangeLog:

* gfortran.dg/maskl_1.f90: New test.
* gfortran.dg/maskr_1.f90: New test.
* gfortran.dg/scan_3.f90: New test.
* gfortran.dg/verify_3.f90: New test.
gcc/fortran/trans-array.c
gcc/testsuite/gfortran.dg/maskl_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/maskr_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/scan_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/verify_3.f90 [new file with mode: 0644]