[Bug fortran/92775] [8 Regression] Incorrect expression in DW_AT_byte_stride on an array
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 29 22:33:30 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92775
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:2e50319ad2437e7b3a7691aa1351d522437d5b95
commit r8-10150-g2e50319ad2437e7b3a7691aa1351d522437d5b95
Author: Jakub Jelinek <jakub@redhat.com>
Date: Fri Dec 20 18:36:48 2019 +0100
backport: re PR fortran/92775 (Incorrect expression in DW_AT_byte_stride on
an array)
Backported from mainline
2019-12-06 Jakub Jelinek <jakub@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.
More information about the Gcc-bugs
mailing list