aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-xtensa.c
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2005-03-11 00:14:15 +0000
committerBob Wilson <bob.wilson@acm.org>2005-03-11 00:14:15 +0000
commit0fa77c953fa63fc96ebcc2b2560481c0bd0b4b56 (patch)
tree00bf047dc4c26ce1fd12c460eed248a7f85b6013 /gas/config/tc-xtensa.c
parent9460aecf6f281746fb3b51565d595dc4ac87bb32 (diff)
downloadgdb-0fa77c953fa63fc96ebcc2b2560481c0bd0b4b56.zip
gdb-0fa77c953fa63fc96ebcc2b2560481c0bd0b4b56.tar.gz
gdb-0fa77c953fa63fc96ebcc2b2560481c0bd0b4b56.tar.bz2
* config/tc-xtensa.c (finish_vinsn): Include the last instruction slot
when checking if xg_resolve_literals needs to be called. * config/tc-xtensa.h: Fix spelling typo in a comment.
Diffstat (limited to 'gas/config/tc-xtensa.c')
-rw-r--r--gas/config/tc-xtensa.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c
index 34fdc2c..9d20a6b 100644
--- a/gas/config/tc-xtensa.c
+++ b/gas/config/tc-xtensa.c
@@ -6145,7 +6145,7 @@ finish_vinsn (vliw_insn *vinsn)
return;
}
- for (j = 0; j < slotstack.ninsn - 1; j++)
+ for (j = 0; j < slotstack.ninsn; j++)
{
TInsn *insn = &slotstack.insn[j];
if (insn->insn_type == ITYPE_LITERAL)
@@ -6155,9 +6155,11 @@ finish_vinsn (vliw_insn *vinsn)
}
else
{
+ assert (insn->insn_type == ITYPE_INSN);
if (lit_sym)
xg_resolve_literals (insn, lit_sym);
- emit_single_op (insn);
+ if (j != slotstack.ninsn - 1)
+ emit_single_op (insn);
}
}