projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix PR gas/26001 (pdp11-*-*)
[deliverable/binutils-gdb.git]
/
gas
/
config
/
tc-pdp11.c
diff --git
a/gas/config/tc-pdp11.c
b/gas/config/tc-pdp11.c
index d38a3cd6d2598fb2a9372c9f46ae0d1f755390b8..57daa0f5097e31ccc61bb0a1d9d74e6e6ca3888f 100644
(file)
--- a/
gas/config/tc-pdp11.c
+++ b/
gas/config/tc-pdp11.c
@@
-358,8
+358,17
@@
parse_reg (char *str, struct pdp11_code *operand)
str += 2;
}
else
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;
}
return str;
}
This page took
0.02411 seconds
and
4
git commands to generate.