diff options
author | Nick Clifton <nickc@redhat.com> | 2001-09-20 15:28:25 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-09-20 15:28:25 +0000 |
commit | fc05c67f12f75f93a4678cbcd8f1ab8c44beae23 (patch) | |
tree | 66d4ea8b7f69fdd8a4337a9a47f57dfaa2dfc1a6 /opcodes/openrisc-asm.c | |
parent | 16a419ba0165bc117f5408ed96a1d278e31b42a6 (diff) | |
download | gdb-fc05c67f12f75f93a4678cbcd8f1ab8c44beae23.zip gdb-fc05c67f12f75f93a4678cbcd8f1ab8c44beae23.tar.gz gdb-fc05c67f12f75f93a4678cbcd8f1ab8c44beae23.tar.bz2 |
Fix compile time warnings
Diffstat (limited to 'opcodes/openrisc-asm.c')
-rw-r--r-- | opcodes/openrisc-asm.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/opcodes/openrisc-asm.c b/opcodes/openrisc-asm.c index 5dc75a8..93e21f0 100644 --- a/opcodes/openrisc-asm.c +++ b/opcodes/openrisc-asm.c @@ -35,6 +35,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., #include "openrisc-opc.h" #include "opintl.h" #include "xregex.h" +#include "libiberty.h" #undef min #define min(a,b) ((a) < (b) ? (a) : (b)) @@ -43,6 +44,14 @@ along with this program; if not, write to the Free Software Foundation, Inc., static const char * parse_insn_normal PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *, const char **, CGEN_FIELDS *)); +long openrisc_sign_extend_16bit + PARAMS ((long)); +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, unsigned long *)); +const char * openrisc_cgen_parse_operand + PARAMS ((CGEN_CPU_DESC, int, const char **, CGEN_FIELDS *)); /* -- assembler routines inserted here */ @@ -181,7 +190,7 @@ openrisc_cgen_parse_operand (cd, opindex, strp, fields) { const char * errmsg = NULL; /* Used by scalar operands that still need to be parsed. */ - long junk; + long junk ATTRIBUTE_UNUSED; switch (opindex) { @@ -276,7 +285,7 @@ char * openrisc_cgen_build_insn_regex (insn) CGEN_INSN *insn; { - CGEN_OPCODE *opc = CGEN_INSN_OPCODE (insn); + CGEN_OPCODE *opc = (CGEN_OPCODE *) CGEN_INSN_OPCODE (insn); const char *mnem = CGEN_INSN_MNEMONIC (insn); int mnem_len; char rxbuf[CGEN_MAX_RX_ELEMENTS]; |