https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101905
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
CC| |jakub at gcc dot gnu.org,
| |rguenth at gcc dot gnu.org
Last reconfirmed| |2021-08-16
Keywords| |wrong-debug
Known to fail| |12.0
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
We get
<1><2d>: Abbrev Number: 2 (DW_TAG_variable)
<2e> DW_AT_name : (indirect string, offset: 0x39): regVar
<32> DW_AT_decl_file : 1
<33> DW_AT_decl_line : 1
<34> DW_AT_decl_column : 16
<35> DW_AT_type : <0x39>
<39> DW_AT_external : 1
that's obviously a bit off. Not sure if there's a good DWARF representation
for global reg vars.