cris-dist 1.63 V32

The cris-dist-1.63-v32 is the compiler for the ETRAX FS chip which has the CRIS v32 core. When compiling this compiler with newer gcc it is likely that you encounter the following error:

/usr/src/cris-dist-1.63-v32/./binutils/opcodes/cris-dis.c: In function 'format_reg':
/usr/src/cris-dist-1.63-v32/./binutils/opcodes/cris-dis.c:488: error: argument 'with_reg_prefix' doesn't match prototype

To fix this apply the patch below by running:

patch -p0 -d /path/to/cris-dist-1.63-v32/binutils/opcodes < /path/to/the/patch/below
Index: cris-dis.c
RCS file: /usr/local/cvs/comptools-cris/binutils/opcodes/cris-dis.c,v
retrieving revision
diff -u -p -r1.25.2.8 cris-dis.c
--- cris-dis.c	20 Mar 2003 13:21:34 -0000
+++ cris-dis.c	19 Apr 2006 09:12:38 -0000
@@ -97,9 +97,9 @@ static char *format_hex
   PARAMS ((unsigned long, char *, struct cris_disasm_data *));
 static char *format_dec PARAMS ((long, char *, int));
 static char *format_reg
-   PARAMS ((struct cris_disasm_data *, int, char *, enum cris_disass_family));
+   PARAMS ((struct cris_disasm_data *, int, char *, boolean));
 static char *format_sup_reg
-   PARAMS ((unsigned int, char *, enum cris_disass_family));
+   PARAMS ((unsigned int, char *, boolean));
 static int cris_constraint
   PARAMS ((const char *, unsigned int, unsigned int,
 	   struct cris_disasm_data *));
@@ -111,7 +111,7 @@ static char *print_flags
 static void print_with_operands
   PARAMS ((const struct cris_opcode *, unsigned int, unsigned char *,
 	   bfd_vma, disassemble_info *, const struct cris_opcode *,
-	   unsigned int, unsigned char *, enum cris_disass_family));
+	   unsigned int, unsigned char *, boolean));
 static const struct cris_spec_reg *spec_reg_info
   PARAMS ((unsigned int, enum cris_disass_family));
 static int print_insn_cris_generic
cris-dist-1_63-v32.txt · Last modified: 2007/03/12 13:44 by jesper
All text is available under the terms of the GNU Free Documentation License (see Copyrights for details).