From: Bob Wilson Date: Fri, 11 Mar 2005 00:14:15 +0000 (+0000) Subject: * config/tc-xtensa.c (finish_vinsn): Include the last instruction slot X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0fa77c953fa63fc96ebcc2b2560481c0bd0b4b56;p=binutils-gdb.git * 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 57a9b9437d5..5849d33d989 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2005-03-10 Bob Wilson + + * 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. + 2005-03-10 Jan Beulich * config/tc-tic54x.h (tic54x_macro_info): Change parameter type. diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c index 34fdc2cdf70..9d20a6b048b 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); } } diff --git a/gas/config/tc-xtensa.h b/gas/config/tc-xtensa.h index 585f1ce3412..47436176f83 100644 --- a/gas/config/tc-xtensa.h +++ b/gas/config/tc-xtensa.h @@ -201,7 +201,7 @@ struct xtensa_frag_type first time through a relaxation.... */ unsigned int relax_seen : 1; - /* Infomation that is needed in the object file and set when known. */ + /* Information that is needed in the object file and set when known. */ unsigned int is_literal : 1; unsigned int is_loop_target : 1; unsigned int is_branch_target : 1;