From 750bdd572d62dde1688ba1f42d380e33c0577212 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 23 Jan 2009 14:56:38 +0000 Subject: [PATCH] * config/tc-mips.c (macro) [M_DINS, M_SEQ_I, M_SNE_I]: Cast arguments to macro_build to match format. --- gas/ChangeLog | 19 +++++++++++-------- gas/config/tc-mips.c | 8 ++++---- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index e9b4dba79c..9b0ade4cd8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ 2009-01-23 Andreas Schwab + * 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. @@ -93,10 +96,10 @@ * config/tc-ppc.h: Likewise. * config/tc-frv.h: Provide a prototype for frv_md_number_to_chars. * config/te-vms.h (DWARF2_DIR_SHOULD_END_WITH_SEPARATOR, - DWAR2_FILE_TIME_NAME, DWARF2_FILE_SIZE_NAME, DWARF2_FILEN_NAME): - New file with new macros - * dwarf2dbg.c (get_filenum, out_file_list): Default and call new - macros. + DWAR2_FILE_TIME_NAME, DWARF2_FILE_SIZE_NAME, DWARF2_FILEN_NAME): + New file with new macros + * dwarf2dbg.c (get_filenum, out_file_list): Default and call new + macros. 2009-01-15 Nick Clifton @@ -105,7 +108,7 @@ instructions before generating a Thumb2 nop. 2009-01-14 Andreas Krebbel - + * config/tc-s390.h: Define LOCAL_LABEL_PREFIX. 2009-01-12 Alan Modra @@ -172,10 +175,10 @@ * config/tc-i386.c (build_modrm_byte): Remove 5 operand instruction support. Don't swap REG and NDS for FMA. -2009-01-02 Matthias Klose +2009-01-02 Matthias Klose - * itbl-ops.c (itbl_disassemble): Don't rely on undefined sprintf - behaviour. + * itbl-ops.c (itbl_disassemble): Don't rely on undefined sprintf + behaviour. For older changes see ChangeLog-2008 diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index bc6248672d..dd97c63156 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -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