diff options
author | Christian Groessler <chris@groessler.org> | 2005-01-28 19:33:26 +0000 |
---|---|---|
committer | Christian Groessler <chris@groessler.org> | 2005-01-28 19:33:26 +0000 |
commit | 7af0dfc73dbf19b5fb229b377766203ff0ad85ec (patch) | |
tree | 7763e1c1b4fb7899434974612b28da8405ea6f6e /gas/config/tc-z8k.c | |
parent | d56612afe813ea61f4e4bb89cc4e460c3f5e56dc (diff) | |
download | gdb-7af0dfc73dbf19b5fb229b377766203ff0ad85ec.zip gdb-7af0dfc73dbf19b5fb229b377766203ff0ad85ec.tar.gz gdb-7af0dfc73dbf19b5fb229b377766203ff0ad85ec.tar.bz2 |
* config/tc-z8k.c (md_assemble): Improve error detection.
Diffstat (limited to 'gas/config/tc-z8k.c')
-rw-r--r-- | gas/config/tc-z8k.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gas/config/tc-z8k.c b/gas/config/tc-z8k.c index b914a14..593ed36 100644 --- a/gas/config/tc-z8k.c +++ b/gas/config/tc-z8k.c @@ -1241,11 +1241,12 @@ md_assemble (char *str) new_input_line_pointer = get_operands (opcode, op_end, operand); if (new_input_line_pointer) - input_line_pointer = new_input_line_pointer; - - opcode = get_specific (opcode, operand); + { + input_line_pointer = new_input_line_pointer; + opcode = get_specific (opcode, operand); + } - if (opcode == 0) + if (new_input_line_pointer == NULL || opcode == NULL) { /* Couldn't find an opcode which matched the operands. */ char *where = frag_more (2); |