2006-04-07 Paul Brook <paul@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Fri, 7 Apr 2006 15:09:40 +0000 (15:09 +0000)
committerPaul Brook <paul@codesourcery.com>
Fri, 7 Apr 2006 15:09:40 +0000 (15:09 +0000)
* config/tc-arm.c (parse_tb): Set inst.error before returning FAIL.

gas/ChangeLog
gas/config/tc-arm.c

index 7e7b0df4dbcd73b5eb4096383223045c3d410aaf..a63e8be3ad44c899f75ae3ea7d764e015b209032 100644 (file)
@@ -1,3 +1,7 @@
+2006-04-07  Paul Brook  <paul@codesourcery.com>
+
+       * config/tc-arm.c (parse_tb): Set inst.error before returning FAIL.
+
 2006-04-07  Paul Brook  <paul@codesourcery.com>
 
        * config/tc-arm.c (md_apply_fix): Set H bit on blx instruction.
index 54cd349d59d604fe5f5e719416acb355b085b991..a37e0f69e1d1711b8bc55eccb1c057b0892fdba8 100644 (file)
@@ -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)
     {
This page took 0.039122 seconds and 4 git commands to generate.