aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-07-23 19:17:12 +0000
committerIan Lance Taylor <ian@airs.com>1993-07-23 19:17:12 +0000
commit283dba4ba3e569f032ba63cbe3433f1d8cc5ef1c (patch)
treefcffdf7a1d4864de4de12c0c5bf36d20878c13b6
parentf47e56c99f5ca4a6d3f8548f8eeb0038a6e61e7d (diff)
downloadfsf-binutils-gdb-283dba4ba3e569f032ba63cbe3433f1d8cc5ef1c.zip
fsf-binutils-gdb-283dba4ba3e569f032ba63cbe3433f1d8cc5ef1c.tar.gz
fsf-binutils-gdb-283dba4ba3e569f032ba63cbe3433f1d8cc5ef1c.tar.bz2
Fix stupid bugs inserted during expression conversion.
-rw-r--r--gas/config/tc-a29k.c3
-rw-r--r--gas/config/tc-h8500.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/gas/config/tc-a29k.c b/gas/config/tc-a29k.c
index 1ed07df..537f795 100644
--- a/gas/config/tc-a29k.c
+++ b/gas/config/tc-a29k.c
@@ -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;
diff --git a/gas/config/tc-h8500.c b/gas/config/tc-h8500.c
index 1cb1bcf..f58163f 100644
--- a/gas/config/tc-h8500.c
+++ b/gas/config/tc-h8500.c
@@ -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;