https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92775
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Dec 20 17:36:48 2019 New Revision: 279668 URL: https://gcc.gnu.org/viewcvs?rev=279668&root=gcc&view=rev Log: Backported from mainline 2019-12-06 Jakub Jelinek <ja...@redhat.com> PR fortran/92775 * trans.h (struct lang_type, struct lang_decl): Remove span member. (GFC_DECL_SPAN, GFC_TYPE_ARRAY_SPAN): Remove macros. * trans-array.h (gfc_get_descriptor_offsets_for_info): Add another argument. * trans-array.c (gfc_get_descriptor_offsets_for_info): Add SPAN_OFF argument and initialize *SPAN_OFF to the offset of span field. * trans-types.c (gfc_get_array_descr_info): Adjust gfc_get_descriptor_offsets_for_info caller. Compute elem_size as base->span instead of TYPE_SIZE_UNIT (etype) constant. Modified: branches/gcc-9-branch/gcc/fortran/ChangeLog branches/gcc-9-branch/gcc/fortran/trans-array.c branches/gcc-9-branch/gcc/fortran/trans-array.h branches/gcc-9-branch/gcc/fortran/trans-types.c branches/gcc-9-branch/gcc/fortran/trans.h