https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102481
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |MOVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is a binutils bug (or feature dealing with dwarf5):
ubuntu@ubuntu:/tmp/obj\# as -g -o test.o ../test.S
ubuntu@ubuntu:/tmp/obj\# dwarfdump -i test.o
.debug_info
COMPILE_UNIT<header overall offset = 0x00000000>:
< 0><0x0000000b> DW_TAG_compile_unit
DW_AT_stmt_list 0x00000000
DW_AT_low_pc 0x00000000
DW_AT_high_pc 0x00000004
DW_AT_name ../test.S
DW_AT_comp_dir /tmp/obj
DW_AT_producer GNU AS 2.37
DW_AT_language DW_LANG_Mips_Assembler
ubuntu@ubuntu:/tmp/obj\# as -g -o test.o ../test.S -gdwarf-5
ubuntu@ubuntu:/tmp/obj\# dwarfdump -i test.o
.debug_info
COMPILE_UNIT<header overall offset = 0x00000000>:
< 0><0x0000000c> DW_TAG_compile_unit
DW_AT_stmt_list 0x00000000
DW_AT_low_pc 0x00000000
DW_AT_high_pc <offset-from-lowpc>0x00000004
DW_AT_name test.S
DW_AT_comp_dir /tmp/obj
DW_AT_producer GNU AS 2.37
DW_AT_language DW_LANG_Mips_Assembler