]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/binutils-tumbl.git/commitdiff
* config/tc-z8k.c (md_assemble): Improve error detection.
authorChristian Groessler <chris@groessler.org>
Fri, 28 Jan 2005 19:33:26 +0000 (19:33 +0000)
committerChristian Groessler <chris@groessler.org>
Fri, 28 Jan 2005 19:33:26 +0000 (19:33 +0000)
gas/ChangeLog
gas/config/tc-z8k.c

index 3ab47b349d11e0e417f8552117dccb1b96fd021a..0a5118d8a781edc73c4eb01b5528e0c9d4288371 100644 (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
index b914a14f4b6c968478cac35aaf763c721f1605e7..593ed36596b08987d736092ea23007dcb98dd7f6 100644 (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;
-
-      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);