aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2002-05-31 02:27:15 +0000
committerThiemo Seufer <ths@networkno.de>2002-05-31 02:27:15 +0000
commit793b27f4638e5e1f7338677c9d4faa4605fbfdd7 (patch)
tree5280b52d3a61400a8eb67745d4fb03dcfa7b3516
parent8024528581c01bb27440b3b324127d5964f0ac1b (diff)
downloadgdb-793b27f4638e5e1f7338677c9d4faa4605fbfdd7.zip
gdb-793b27f4638e5e1f7338677c9d4faa4605fbfdd7.tar.gz
gdb-793b27f4638e5e1f7338677c9d4faa4605fbfdd7.tar.bz2
* config/tc-mips.c (mips_ip): Use unsigned long values for
warning output.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mips.c36
2 files changed, 23 insertions, 18 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d5452d0..50b5590 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+ * config/tc-mips.c (mips_ip): Use unsigned long values for
+ warning output.
+
+2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
* config/tc-mips.c (s_cpsetup): Fix initialization of
mips_cpreturn_register and mips_cpreturn_offset.
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 1b738b5..385e5fa 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -8045,8 +8045,8 @@ mips_ip (str, ip)
check_absolute_expr (ip, &imm_expr);
if ((unsigned long) imm_expr.X_add_number > 31)
{
- as_warn (_("Improper shift amount (%ld)"),
- (long) imm_expr.X_add_number);
+ as_warn (_("Improper shift amount (%lu)"),
+ (unsigned long) imm_expr.X_add_number);
imm_expr.X_add_number &= OP_MASK_SHAMT;
}
ip->insn_opcode |= imm_expr.X_add_number << OP_SH_SHAMT;
@@ -8087,10 +8087,10 @@ mips_ip (str, ip)
case 'c': /* break code */
my_getExpression (&imm_expr, s);
check_absolute_expr (ip, &imm_expr);
- if ((unsigned) imm_expr.X_add_number > 1023)
+ if ((unsigned long) imm_expr.X_add_number > 1023)
{
- as_warn (_("Illegal break code (%ld)"),
- (long) imm_expr.X_add_number);
+ as_warn (_("Illegal break code (%lu)"),
+ (unsigned long) imm_expr.X_add_number);
imm_expr.X_add_number &= OP_MASK_CODE;
}
ip->insn_opcode |= imm_expr.X_add_number << OP_SH_CODE;
@@ -8101,10 +8101,10 @@ mips_ip (str, ip)
case 'q': /* lower break code */
my_getExpression (&imm_expr, s);
check_absolute_expr (ip, &imm_expr);
- if ((unsigned) imm_expr.X_add_number > 1023)
+ if ((unsigned long) imm_expr.X_add_number > 1023)
{
- as_warn (_("Illegal lower break code (%ld)"),
- (long) imm_expr.X_add_number);
+ as_warn (_("Illegal lower break code (%lu)"),
+ (unsigned long) imm_expr.X_add_number);
imm_expr.X_add_number &= OP_MASK_CODE2;
}
ip->insn_opcode |= imm_expr.X_add_number << OP_SH_CODE2;
@@ -8115,9 +8115,9 @@ mips_ip (str, ip)
case 'B': /* 20-bit syscall/break code. */
my_getExpression (&imm_expr, s);
check_absolute_expr (ip, &imm_expr);
- if ((unsigned) imm_expr.X_add_number > OP_MASK_CODE20)
- as_warn (_("Illegal 20-bit code (%ld)"),
- (long) imm_expr.X_add_number);
+ if ((unsigned long) imm_expr.X_add_number > OP_MASK_CODE20)
+ as_warn (_("Illegal 20-bit code (%lu)"),
+ (unsigned long) imm_expr.X_add_number);
ip->insn_opcode |= imm_expr.X_add_number << OP_SH_CODE20;
imm_expr.X_op = O_absent;
s = expr_end;
@@ -8128,8 +8128,8 @@ mips_ip (str, ip)
check_absolute_expr (ip, &imm_expr);
if ((unsigned long) imm_expr.X_add_number >= (1 << 25))
{
- as_warn (_("Coproccesor code > 25 bits (%ld)"),
- (long) imm_expr.X_add_number);
+ as_warn (_("Coproccesor code > 25 bits (%lu)"),
+ (unsigned long) imm_expr.X_add_number);
imm_expr.X_add_number &= ((1 << 25) - 1);
}
ip->insn_opcode |= imm_expr.X_add_number;
@@ -8140,9 +8140,9 @@ mips_ip (str, ip)
case 'J': /* 19-bit wait code. */
my_getExpression (&imm_expr, s);
check_absolute_expr (ip, &imm_expr);
- if ((unsigned) imm_expr.X_add_number > OP_MASK_CODE19)
- as_warn (_("Illegal 19-bit code (%ld)"),
- (long) imm_expr.X_add_number);
+ if ((unsigned long) imm_expr.X_add_number > OP_MASK_CODE19)
+ as_warn (_("Illegal 19-bit code (%lu)"),
+ (unsigned long) imm_expr.X_add_number);
ip->insn_opcode |= imm_expr.X_add_number << OP_SH_CODE19;
imm_expr.X_op = O_absent;
s = expr_end;
@@ -8153,8 +8153,8 @@ mips_ip (str, ip)
check_absolute_expr (ip, &imm_expr);
if (imm_expr.X_add_number != 0 && imm_expr.X_add_number != 1)
{
- as_warn (_("Invalid performance register (%ld)"),
- (long) imm_expr.X_add_number);
+ as_warn (_("Invalid performance register (%lu)"),
+ (unsigned long) imm_expr.X_add_number);
imm_expr.X_add_number &= OP_MASK_PERFREG;
}
ip->insn_opcode |= (imm_expr.X_add_number << OP_SH_PERFREG);