From dc4c54bbd941f793740f49afdec3c70bb0a84ece Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Sat, 15 May 2004 13:10:30 +0000 Subject: [PATCH] Make 'insn' argument of iq2000_cgen_insn_supported be const. --- cpu/ChangeLog | 4 ++++ cpu/iq2000.opc | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cpu/ChangeLog b/cpu/ChangeLog index d8eaa9ec36d..3ef3440fc81 100644 --- a/cpu/ChangeLog +++ b/cpu/ChangeLog @@ -1,3 +1,7 @@ +2004-05-15 Nick Clifton + + * iq2000.opc (iq2000_cgen_insn_supported): Make 'insn' argument const. + 2004-03-30 Kazuhiro Inaoka * m32r.opc (parse_hi16): Fixed shigh(0xffff8000) bug. diff --git a/cpu/iq2000.opc b/cpu/iq2000.opc index 06600ec7938..3b7620f328b 100644 --- a/cpu/iq2000.opc +++ b/cpu/iq2000.opc @@ -52,7 +52,7 @@ instructions have same mnemonics but different functionality. */ #define CGEN_VALIDATE_INSN_SUPPORTED -extern int iq2000_cgen_insn_supported (CGEN_CPU_DESC cd, CGEN_INSN *insn); +extern int iq2000_cgen_insn_supported (CGEN_CPU_DESC cd, const CGEN_INSN *insn); /* -- asm.c */ static const char * parse_mimm PARAMS ((CGEN_CPU_DESC, const char **, int, long *)); @@ -60,11 +60,11 @@ static const char * parse_imm PARAMS ((CGEN_CPU_DESC, const char **, int, unsig static const char * parse_hi16 PARAMS ((CGEN_CPU_DESC, const char **, int, unsigned long *)); static const char * parse_lo16 PARAMS ((CGEN_CPU_DESC, const char **, int, long *)); -/* Special check to ensure that instruction exists for given machine */ +/* Special check to ensure that instruction exists for given machine. */ int iq2000_cgen_insn_supported (cd, insn) CGEN_CPU_DESC cd; - CGEN_INSN *insn; + const CGEN_INSN *insn; { int machs = cd->machs; -- 2.30.2