[Bug fortran/122521] Use more high level internal API to manipulate array descriptors
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 20 09:28:47 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122521
--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Mikael Morin <mikael@gcc.gnu.org>:
https://gcc.gnu.org/g:2c2066d4df27d6cd63bed1440607b62a2268e23b
commit r17-2545-g2c2066d4df27d6cd63bed1440607b62a2268e23b
Author: Mikael Morin <mikael@gcc.gnu.org>
Date: Mon Jul 20 11:08:40 2026 +0200
fortran: array descriptor: Add accessors for the type field [PR122521]
Add accessor functions to get or set the value of the type field of array
descriptors, and remove from the public API the function giving direct
acces
to the field.
PR fortran/122521
gcc/fortran/ChangeLog:
* trans-descriptor.cc (get_type_field): New function.
(gfc_get_descriptor_field): Use it.
(gfc_conv_descriptor_type): Make static and rename ...
(conv_descriptor_type): ... to this.
(gfc_conv_descriptor_type_get, gfc_conv_descriptor_type_set): New
functions.
* trans-descriptor.h (gfc_conv_descriptor_type): Remove
declaration.
(gfc_conv_descriptor_type_get, gfc_conv_descriptor_type_set): New
declarations.
* trans-expr.cc (gfc_conv_gfc_desc_to_cfi_desc): Use
gfc_conv_descriptor_type_get to get the value of the type field.
* trans-decl.cc (gfc_conv_cfi_to_gfc): Use
gfc_conv_descriptor_type_set to set the value of the type field.
More information about the Gcc-bugs
mailing list