From 60242db2b7907f57e173809c0dfd36f10823d5c5 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Sat, 3 Feb 2007 00:08:22 +0000 Subject: * config/tc-xtensa.c (xg_build_to_insn): Use tinsn_init. (xg_expand_assembly_insn, istack_push_space, istack_pop): Likewise. --- gas/ChangeLog | 5 +++++ gas/config/tc-xtensa.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index ec4422c..0f595b9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,4 +1,9 @@ 2007-02-02 Bob Wilson + + * 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 * config/tc-xtensa.c (SUFFIX_MAP, suffix_relocs): New. (xtensa_elf_suffix): Use suffix_relocs instead of local mapping table. 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]); } -- cgit v1.1