From: Mikael Morin <[email protected]>
Hello,
this is part 6 of the array descriptor series. This part is about
scalar descriptor initialization, that is initialization of zero-rank array
descriptors used to associate an assumed-rank dummy with a scalar actual
argument.
Patches 3, 5 and 6 are the main changes, they move existing scalar descriptor
initialization code to dedicated functions in trans-descriptor.cc.
Patches 2 and 4 are preliminary movement of existing static functions. The code
movement of patches 3, 5 and 6 coming next in the series require the functions
to be made public. They are moved by the way to the file that is the most
suitable to host them.
Patch 1 is a preliminary independent refactoring touching the function
moved by patch 2.
Fortran-tested on aarch64-unknown-linux-gnu. OK for mainline?
--
Previous parts in the array descriptor series:
part 5 (pushed): fortran: Move null- or default-initialization
part 4 (pushed): fortran: Move dtype fields constants
part 3 (dropped): fortran: Ensure read-only getters
part 2 (pushed): fortran: Add getters and setters
part 1 (pushed): fortran: Move existing functions to a separate file
Mikael Morin (6):
fortran: array descriptor: Move scalar type extraction to callers
[PR122521]
fortran: array descriptor: Move scalar descriptor type creation
[PR122521]
fortran: array descriptor: Move scalar descriptor init 1/3 [PR122521]
fortran: array descriptor: Move coarray bounds copy [PR122521]
fortran: array descriptor: Move scalar descriptor init 2/3 [PR122521]
fortran: array descriptor: Move scalar descriptor init 3/3 [PR122521]
gcc/fortran/trans-descriptor.cc | 114 ++++++++++++++++++++++++++++++++
gcc/fortran/trans-descriptor.h | 8 +++
gcc/fortran/trans-expr.cc | 111 +++----------------------------
gcc/fortran/trans-types.cc | 36 ++++++++++
gcc/fortran/trans-types.h | 1 +
5 files changed, 167 insertions(+), 103 deletions(-)
--
2.53.0