aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-hppa.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-01-17 09:30:07 +0000
committerJeff Law <law@redhat.com>1994-01-17 09:30:07 +0000
commit51517966bc5bd9f7f3b4d283f1ebdc735cef4db6 (patch)
tree1425c3954c3353432b0f2bfd239237a58652eb71 /gas/config/tc-hppa.c
parent9ee57a5e1a0f21c08651b03c409b9194b2da4092 (diff)
downloadgdb-51517966bc5bd9f7f3b4d283f1ebdc735cef4db6.zip
gdb-51517966bc5bd9f7f3b4d283f1ebdc735cef4db6.tar.gz
gdb-51517966bc5bd9f7f3b4d283f1ebdc735cef4db6.tar.bz2
* config/tc-hppa.c (pa_ip): Explicitly check for comma before 'u'
and 'f' template operand.
Diffstat (limited to 'gas/config/tc-hppa.c')
-rw-r--r--gas/config/tc-hppa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index 53f94b6..90cea10 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -2247,6 +2247,8 @@ pa_ip (str)
/* Handle a 3 bit SFU identifier at 25. */
case 'f':
+ if (*s++ != ',')
+ as_bad ("Invalid SFU identifier");
num = pa_get_absolute_expression (&the_insn, &s);
s = expr_end;
CHECK_FIELD (num, 7, 0, 0);
@@ -2285,6 +2287,8 @@ pa_ip (str)
/* Handle a 3-bit co-processor ID field. */
case 'u':
+ if (*s++ != ',')
+ as_bad ("Invalid COPR identifier");
num = pa_get_absolute_expression (&the_insn, &s);
s = expr_end;
CHECK_FIELD (num, 7, 0, 0);