aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-hppa.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1999-09-22 15:43:26 +0000
committerJeff Law <law@redhat.com>1999-09-22 15:43:26 +0000
commitb1039fc41ec4d13b6ac2e274e47c64d179ae202e (patch)
tree46c53274f5f1f63b2865da01ec4bbb2d7f4f13a4 /gas/config/tc-hppa.c
parent913f265c25da572d95935efbf80ddb95cb95272e (diff)
downloadgdb-b1039fc41ec4d13b6ac2e274e47c64d179ae202e.zip
gdb-b1039fc41ec4d13b6ac2e274e47c64d179ae202e.tar.gz
gdb-b1039fc41ec4d13b6ac2e274e47c64d179ae202e.tar.bz2
* config/tc-hppa.c (pa_ip): Avoid ANSI specific initialization.
(pa_ip, case 'm'): Failure to get a CBIT specifier just means the insn does not match and we should try the next insn in the table.
Diffstat (limited to 'gas/config/tc-hppa.c')
-rw-r--r--gas/config/tc-hppa.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index 8965a6c..d93998f 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -2139,9 +2139,13 @@ pa_ip (str)
case '*':
if (*s++ == ',')
{
- int permloc[4] = {13,10,8,6};
+ int permloc[4];
int perm = 0;
int i = 0;
+ permloc[0] = 13;
+ permloc[1] = 10;
+ permloc[2] = 8;
+ permloc[3] = 6;
for (; i < 4; i++)
{
switch (*s++)
@@ -2777,16 +2781,16 @@ pa_ip (str)
are 0..6 inclusive. */
case 'm':
get_expression (s);
- s = expr_end;
if (the_insn.exp.X_op == O_constant)
{
+ s = expr_end;
num = evaluate_absolute (&the_insn);
CHECK_FIELD (num, 6, 0, 0);
num = (num + 1) ^ 1;
INSERT_FIELD_AND_CONTINUE (opcode, num, 13);
}
else
- as_bad (_("Invalid CBit Specification: %s"), s);
+ break;
/* Handle graphics test completers for ftest */
case '=':