summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-02-11 16:09:30 +0000
committerNick Clifton <nickc@redhat.com>2005-02-11 16:09:30 +0000
commit12e66f53956847c780567b236e7ca7ad28bd240e (patch)
treecbfacfd0a11f26865a855f72568e520424b5f2e2
parent181da388b0b61b32aebdbfa3d04b994197155be9 (diff)
downloadbinutils-redhat-12e66f53956847c780567b236e7ca7ad28bd240e.tar.gz
Fix compile time warning building iq2000-asm.c
-rw-r--r--cpu/ChangeLog5
-rw-r--r--cpu/iq2000.opc4
-rw-r--r--opcodes/ChangeLog2
-rw-r--r--opcodes/iq2000-asm.c6
4 files changed, 12 insertions, 5 deletions
diff --git a/cpu/ChangeLog b/cpu/ChangeLog
index b954059a18..868fc99587 100644
--- a/cpu/ChangeLog
+++ b/cpu/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-11 Nick Clifton <nickc@redhat.com>
+
+ * iq2000.opc (parse_jtargq10): Change type of valuep argument to
+ 'bfd_vma *' in order avoid compile time warning message.
+
2005-01-28 Hans-Peter Nilsson <hp@axis.com>
* cris.cpu (mstep): Add missing insn.
diff --git a/cpu/iq2000.opc b/cpu/iq2000.opc
index 3b7620f328..a6f8bbef81 100644
--- a/cpu/iq2000.opc
+++ b/cpu/iq2000.opc
@@ -172,7 +172,7 @@ parse_jtargq10 (cd, strp, opindex, reloc, type_addr, valuep)
int opindex;
int reloc;
enum cgen_parse_operand_result *type_addr;
- unsigned long *valuep;
+ bfd_vma *valuep;
{
const char *errmsg;
bfd_vma value;
@@ -182,7 +182,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");
}
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index be892024db..983c47e489 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,5 +1,7 @@
2005-02-11 Nick Clifton <nickc@redhat.com>
+ * iq2000-asm.c: Regenerate.
+
* frv-dis.c: Regenerate.
2005-02-07 Jim Blandy <jimb@redhat.com>
diff --git a/opcodes/iq2000-asm.c b/opcodes/iq2000-asm.c
index 3db5d90d10..8bd4786129 100644
--- a/opcodes/iq2000-asm.c
+++ b/opcodes/iq2000-asm.c
@@ -52,7 +52,7 @@ static const char * parse_insn_normal
#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 *));
@@ -169,7 +169,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;
@@ -179,7 +179,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");
}