From: Paul Brook Date: Fri, 7 Apr 2006 15:09:40 +0000 (+0000) Subject: 2006-04-07 Paul Brook X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab1eb5fea7e04d3aac9e3522f87d580dc14244cf;p=binutils-gdb.git 2006-04-07 Paul Brook * config/tc-arm.c (parse_tb): Set inst.error before returning FAIL. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 7e7b0df4dbc..a63e8be3ad4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2006-04-07 Paul Brook + + * config/tc-arm.c (parse_tb): Set inst.error before returning FAIL. + 2006-04-07 Paul Brook * config/tc-arm.c (md_apply_fix): Set H bit on blx instruction. diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 54cd349d59d..a37e0f69e1d 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -3706,7 +3706,10 @@ parse_tb (char **str) int reg; if (skip_past_char (&p, '[') == FAIL) - return FAIL; + { + inst.error = _("'[' expected"); + return FAIL; + } if ((reg = arm_reg_parse (&p, REG_TYPE_RN)) == FAIL) { @@ -3716,7 +3719,10 @@ parse_tb (char **str) inst.operands[0].reg = reg; if (skip_past_comma (&p) == FAIL) - return FAIL; + { + inst.error = _("',' expected"); + return FAIL; + } if ((reg = arm_reg_parse (&p, REG_TYPE_RN)) == FAIL) {