From: Hans-Peter Nilsson Date: Sun, 10 Nov 2002 18:35:51 +0000 (+0000) Subject: * config/tc-mmix.c (get_putget_operands): Mark both possible X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=480c8d94747d197e9d87f2eb335bb172ef02cc68;p=binutils-gdb.git * config/tc-mmix.c (get_putget_operands): Mark both possible operands as invalid at beginning. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 447b01dd569..4f25aae6e3c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ 2002-11-10 Hans-Peter Nilsson + * config/tc-mmix.c (get_putget_operands): Mark both possible + operands as invalid at beginning. + * config/tc-mmix.c (md_convert_frag) : Initialize target of fixup to zero. diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c index b22ad2ee356..1a5f7ae4434 100644 --- a/gas/config/tc-mmix.c +++ b/gas/config/tc-mmix.c @@ -542,6 +542,11 @@ get_putget_operands (insn, operands, exp) 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]; @@ -573,10 +578,6 @@ get_putget_operands (insn, operands, exp) 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;