https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122521

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Mikael Morin <[email protected]>:

https://gcc.gnu.org/g:af44d4f254482f6cd46e0fa183717a1cc6eedaf7

commit r17-2542-gaf44d4f254482f6cd46e0fa183717a1cc6eedaf7
Author: Mikael Morin <[email protected]>
Date:   Mon Jul 20 11:07:59 2026 +0200

    fortran: array descriptor: Add accessors for the elem_len field [PR122521]

    Add accessor functions to get or set the value of the elem_len 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 (gfc_conv_descriptor_elem_len): Make static
            and rename ...
            (conv_descriptor_elem_len): ... to this.
            (gfc_conv_descriptor_elem_len_get,
            gfc_conv_descriptor_elem_len_set): New functions.
            * trans-descriptor.h (gfc_conv_descriptor_elem_len): Remove
            declaration.
            (gfc_conv_descriptor_elem_len_get,
            gfc_conv_descriptor_elem_len_set): New declarations.
            * trans-decl.cc (gfc_conv_cfi_to_gfc): Use
            gfc_conv_descriptor_elem_len_get to get the value of the elem_len
            field and gfc_conv_descriptor_elem_len_set to set it.
            * trans-array.cc (gfc_array_init_size,
            gfc_alloc_allocatable_for_assignment): Likewise.
            * trans-expr.cc (gfc_conv_scalar_to_descriptor,
            gfc_conv_gfc_desc_to_cfi_desc, gfc_trans_pointer_assignment):
            Likewise.
            * trans-intrinsic.cc (gfc_conv_is_contiguous_expr,
            gfc_conv_intrinsic_sizeof): Likewise.
            * trans-openmp.cc (gfc_omp_array_size, gfc_omp_deep_mapping_item):
            Likewise.

Reply via email to