* fix incorrect DWARF2 line numbers for Xtensa
@ 2005-05-20 19:10 Bob Wilson
0 siblings, 0 replies; only message in thread
From: Bob Wilson @ 2005-05-20 19:10 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 344 bytes --]
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.
[-- Attachment #2: gas-line-num.patch --]
[-- Type: text/x-patch, Size: 633 bytes --]
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++)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-20 19:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-20 19:10 fix incorrect DWARF2 line numbers for Xtensa Bob Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).