gas: Clear all auto-assigned file slots
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 26 Oct 2020 13:16:08 +0000 (06:16 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 26 Oct 2020 13:16:21 +0000 (06:16 -0700)
commitae9d2233e61a98ff8dba56be10219aa5306ffc9a
tree660106b67bb2843a8828b283acc6e759fc6235ea
parent93cf38c095afbee84ed580c431d001f20442f73e
gas: Clear all auto-assigned file slots

Since a file slot is auto-assigned for the #APP marker appeared before
the first .file <NUMBER> directive has been seen, clear all auto-assigned
file slots when seeing the first .file <NUMBER> directive.

PR gas/26778
* * dwarf2dbg.c (num_of_auto_assigned): New.
(allocate_filenum): Increment num_of_auto_assigned.
(dwarf2_directive_filename): Clear the slots auto-assigned
before the first .file <NUMBER> directive was seen.
* testsuite/gas/i386/dwarf4-line-1.d: New file.
* testsuite/gas/i386/dwarf4-line-1.s: Likewise.
* testsuite/gas/i386/i386.exp: Run dwarf4-line-1.
gas/ChangeLog
gas/dwarf2dbg.c
gas/testsuite/gas/i386/dwarf4-line-1.d [new file with mode: 0644]
gas/testsuite/gas/i386/dwarf4-line-1.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp
This page took 0.027919 seconds and 4 git commands to generate.