diff options
author | Harald Anlauf <anlauf@gmx.de> | 2022-10-28 21:58:08 +0200 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2022-11-09 20:51:56 +0100 |
commit | e805adaa283129604a1fb305d0a1cf1e8a90c76e (patch) | |
tree | 55607d4e9c73577f962629a15d020a504460963e /MAINTAINERS | |
parent | 8f5aa130fa61637baec476119e72849f7e3f8c67 (diff) | |
download | gcc-e805adaa283129604a1fb305d0a1cf1e8a90c76e.zip gcc-e805adaa283129604a1fb305d0a1cf1e8a90c76e.tar.gz gcc-e805adaa283129604a1fb305d0a1cf1e8a90c76e.tar.bz2 |
Fortran: ordering of hidden procedure arguments [PR107441]
The gfortran ABI specifies the order of given and hidden procedure arguments,
where the hidden presence status flags of optional+value scalar arguments
shall come before character length, coarray token and offset. Respect that.
gcc/fortran/ChangeLog:
PR fortran/107441
* trans-decl.cc (create_function_arglist): Adjust the ordering of
automatically generated hidden procedure arguments to match the
documented ABI for gfortran.
* trans-types.cc (gfc_get_function_type): Separate hidden parameters
so that the presence flag for optional+value arguments come before
string length, coarray token and offset, as required.
gcc/testsuite/ChangeLog:
PR fortran/107441
* gfortran.dg/coarray/pr107441-caf.f90: New test.
* gfortran.dg/optional_absent_6.f90: New test.
* gfortran.dg/optional_absent_7.f90: New test.
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions