aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2002-10-10 13:37:32 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>2002-10-10 13:37:32 +0000
commitac62e7a36867559d7a8a31a73328ff27278bb122 (patch)
tree94f62903d611302be29ba01e1388f7d2166e5210 /gas
parent2030e6d786607499a56eeda4a28d2e0c2ba585aa (diff)
downloadgdb-ac62e7a36867559d7a8a31a73328ff27278bb122.zip
gdb-ac62e7a36867559d7a8a31a73328ff27278bb122.tar.gz
gdb-ac62e7a36867559d7a8a31a73328ff27278bb122.tar.bz2
* config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
inside loop.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-sh.c12
2 files changed, 11 insertions, 6 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 30124d5..5f9a5be 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
+
+ * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
+ inside loop.
+
2002-10-09 Richard Shann <richard.shann@superh.com>
Stephen Clarke <stephen.clarke@superh.com>
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index a2e53d5..936faf9 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);