summaryrefslogtreecommitdiff
path: root/opcodes/epiphany-asm.c
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@arc.com>2011-10-26 12:46:03 +0000
committerJoern Rennecke <joern.rennecke@arc.com>2011-10-26 12:46:03 +0000
commit406eeaf348fc30f70ecb46c87c61e23a5729eaac (patch)
tree8c32b8f6a71e011ff1e9d8779a2271f74a2d42b8 /opcodes/epiphany-asm.c
parent7b774e649a0c511b81a8072a132c61f421db61f7 (diff)
downloadbinutils-redhat-406eeaf348fc30f70ecb46c87c61e23a5729eaac.tar.gz
cpu:
* epiphany.opc (parse_branch_addr): Fix type of valuep. Cast value before printing it as a long. (parse_postindex): Fix type of valuep. opcodes: * epiphany-asm.c, epiphany-opc.h: Regenerate.
Diffstat (limited to 'opcodes/epiphany-asm.c')
-rw-r--r--opcodes/epiphany-asm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/epiphany-asm.c b/opcodes/epiphany-asm.c
index 31ceb3e542..4eb7e54f5b 100644
--- a/opcodes/epiphany-asm.c
+++ b/opcodes/epiphany-asm.c
@@ -133,7 +133,7 @@ static const char *
parse_postindex (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
const char ** strp,
int opindex ATTRIBUTE_UNUSED,
- bfd_vma * valuep)
+ unsigned long *valuep)
{
if (**strp == '#')
++*strp; /* Skip leading hashes. */
@@ -249,7 +249,7 @@ parse_branch_addr (CGEN_CPU_DESC cd,
int opindex,
int opinfo ATTRIBUTE_UNUSED,
enum cgen_parse_operand_result * resultp ATTRIBUTE_UNUSED,
- unsigned long * valuep ATTRIBUTE_UNUSED)
+ bfd_vma *valuep ATTRIBUTE_UNUSED)
{
const char * errmsg;
enum cgen_parse_operand_result result_type;
@@ -281,7 +281,7 @@ parse_branch_addr (CGEN_CPU_DESC cd,
char buf[20];
const char * bufp = (const char *) buf;
- sprintf (buf, ".+%ld", value);
+ sprintf (buf, ".+%ld", (long) value);
errmsg = cgen_parse_address (cd, &bufp, opindex, code, &result_type,
&value);
}