From 7af0dfc73dbf19b5fb229b377766203ff0ad85ec Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Fri, 28 Jan 2005 19:33:26 +0000 Subject: [PATCH] * config/tc-z8k.c (md_assemble): Improve error detection. --- gas/ChangeLog | 4 ++++ gas/config/tc-z8k.c | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 3ab47b349d1..0a5118d8a78 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2005-01-28 Christian Groessler + + * config/tc-z8k.c (md_assemble): Improve error detection. + 2005-01-28 Jan Beulich * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space diff --git a/gas/config/tc-z8k.c b/gas/config/tc-z8k.c index b914a14f4b6..593ed36596b 100644 --- a/gas/config/tc-z8k.c +++ b/gas/config/tc-z8k.c @@ -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); -- 2.30.2