https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94474
--- Comment #2 from Andrew Burgess <andrew.burgess at embecosm dot com> --- Sorry for including the wrong DWARF dump output in the bug report. I too had seen the DW_AT_GNU_entry_view using a more recent binutils. When you pose the question: I am not sure if there are any view numbers when the inline has multiple ranges, (I dont remember) I think you're asking do we get DW_AT_GNU_entry_view when we have multiple ranges. And the answer is yes, this case already has multiple ranges (it has a DW_AT_ranges, which contains multiple ranges), and this is super confusing, because each range could, I guess, could have a different view number for its start, right? It seems that, when a debug entity has a single range defined within the entity then we need a start and end view number. When a debug entity makes use of separate range information, each range will need its own start and end view number. If the above requires new DWARF extensions, then GCC might just decide to try and make the best with the version of DWARF it currently has available.