]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/ChangeLog
gas: Reuse the input file entry in the file table
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Oct 2020 11:03:20 +0000 (04:03 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Oct 2020 11:07:59 +0000 (04:07 -0700)
commit6915020bb134ae29fd772295c66fd67b5944962d
tree8876a55aaee7877e764b0b1a576c36483d457ac3
parent23ae20f5e3afeeab9aa616c63ab3b357668476d5
gas: Reuse the input file entry in the file table

Some instructions can be emitted (dwarf2_emit_insn is called) before the
first .file <NUMBER> directive has been seen, which allocates the input
file as the first file entry.  Reuse the input file entry in the file
table.

PR gas/25878
PR gas/26740
* dwarf2dbg.c (file_entry): Remove auto_assigned.
(assign_file_to_slot): Remove the auto_assign argument.
(allocate_filenum): Updated.
(allocate_filename_to_slot): Reuse the input file entry in the
file table.
(dwarf2_where): Replace as_where with as_where_physical.
* testsuite/gas/i386/dwarf5-line-1.d: New file.
* testsuite/gas/i386/dwarf5-line-1.s: Likewise.
* testsuite/gas/i386/i386.exp: Run dwarf5-line-1.
gas/ChangeLog
gas/dwarf2dbg.c
gas/testsuite/gas/i386/dwarf5-line-1.d [new file with mode: 0644]
gas/testsuite/gas/i386/dwarf5-line-1.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp