Fix stupid bugs inserted during expression conversion.
authorIan Lance Taylor <ian@airs.com>
Fri, 23 Jul 1993 19:17:12 +0000 (19:17 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 23 Jul 1993 19:17:12 +0000 (19:17 +0000)
gas/config/tc-a29k.c
gas/config/tc-h8500.c

index 1ed07df042863072c24a919a3350af9fd12e298f..537f7955c609fec61b57f32a3dbe2e2b651d0eb5 100644 (file)
@@ -403,7 +403,8 @@ parse_operand (s, operandp)
   char *new;
 
   input_line_pointer = s;
-  if (expression (operandp) == O_absent)
+  expression (operandp);
+  if (operandp->X_op == O_absent)
     as_bad ("missing operand");
   new = input_line_pointer;
   input_line_pointer = save;
index 1cb1bcfa6d0effba979d49313cb9200006ab686b..f58163f6351883c7ec6f599f299a80fbc25e3b4f 100644 (file)
@@ -286,7 +286,8 @@ parse_exp (s, op, page)
 
   input_line_pointer = s;
 
-  if (expression (op) == O_absent)
+  expression (op);
+  if (op->X_op == O_absent)
     as_bad ("missing operand");
   new = input_line_pointer;
   input_line_pointer = save;