diff options
author | Bob Wilson <bob.wilson@acm.org> | 2007-02-03 00:08:22 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2007-02-03 00:08:22 +0000 |
commit | 60242db2b7907f57e173809c0dfd36f10823d5c5 (patch) | |
tree | e009a9f2738ef64ed3e710d90258893465f55dac /gas/config | |
parent | ae07672959deaeddda2ac6845d68ae8142b4808d (diff) | |
download | gdb-60242db2b7907f57e173809c0dfd36f10823d5c5.zip gdb-60242db2b7907f57e173809c0dfd36f10823d5c5.tar.gz gdb-60242db2b7907f57e173809c0dfd36f10823d5c5.tar.bz2 |
* config/tc-xtensa.c (xg_build_to_insn): Use tinsn_init.
(xg_expand_assembly_insn, istack_push_space, istack_pop): Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-xtensa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c index ff64543..7ef9f51 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c @@ -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]); } |