https://sourceware.org/bugzilla/show_bug.cgi?id=27231
--- Comment #10 from Mark Wielaard <mark at klomp dot org> --- (In reply to Jakub Jelinek from comment #9) > (In reply to H.J. Lu from comment #6) > > > > if ((low_pc == 0 && high_pc == 0) || low_pc == high_pc) > > return FALSE; > > > > in read_rnglists(). Is this a GCC 11 bug? > > No, binutils bug. > There is nothing special about 0 low or high pc or low_pc == high_pc in > .debug_rnglists. The list termination is rather DW_RLE_end_of_list. The DWARF5 spec does indeed explicitly say: "A bounded range entry whose beginning and ending address offsets are equal (including zero) indicates an empty range and may be ignored." So your patch https://sourceware.org/pipermail/binutils/2021-January/115073.html looks correct. Note that arange_add already ignores empty ranges, so just remove the whole check should be equivalent to the check plus explicit continue. -- You are receiving this mail because: You are on the CC list for the bug.