From: Joern Rennecke Date: Thu, 10 Oct 2002 13:37:32 +0000 (+0000) Subject: * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac62e7a36867559d7a8a31a73328ff27278bb122;p=binutils-gdb.git * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n inside loop. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 30124d522f1..5f9a5be3bbd 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Thu Oct 10 14:31:30 2002 J"orn Rennecke + + * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n + inside loop. + 2002-10-09 Richard Shann Stephen Clarke diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index a2e53d50ead..936faf9e204 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -2123,16 +2123,16 @@ assemble_ppi (op_end, opcode) int move_code; unsigned int size; - /* Some insn ignore one or more register fields, e.g. psts machl,a0. - Make sure we encode a defined insn pattern. */ - reg_x = 0; - reg_y = 0; - reg_n = 0; - for (;;) { sh_operand_info operand[3]; + /* Some insn ignore one or more register fields, e.g. psts machl,a0. + Make sure we encode a defined insn pattern. */ + reg_x = 0; + reg_y = 0; + reg_n = 0; + if (opcode->arg[0] != A_END) op_end = get_operands (opcode, op_end, operand); opcode = get_specific (opcode, operand);