Re: [PATCH] Fix up Fortran debug info for arrays with descriptors (PR fortran/92775)

2019-12-06 Thread Tobias Burnus
@Paul: I have an ISO-C question for you. On 12/6/19 1:16 AM, Jakub Jelinek wrote: […] Unfortunately, I don't know Fortran enough to find out when exactly the compiler knows that descr->span will be always equal to element_size, Well, while gfc_expr is still available, that's gfc_get_array_spa

[PATCH] Fix up Fortran debug info for arrays with descriptors (PR fortran/92775)

2019-12-05 Thread Jakub Jelinek
Hi! Before r251949 the debug info for Fortran array descriptors looked correct, for arrays that had GFC_TYPE_ARRAY_SPAN NULL would use for DW_AT_byte_stride DW_OP_push_object_address DW_OP_plus_uconst offsetof (, dim[0].__stride) DW_OP_deref DW_OP_litN DW_OP_mul (where N is the element size in byt