From 71af45ecf2efe763fc48aea7cd0b3b1d9e24ef7b Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 5 Jan 1998 15:53:49 +0000 Subject: snapshot --- gas/config/tc-txvu.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'gas/config/tc-txvu.c') diff --git a/gas/config/tc-txvu.c b/gas/config/tc-txvu.c index fbc7344..8d7937b 100644 --- a/gas/config/tc-txvu.c +++ b/gas/config/tc-txvu.c @@ -296,6 +296,8 @@ assemble_insn (str, lower_p) if (operand->parse) { value = (*operand->parse) (&str, &errmsg); + if (errmsg) + break; } else { @@ -305,18 +307,13 @@ assemble_insn (str, lower_p) str = input_line_pointer; input_line_pointer = hold; - if (exp.X_op == O_illegal) - as_bad ("illegal operand"); - else if (exp.X_op == O_absent) - as_bad ("missing operand"); + if (exp.X_op == O_illegal + || exp.X_op == O_absent) + break; else if (exp.X_op == O_constant) - { - value = exp.X_add_number; - } + value = exp.X_add_number; else if (exp.X_op == O_register) - { - as_fatal ("got O_register"); - } + as_fatal ("got O_register"); else { /* We need to generate a fixup for this expression. */ -- cgit v1.1