From af2dd5b59082c0c7025cea0148ba7c35a1ccd331 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 11 Feb 2005 16:09:29 +0000 Subject: [PATCH] Fix compile time warning building iq2000-asm.c --- ChangeLog | 5 +++++ cpu/iq2000.opc | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2c02aeb..88b6920 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-02-11 Nick Clifton + + * cpu/iq2000.opc (parse_jtargq10): Change type of valuep argument + to 'bfd_vma *' in order avoid compile time warning message. + 2005-02-09 Jim Blandy * cgen-sim.scm (load-files): Don't load fixup.scm. (See diff --git a/cpu/iq2000.opc b/cpu/iq2000.opc index b82a2c8..b4fc88c 100644 --- a/cpu/iq2000.opc +++ b/cpu/iq2000.opc @@ -39,7 +39,7 @@ extern int iq2000_cgen_insn_supported (CGEN_CPU_DESC cd, const CGEN_INSN *insn); #include "safe-ctype.h" static int iq2000_cgen_isa_register PARAMS ((const char **)); -static const char * parse_jtargq10 PARAMS ((CGEN_CPU_DESC, const char **, int, int, enum cgen_parse_operand_result *, unsigned long *)); +static const char * parse_jtargq10 PARAMS ((CGEN_CPU_DESC, const char **, int, int, enum cgen_parse_operand_result *, bfd_vma *)); static const char * parse_mimm PARAMS ((CGEN_CPU_DESC, const char **, int, long *)); static const char * parse_imm PARAMS ((CGEN_CPU_DESC, const char **, int, unsigned long *)); static const char * parse_hi16 PARAMS ((CGEN_CPU_DESC, const char **, int, unsigned long *)); @@ -156,7 +156,7 @@ parse_jtargq10 (cd, strp, opindex, reloc, type_addr, valuep) int opindex; int reloc ATTRIBUTE_UNUSED; enum cgen_parse_operand_result *type_addr ATTRIBUTE_UNUSED; - unsigned long *valuep; + bfd_vma *valuep; { const char *errmsg; bfd_vma value; @@ -166,7 +166,7 @@ parse_jtargq10 (cd, strp, opindex, reloc, type_addr, valuep) &result_type, &value); if (errmsg == NULL && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) { - /* check value is within 23-bits (remembering that 2-bit shift right will occur) */ + /* Check value is within 23-bits (remembering that 2-bit shift right will occur). */ if (value > 0x7fffff) return _("21-bit offset out of range"); } -- 2.43.5