This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
minor cleanup for Xtensa GAS port
- From: Bob Wilson <bwilson at tensilica dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 29 Dec 2005 13:05:57 -0800
- Subject: minor cleanup for Xtensa GAS port
I've committed this simple patch to remove some unnecessary initialization.
Tested with an xtensa-elf build.
2005-12-29 Sterling Augustine <sterling@tensilica.com>
* config/tc-xtensa.c (tinsn_to_slotbuf): Do not zero slotbuf.
Index: gas/config/tc-xtensa.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-xtensa.c,v
retrieving revision 1.51
diff -u -p -r1.51 tc-xtensa.c
--- gas/config/tc-xtensa.c 20 Dec 2005 19:37:26 -0000 1.51
+++ gas/config/tc-xtensa.c 29 Dec 2005 20:58:29 -0000
@@ -11220,8 +11220,6 @@ tinsn_to_slotbuf (xtensa_format fmt,
int noperands = xtensa_opcode_num_operands (isa, opcode);
int i;
- *((int *) &slotbuf[0]) = 0;
- *((int *) &slotbuf[1]) = 0;
assert (tinsn->insn_type == ITYPE_INSN);
if (noperands != tinsn->ntok)
as_fatal (_("operand number mismatch"));