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
struct reloc_info *reloc_info = ip->reloc_info;
size_t i;
+ dwarf2_emit_insn (0);
+
for (i = 0; i < ip->reloc_num; i++)
{
reloc_type = reloc_info[i].type;
as_fatal (_("Internal error: not support relax now"));
else
append_fixed_insn (ip);
-
- dwarf2_emit_insn (0);
}
/* Ask helper for returning a malloced c_str or NULL. */