re PR fortran/92775 (Incorrect expression in DW_AT_byte_stride on an array)
authorJakub Jelinek <jakub@gcc.gnu.org>
Fri, 6 Dec 2019 13:28:59 +0000 (14:28 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 6 Dec 2019 13:28:59 +0000 (14:28 +0100)
commit2297a38e0c18eaec95bebf750855fb9a4026ffbf
treec2251d0b4ef7fd2c4a2eec00fabbc88764257094
parent6e4d01d61f2bec57a247de1c5ee538f122ec34a8
re PR fortran/92775 (Incorrect expression in DW_AT_byte_stride on an array)

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.

From-SVN: r279045
gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-array.h
gcc/fortran/trans-types.c
gcc/fortran/trans.h