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

            Bug ID: 122521
           Summary: Use more high level internal API to manipulate array
                    descriptors
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mikael at gcc dot gnu.org
  Target Milestone: ---

The current frontend API regarding array descriptors is mostly limited to a set
of getters to pick the value of individual array descriptor fields, and setters
to update them.  This requires every area of the compiler touching array
descriptors to have knowledge of their contents.

We should remove (most of) the setters from the public API, and replace them
with more high level functions providing complete array descriptor updates (say
copy descriptor, or shift array bounds) without leaking the detail of the
fields that have their values changed under the hood.

This would help in the context of a change of array descriptor format
(PR37577).

Reply via email to