* config/tc-z8k.c (md_assemble): Improve error detection.

This commit is contained in:
Christian Groessler 2005-01-28 19:33:26 +00:00
parent d56612afe8
commit 7af0dfc73d
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2005-01-28 Christian Groessler <chris@groessler.org>
* config/tc-z8k.c (md_assemble): Improve error detection.
2005-01-28 Jan Beulich <jbeulich@novell.com>
* config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space

View file

@ -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;
{
input_line_pointer = new_input_line_pointer;
opcode = get_specific (opcode, operand);
}
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);