This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
fix incorrect DWARF2 line numbers for Xtensa
- From: Bob Wilson <bwilson at tensilica dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 20 May 2005 12:02:06 -0700
- Subject: fix incorrect DWARF2 line numbers for Xtensa
DWARF2 line numbers generated by the Xtensa port of GAS were broken because of a
subtraction that should have been an addition. Fixed on mainline with the
following patch.
2005-05-20 Bob Wilson <bob.wilson@acm.org>
* config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
to addition in argument to xtensa_dwarf2_emit_insn.
Index: config/tc-xtensa.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-xtensa.c,v
retrieving revision 1.41
diff -u -p -r1.41 tc-xtensa.c
--- config/tc-xtensa.c 13 May 2005 17:35:17 -0000 1.41
+++ config/tc-xtensa.c 20 May 2005 18:54:14 -0000
@@ -6793,7 +6793,7 @@ xg_assemble_vliw_tokens (vliw_insn *vins
xtensa_insnbuf_to_chars (isa, vinsn->insnbuf, (unsigned char *) f, 0);
- xtensa_dwarf2_emit_insn (insn_size - extra_space, &best_loc);
+ xtensa_dwarf2_emit_insn (insn_size + extra_space, &best_loc);
for (slot = 0; slot < vinsn->num_slots; slot++)
{