operands as invalid at beginning.
2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
+ * config/tc-mmix.c (get_putget_operands): Mark both possible
+ operands as invalid at beginning.
+
* config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
Initialize target of fixup to zero.
input_line_pointer = p;
+ /* Initialize both possible operands to error state, in case we never
+ get further. */
+ exp[0].X_op = O_illegal;
+ exp[1].X_op = O_illegal;
+
if (insn->operands == mmix_operands_get)
{
expp_reg = &exp[0];
expp_sreg = &exp[0];
expp_reg = &exp[1];
- /* Initialize to error state in case we'll never call expression on
- this operand. */
- expp_reg->X_op = O_illegal;
-
sregp = p;
c = get_symbol_end ();
sregend = p = input_line_pointer;