This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Ping: [RFA]: New port: Epiphany
Quoting Alan Modra <amodra@gmail.com>:
OK.
Thanks. Checked in.
The following need attention. Seen when building on a 32-bit
host with --enable-64-bit-bfd.
2011-10-26 Joern Rennecke <joern.rennecke@embecosm.com>
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.
Index: cpu/epiphany.opc
===================================================================
RCS file: /cvs/src/src/cpu/epiphany.opc,v
retrieving revision 1.1
diff -p -u -r1.1 epiphany.opc
--- cpu/epiphany.opc 25 Oct 2011 11:18:05 -0000 1.1
+++ cpu/epiphany.opc 26 Oct 2011 11:53:28 -0000
@@ -78,7 +78,7 @@ extern const char * parse_branch_addr (C
int opindex,
int opinfo,
enum cgen_parse_operand_result * resultp,
- unsigned long * valuep);
+ bfd_vma *valuep);
/* Allows reason codes to be output when assembler errors occur. */
#define CGEN_VERBOSE_ASSEMBLER_ERRORS
@@ -172,7 +172,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. */
@@ -288,7 +288,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;
@@ -320,7 +320,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);
}