aboutsummaryrefslogtreecommitdiff
path: root/gas
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
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')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-hppa.c10
2 files changed, 13 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 1d120b1..b0c2d73 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+Wed Sep 22 09:37:19 1999 Jeffrey A Law (law@cygnus.com)
+
+ * 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.
+
1999-09-22 Nick Clifton <nickc@cygnus.com>
* config/tc-arm.c (MULTI_SET_PSR): Rename to LDM_TYPE_2_OR_3.
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 '=':