This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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++)
     {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]