* config/tc-mips.c (macro) [M_DINS, M_SEQ_I, M_SNE_I]: Cast

arguments to macro_build to match format.
This commit is contained in:
Andreas Schwab 2009-01-23 14:56:38 +00:00
parent 199114c25d
commit 750bdd572d
2 changed files with 15 additions and 12 deletions

View file

@ -1,5 +1,8 @@
2009-01-23 Andreas Schwab <schwab@suse.de>
* config/tc-mips.c (macro) [M_DINS, M_SEQ_I, M_SNE_I]: Cast
arguments to macro_build to match format.
* config/obj-elf.h (LOCAL_LABEL_PREFIX): Conditionally define.
* config/tc-s390.h (LOCAL_LABEL_PREFIX): Don't define.

View file

@ -5241,8 +5241,8 @@ macro (struct mips_cl_insn *ip)
s = "dinsm";
fmt = "t,r,+A,+F";
}
macro_build ((expressionS *) NULL, s, fmt, treg, sreg, pos,
pos + size - 1);
macro_build ((expressionS *) NULL, s, fmt, treg, sreg, (int) pos,
(int) (pos + size - 1));
}
break;
@ -7637,7 +7637,7 @@ macro2 (struct mips_cl_insn *ip)
&& imm_expr.X_add_number < 512)
{
macro_build (NULL, "seqi", "t,r,+Q", dreg, sreg,
imm_expr.X_add_number);
(int) imm_expr.X_add_number);
break;
}
if (imm_expr.X_op == O_constant
@ -7799,7 +7799,7 @@ macro2 (struct mips_cl_insn *ip)
&& imm_expr.X_add_number < 512)
{
macro_build (NULL, "snei", "t,r,+Q", dreg, sreg,
imm_expr.X_add_number);
(int) imm_expr.X_add_number);
break;
}
if (imm_expr.X_op == O_constant