Add support for a ".file 0" directive if supporting DWARF 5 or higher.
authorNick Clifton <nickc@redhat.com>
Fri, 6 Mar 2020 17:13:22 +0000 (17:13 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 6 Mar 2020 17:13:22 +0000 (17:13 +0000)
commit84d9ab33f3dc542c5f20abb9026240cfd48ccd97
treecbdd933a1952a9f71c90f3e43e0265cb96390995
parent436b5e99c8eef55433f2c1de35d8f960425aa4c1
Add support for a ".file 0" directive if supporting DWARF 5 or higher.

PR 25614
* dwarf2dbg.c (dwarf2_directive_filename): Allow a file number of
0 if the dwarf_level is 5 or more.  Complain if a filename follows
a file 0.
* testsuite/gas/elf/dwarf-5-file0.s: New test.
* testsuite/gas/elf/dwarf-5-file0.d: New test driver.
* testsuite/gas/elf/elf.exp: Run the new test.

PR 25612
* config/tc-ia64.h (DWARF2_VERISION): Fix typo.
* doc/as.texi: Fix another typo.
gas/ChangeLog
gas/config/tc-ia64.h
gas/doc/as.texi
gas/dwarf2dbg.c
gas/testsuite/gas/elf/dwarf-5-file0.d [new file with mode: 0644]
gas/testsuite/gas/elf/dwarf-5-file0.s [new file with mode: 0644]
gas/testsuite/gas/elf/elf.exp