gas:LoongArch: Fix wrong line number in .debug_line
authorliuzhensong <liuzhensong@loongson.cn>
Sun, 20 Mar 2022 01:19:55 +0000 (09:19 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Sun, 20 Mar 2022 01:37:12 +0000 (09:37 +0800)
commit1848a40fdd134c5579e743d93f1ca9acc0b4b486
tree1a8651dc68c094c657ffecd126299558261b21cb
parent5fb13d7ef45088d8c2b89a3b4b22c36a0e3a5715
gas:LoongArch: Fix wrong line number in .debug_line

  The dwarf2_emit_insn() can create debuginfo of line. But it is called
  too late in append_fixp_and_insn. It causes extra offs when debuginfo
  of line sets address.

  gas/config/
    * tc-loongarch.c
gas/config/tc-loongarch.c