Fix PR gas/26001 (pdp11-*-*)
[deliverable/binutils-gdb.git] / gas / config / tc-pdp11.c
index d38a3cd6d2598fb2a9372c9f46ae0d1f755390b8..57daa0f5097e31ccc61bb0a1d9d74e6e6ca3888f 100644 (file)
@@ -358,8 +358,17 @@ parse_reg (char *str, struct pdp11_code *operand)
       str += 2;
     }
   else
-    operand->error = _("Bad register name");
+    {
+      operand->error = _("Bad register name");
+      return str;
+    }
 
+  if (ISALNUM (*str) || *str == '_' || *str == '.')
+    {
+      operand->error = _("Bad register name");
+      str -= 2;
+    }
+  
   return str;
 }
 
This page took 0.024911 seconds and 4 git commands to generate.