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

--- Comment #11 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:0e4ae4ef73e5fe7ac3b6bfdf7913373ba0668878

commit r17-2541-g0e4ae4ef73e5fe7ac3b6bfdf7913373ba0668878
Author: Mikael Morin <[email protected]>
Date:   Mon Jul 20 11:07:41 2026 +0200

    fortran: array descriptor: Use the setter to modify the offset [PR122521]

    Use the setter function to generate code modifying the array descriptor
    offset and remove from the public API the function giving direct access to
    that field.

            PR fortran/122521

    gcc/fortran/ChangeLog:

            * trans-descriptor.cc (gfc_conv_descriptor_offset): Make static and
            rename ...
            (conv_descriptor_offset): ... to this.
            (gfc_conv_descriptor_offset_get,
            gfc_conv_descriptor_offset_set): Update callers.
            * trans-descriptor.h (gfc_conv_descriptor_offset): Remove
            declaration.
            * trans-array.cc (gfc_alloc_allocatable_for_assignment): Use the
            setter function to generate a modification of the array descriptor
            offset.

Reply via email to