Re: [PATCH] Fix debug info after the fortran descriptor changes (PR debug/84131)

2018-01-30 Thread Steve Kargl
On Tue, Jan 30, 2018 at 11:53:40PM +0100, Jakub Jelinek wrote: > > DW_AT_data_location needs to be the data pointer, which is at offset 0, > but we were emitting a bogus +8 in that case (+4 for 32-bit targets). > > With this patch, the change on -g -dA is: > - .uleb128 0x4# DW_AT_data_l

[PATCH] Fix debug info after the fortran descriptor changes (PR debug/84131)

2018-01-30 Thread Jakub Jelinek
Hi! DW_AT_data_location needs to be the data pointer, which is at offset 0, but we were emitting a bogus +8 in that case (+4 for 32-bit targets). With this patch, the change on -g -dA is: - .uleb128 0x4# DW_AT_data_location + .uleb128 0x2# DW_AT_data_location .byte 0