minor cleanup for Xtensa GAS port

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

minor cleanup for Xtensa GAS port

Bob Wilson
I've committed this simple patch to remove some unnecessary initialization.
Tested with an xtensa-elf build.

2005-12-29  Sterling Augustine  <[hidden email]>

        * 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"));