+2004-05-20 Richard Sandiford <rsandifo@redhat.com>
+
+ * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
+ dwarf tables.
+
2004-05-17 Adam Nemet <anemet@lnxw.com>
* configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
md_number_to_chars (f, ip->insn_opcode >> 16, 2);
md_number_to_chars (f + 2, ip->insn_opcode & 0xffff, 2);
#ifdef OBJ_ELF
- dwarf2_emit_insn (4);
+ /* The value passed to dwarf2_emit_insn is the distance between
+ the end of the current instruction and the address that should
+ be recorded in the debug tables. Since we want to use ISA-encoded
+ addresses in MIPS16 debug info, the value is one byte less than
+ the real instruction length. */
+ dwarf2_emit_insn (3);
#endif
}
else
}
md_number_to_chars (f, ip->insn_opcode, 2);
#ifdef OBJ_ELF
- dwarf2_emit_insn (ip->use_extend ? 4 : 2);
+ dwarf2_emit_insn (ip->use_extend ? 3 : 1);
#endif
}