From: Nick Clifton Date: Wed, 25 Feb 1998 02:05:09 +0000 (+0000) Subject: Fix bug detected by Michael snyder. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=39149be2246d4c375faf6c357e370f12cb66016d;p=binutils-gdb.git Fix bug detected by Michael snyder. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 07303234881..2f417078000 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +start-sanitize-m32rx +Tue Feb 24 18:03:25 1998 Nick Clifton + + * config/tc-m32r.c (first_writes_to_seconds_operands): + Reinitialise b_operands for each pass of the inner loop. +end-sanitize-m32rx start-sanitize-sky Tue Feb 24 11:01:25 1998 Doug Evans diff --git a/gas/config/tc-m32r.c b/gas/config/tc-m32r.c index c1fd99c8aa1..b47d9e45398 100644 --- a/gas/config/tc-m32r.c +++ b/gas/config/tc-m32r.c @@ -410,13 +410,13 @@ first_writes_to_seconds_operands (a, b, check_outputs) const int check_outputs; { const CGEN_OPERAND_INSTANCE * a_operands = CGEN_INSN_OPERANDS (a->insn); - const CGEN_OPERAND_INSTANCE * b_operands = CGEN_INSN_OPERANDS (b->insn); + const CGEN_OPERAND_INSTANCE * b_ops = CGEN_INSN_OPERANDS (b->insn); int a_index; /* If at least one of the instructions takes no operands, then there is nothing to check. There really are instructions without operands, eg 'nop'. */ - if (a_operands == NULL || b_operands == NULL) + if (a_operands == NULL || b_ops == NULL) return 0; /* Scan the operand list of 'a' looking for an output operand. */ @@ -427,6 +427,7 @@ first_writes_to_seconds_operands (a, b, check_outputs) if (CGEN_OPERAND_INSTANCE_TYPE (a_operands) == CGEN_OPERAND_INSTANCE_OUTPUT) { int b_index; + const CGEN_OPERAND_INSTANCE * b_operands = b_ops; /* Special Case: The Condition bit 'C' is a shadow of the CBR register (control