* config/tc-xtensa.c (xg_build_to_insn): Use tinsn_init.
authorBob Wilson <bob.wilson@acm.org>
Sat, 3 Feb 2007 00:08:22 +0000 (00:08 +0000)
committerBob Wilson <bob.wilson@acm.org>
Sat, 3 Feb 2007 00:08:22 +0000 (00:08 +0000)
(xg_expand_assembly_insn, istack_push_space, istack_pop): Likewise.

gas/ChangeLog
gas/config/tc-xtensa.c

index ec4422c8fe62f997d6820f6fe97ef201b002e7f8..0f595b9bf99748fcd5dc4f60a6f7c0f516005941 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-02  Bob Wilson  <bob.wilson@acm.org>
+       
+       * config/tc-xtensa.c (xg_build_to_insn): Use tinsn_init.
+       (xg_expand_assembly_insn, istack_push_space, istack_pop): Likewise.
+       
 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
 
        * config/tc-xtensa.c (SUFFIX_MAP, suffix_relocs): New.
index ff64543b4588e010cde90b3aba44f53ab00145bb..7ef9f51372fe42b56d8ccb9afdc1d1b6eefdbd6b 100644 (file)
@@ -3309,7 +3309,7 @@ xg_build_to_insn (TInsn *targ, TInsn *insn, BuildInstr *bi)
   BuildOp *op;
   symbolS *sym;
 
-  memset (targ, 0, sizeof (TInsn));
+  tinsn_init (targ);
   targ->linenum = insn->linenum;
   switch (bi->typ)
     {
@@ -3858,7 +3858,7 @@ xg_expand_assembly_insn (IStack *istack, TInsn *orig_insn)
   TInsn new_insn;
   bfd_boolean do_expand;
 
-  memset (&new_insn, 0, sizeof (TInsn));
+  tinsn_init (&new_insn);
 
   /* Narrow it if we can.  xg_simplify_insn now does all the
      appropriate checking (e.g., for the density option).  */
@@ -11009,7 +11009,7 @@ istack_push_space (IStack *stack)
   TInsn *insn;
   assert (!istack_full (stack));
   insn = &stack->insn[rec];
-  memset (insn, 0, sizeof (TInsn));
+  tinsn_init (insn);
   stack->ninsn++;
   return insn;
 }
@@ -11024,7 +11024,7 @@ istack_pop (IStack *stack)
   int rec = stack->ninsn - 1;
   assert (!istack_empty (stack));
   stack->ninsn--;
-  memset (&stack->insn[rec], 0, sizeof (TInsn));
+  tinsn_init (&stack->insn[rec]);
 }
 
 \f
This page took 0.035926 seconds and 4 git commands to generate.