diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2002-11-10 18:35:51 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2002-11-10 18:35:51 +0000 |
commit | 480c8d94747d197e9d87f2eb335bb172ef02cc68 (patch) | |
tree | e184952fb64aa58a166eb5ff026adb4f75b7e88b /gas | |
parent | bf1e52be950efda95a655d1e3d8d475884043174 (diff) | |
download | gdb-480c8d94747d197e9d87f2eb335bb172ef02cc68.zip gdb-480c8d94747d197e9d87f2eb335bb172ef02cc68.tar.gz gdb-480c8d94747d197e9d87f2eb335bb172ef02cc68.tar.bz2 |
* config/tc-mmix.c (get_putget_operands): Mark both possible
operands as invalid at beginning.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 3 | ||||
-rw-r--r-- | gas/config/tc-mmix.c | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 447b01d..4f25aae 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ 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. diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c index b22ad2e..1a5f7ae 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; |