Fix compile time warning messages

This commit is contained in:
Nick Clifton 2001-09-19 17:40:28 +00:00
parent 38131e6744
commit d5b2f4d67c
10 changed files with 117 additions and 59 deletions

View file

@ -1,3 +1,15 @@
2001-09-19 Nick Clifton <nickc@cambridge.redhat.com>
* arm-dis.c: Fix compile time warning messages.
* cgen-asm.c: Fix compile time warning messages.
* cgen-dis.c: Fix compile time warning messages.
* cris-dis.c: Fix compile time warning messages.
* d10v-dis.c: Fix compile time warning messages.
* fr30-asm.c: Fix compile time warning messages.
* fr30-desc.c: Fix compile time warning messages.
* fr30-dis.c: Fix compile time warning messages.
* fr30-ibld.c: Fix compile time warning messages.
2001-09-18 Bruno Haible <haible@clisp.cons.org> 2001-09-18 Bruno Haible <haible@clisp.cons.org>
* cgen-asm.c: Include "safe-ctype.h" instead of <ctype.h>. * cgen-asm.c: Include "safe-ctype.h" instead of <ctype.h>.

View file

@ -1105,7 +1105,7 @@ the -M switch:\n"));
for (i = NUM_ARM_REGNAMES; i--;) for (i = NUM_ARM_REGNAMES; i--;)
fprintf (stream, " reg-names-%s %*c%s\n", fprintf (stream, " reg-names-%s %*c%s\n",
regnames[i].name, regnames[i].name,
14 - strlen (regnames[i].name), ' ', (int)(14 - strlen (regnames[i].name)), ' ',
regnames[i].description); regnames[i].description);
fprintf (stream, " force-thumb Assume all insns are Thumb insns\n"); fprintf (stream, " force-thumb Assume all insns are Thumb insns\n");

View file

@ -28,6 +28,10 @@
#include "opcode/cgen.h" #include "opcode/cgen.h"
#include "opintl.h" #include "opintl.h"
static CGEN_INSN_LIST * hash_insn_array PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *, int, int, CGEN_INSN_LIST **, CGEN_INSN_LIST *));
static CGEN_INSN_LIST * hash_insn_list PARAMS ((CGEN_CPU_DESC, const CGEN_INSN_LIST *, CGEN_INSN_LIST **, CGEN_INSN_LIST *));
static void build_asm_hash_table PARAMS ((CGEN_CPU_DESC));
/* Set the cgen_parse_operand_fn callback. */ /* Set the cgen_parse_operand_fn callback. */
void void

View file

@ -27,6 +27,10 @@
#include "symcat.h" #include "symcat.h"
#include "opcode/cgen.h" #include "opcode/cgen.h"
static CGEN_INSN_LIST * hash_insn_array PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *, int, int, CGEN_INSN_LIST **, CGEN_INSN_LIST *));
static CGEN_INSN_LIST * hash_insn_list PARAMS ((CGEN_CPU_DESC, const CGEN_INSN_LIST *, CGEN_INSN_LIST **, CGEN_INSN_LIST *));
static void build_dis_hash_table PARAMS ((CGEN_CPU_DESC));
/* Subroutine of build_dis_hash_table to add INSNS to the hash table. /* Subroutine of build_dis_hash_table to add INSNS to the hash table.
COUNT is the number of elements in INSNS. COUNT is the number of elements in INSNS.

View file

@ -1197,7 +1197,7 @@ print_insn_cris_generic (memaddr, info, with_reg_prefix)
bytes; stacked prefixes will not be expanded. */ bytes; stacked prefixes will not be expanded. */
unsigned char buffer[MAX_BYTES_PER_CRIS_INSN]; unsigned char buffer[MAX_BYTES_PER_CRIS_INSN];
unsigned char *bufp; unsigned char *bufp;
int status; int status = 0;
bfd_vma addr; bfd_vma addr;
/* There will be an "out of range" error after the last instruction. /* There will be an "out of range" error after the last instruction.

View file

@ -202,7 +202,7 @@ dis_long (insn, memaddr, info)
while (op->name) while (op->name)
{ {
if ((op->format & LONG_OPCODE) && ((op->mask & insn) == op->opcode)) if ((op->format & LONG_OPCODE) && ((op->mask & insn) == (unsigned long) op->opcode))
{ {
match = 1; match = 1;
(*info->fprintf_func) (info->stream, "%s\t", op->name); (*info->fprintf_func) (info->stream, "%s\t", op->name);
@ -253,7 +253,7 @@ dis_2_short (insn, memaddr, info, order)
while (op->name) while (op->name)
{ {
if ((op->format & SHORT_OPCODE) if ((op->format & SHORT_OPCODE)
&& ((op->mask & ins[j]) == op->opcode)) && ((op->mask & ins[j]) == (unsigned long) op->opcode))
{ {
(*info->fprintf_func) (info->stream, "%s\t", op->name); (*info->fprintf_func) (info->stream, "%s\t", op->name);
for (i = 0; op->operands[i]; i++) for (i = 0; op->operands[i]; i++)

View file

@ -35,14 +35,21 @@ along with this program; if not, write to the Free Software Foundation, Inc.,
#include "fr30-opc.h" #include "fr30-opc.h"
#include "opintl.h" #include "opintl.h"
#include "xregex.h" #include "xregex.h"
#include "libiberty.h"
#undef min #undef min
#define min(a,b) ((a) < (b) ? (a) : (b)) #define min(a,b) ((a) < (b) ? (a) : (b))
#undef max #undef max
#define max(a,b) ((a) > (b) ? (a) : (b)) #define max(a,b) ((a) > (b) ? (a) : (b))
static const char * parse_insn_normal static const char * parse_insn_normal PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *, const char **, CGEN_FIELDS *));
PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *, const char **, CGEN_FIELDS *)); static int parse_register_number PARAMS ((const char **));
static const char * parse_register_list PARAMS ((CGEN_CPU_DESC, const char **, int, unsigned long *, int, int));
static const char * parse_low_register_list_ld PARAMS ((CGEN_CPU_DESC, const char **, int, unsigned long *));
static const char * parse_hi_register_list_ld PARAMS ((CGEN_CPU_DESC, const char **, int, unsigned long *));
static const char * parse_low_register_list_st PARAMS ((CGEN_CPU_DESC, const char **, int, unsigned long *));
static const char * parse_hi_register_list_st PARAMS ((CGEN_CPU_DESC, const char **, int, unsigned long *));
const char * fr30_cgen_parse_operand PARAMS ((CGEN_CPU_DESC, int, const char **, CGEN_FIELDS *));
/* -- assembler routines inserted here */ /* -- assembler routines inserted here */
@ -70,9 +77,9 @@ parse_register_number (strp)
static const char * static const char *
parse_register_list (cd, strp, opindex, valuep, high_low, load_store) parse_register_list (cd, strp, opindex, valuep, high_low, load_store)
CGEN_CPU_DESC cd; CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
const char **strp; const char **strp;
int opindex; int opindex ATTRIBUTE_UNUSED;
unsigned long *valuep; unsigned long *valuep;
int high_low; /* 0 == high, 1 == low */ int high_low; /* 0 == high, 1 == low */
int load_store; /* 0 == load, 1 == store */ int load_store; /* 0 == load, 1 == store */
@ -168,8 +175,7 @@ parse_hi_register_list_st (cd, strp, opindex, valuep)
This function could be moved into `parse_insn_normal', but keeping it This function could be moved into `parse_insn_normal', but keeping it
separate makes clear the interface between `parse_insn_normal' and each of separate makes clear the interface between `parse_insn_normal' and each of
the handlers. the handlers. */
*/
const char * const char *
fr30_cgen_parse_operand (cd, opindex, strp, fields) fr30_cgen_parse_operand (cd, opindex, strp, fields)
@ -344,7 +350,7 @@ char *
fr30_cgen_build_insn_regex (insn) fr30_cgen_build_insn_regex (insn)
CGEN_INSN *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); const char *mnem = CGEN_INSN_MNEMONIC (insn);
int mnem_len; int mnem_len;
char rxbuf[CGEN_MAX_RX_ELEMENTS]; char rxbuf[CGEN_MAX_RX_ELEMENTS];

View file

@ -33,6 +33,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "opintl.h" #include "opintl.h"
#include "libiberty.h" #include "libiberty.h"
static void init_tables PARAMS ((void));
static const CGEN_MACH * lookup_mach_via_bfd_name PARAMS ((const CGEN_MACH *, const char *));
static void build_hw_table PARAMS ((CGEN_CPU_TABLE *));
static void build_ifield_table PARAMS ((CGEN_CPU_TABLE *));
static void build_operand_table PARAMS ((CGEN_CPU_TABLE *));
static void build_insn_table PARAMS ((CGEN_CPU_TABLE *));
static void fr30_cgen_rebuild_tables PARAMS ((CGEN_CPU_TABLE *));
/* Attributes. */ /* Attributes. */
static const CGEN_ATTR_ENTRY bool_attr[] = static const CGEN_ATTR_ENTRY bool_attr[] =

View file

@ -38,19 +38,20 @@ along with this program; if not, write to the Free Software Foundation, Inc.,
/* Default text to print if an instruction isn't recognized. */ /* Default text to print if an instruction isn't recognized. */
#define UNKNOWN_INSN_MSG _("*unknown*") #define UNKNOWN_INSN_MSG _("*unknown*")
static void print_normal static void print_normal PARAMS ((CGEN_CPU_DESC, PTR, long, unsigned, bfd_vma, int));
PARAMS ((CGEN_CPU_DESC, PTR, long, unsigned int, bfd_vma, int)); static void print_address PARAMS ((CGEN_CPU_DESC, PTR, bfd_vma, unsigned, bfd_vma, int));
static void print_address static void print_keyword PARAMS ((CGEN_CPU_DESC, PTR, CGEN_KEYWORD *, long, unsigned));
PARAMS ((CGEN_CPU_DESC, PTR, bfd_vma, unsigned int, bfd_vma, int)); static void print_insn_normal PARAMS ((CGEN_CPU_DESC, PTR, const CGEN_INSN *, CGEN_FIELDS *, bfd_vma, int));
static void print_keyword static int print_insn PARAMS ((CGEN_CPU_DESC, bfd_vma, disassemble_info *, char *, int));
PARAMS ((CGEN_CPU_DESC, PTR, CGEN_KEYWORD *, long, unsigned int)); static int default_print_insn PARAMS ((CGEN_CPU_DESC, bfd_vma, disassemble_info *));
static void print_insn_normal static void print_register_list PARAMS ((PTR, long, long, int));
PARAMS ((CGEN_CPU_DESC, PTR, const CGEN_INSN *, CGEN_FIELDS *, static void print_hi_register_list_ld PARAMS ((CGEN_CPU_DESC, PTR, long, unsigned, bfd_vma, int));
bfd_vma, int)); static void print_low_register_list_ld PARAMS ((CGEN_CPU_DESC, PTR, long, unsigned, bfd_vma, int));
static int print_insn PARAMS ((CGEN_CPU_DESC, bfd_vma, static void print_hi_register_list_st PARAMS ((CGEN_CPU_DESC, PTR, long, unsigned, bfd_vma, int));
disassemble_info *, char *, int)); static void print_low_register_list_st PARAMS ((CGEN_CPU_DESC, PTR, long, unsigned, bfd_vma, int));
static int default_print_insn static void print_m4 PARAMS ((CGEN_CPU_DESC, PTR, long, unsigned, bfd_vma, int));
PARAMS ((CGEN_CPU_DESC, bfd_vma, disassemble_info *)); void fr30_cgen_print_operand PARAMS ((CGEN_CPU_DESC, int, PTR, CGEN_FIELDS *, void const *, bfd_vma, int));
static int read_insn PARAMS ((CGEN_CPU_DESC, bfd_vma, disassemble_info *, char *, int, CGEN_EXTRACT_INFO *, unsigned long *));
/* -- disassembler routines inserted here */ /* -- disassembler routines inserted here */
@ -96,60 +97,60 @@ print_register_list (dis_info, value, offset, load_store)
static void static void
print_hi_register_list_ld (cd, dis_info, value, attrs, pc, length) print_hi_register_list_ld (cd, dis_info, value, attrs, pc, length)
CGEN_CPU_DESC cd; CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
PTR dis_info; PTR dis_info;
long value; long value;
unsigned int attrs; unsigned int attrs ATTRIBUTE_UNUSED;
bfd_vma pc; bfd_vma pc ATTRIBUTE_UNUSED;
int length; int length ATTRIBUTE_UNUSED;
{ {
print_register_list (dis_info, value, 8, 0/*load*/); print_register_list (dis_info, value, 8, 0/*load*/);
} }
static void static void
print_low_register_list_ld (cd, dis_info, value, attrs, pc, length) print_low_register_list_ld (cd, dis_info, value, attrs, pc, length)
CGEN_CPU_DESC cd; CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
PTR dis_info; PTR dis_info;
long value; long value;
unsigned int attrs; unsigned int attrs ATTRIBUTE_UNUSED;
bfd_vma pc; bfd_vma pc ATTRIBUTE_UNUSED;
int length; int length ATTRIBUTE_UNUSED;
{ {
print_register_list (dis_info, value, 0, 0/*load*/); print_register_list (dis_info, value, 0, 0/*load*/);
} }
static void static void
print_hi_register_list_st (cd, dis_info, value, attrs, pc, length) print_hi_register_list_st (cd, dis_info, value, attrs, pc, length)
CGEN_CPU_DESC cd; CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
PTR dis_info; PTR dis_info;
long value; long value;
unsigned int attrs; unsigned int attrs ATTRIBUTE_UNUSED;
bfd_vma pc; bfd_vma pc ATTRIBUTE_UNUSED;
int length; int length ATTRIBUTE_UNUSED;
{ {
print_register_list (dis_info, value, 8, 1/*store*/); print_register_list (dis_info, value, 8, 1/*store*/);
} }
static void static void
print_low_register_list_st (cd, dis_info, value, attrs, pc, length) print_low_register_list_st (cd, dis_info, value, attrs, pc, length)
CGEN_CPU_DESC cd; CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
PTR dis_info; PTR dis_info;
long value; long value;
unsigned int attrs; unsigned int attrs ATTRIBUTE_UNUSED;
bfd_vma pc; bfd_vma pc ATTRIBUTE_UNUSED;
int length; int length ATTRIBUTE_UNUSED;
{ {
print_register_list (dis_info, value, 0, 1/*store*/); print_register_list (dis_info, value, 0, 1/*store*/);
} }
static void static void
print_m4 (cd, dis_info, value, attrs, pc, length) print_m4 (cd, dis_info, value, attrs, pc, length)
CGEN_CPU_DESC cd; CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
PTR dis_info; PTR dis_info;
long value; long value;
unsigned int attrs; unsigned int attrs ATTRIBUTE_UNUSED;
bfd_vma pc; bfd_vma pc ATTRIBUTE_UNUSED;
int length; int length ATTRIBUTE_UNUSED;
{ {
disassemble_info *info = (disassemble_info *) dis_info; disassemble_info *info = (disassemble_info *) dis_info;
(*info->fprintf_func) (info->stream, "%ld", value); (*info->fprintf_func) (info->stream, "%ld", value);
@ -178,7 +179,7 @@ fr30_cgen_print_operand (cd, opindex, xinfo, fields, attrs, pc, length)
int opindex; int opindex;
PTR xinfo; PTR xinfo;
CGEN_FIELDS *fields; CGEN_FIELDS *fields;
void const *attrs; void const *attrs ATTRIBUTE_UNUSED;
bfd_vma pc; bfd_vma pc;
int length; int length;
{ {
@ -458,7 +459,7 @@ print_insn_normal (cd, dis_info, insn, fields, pc, length)
Returns 0 if all is well, non-zero otherwise. */ Returns 0 if all is well, non-zero otherwise. */
static int static int
read_insn (cd, pc, info, buf, buflen, ex_info, insn_value) read_insn (cd, pc, info, buf, buflen, ex_info, insn_value)
CGEN_CPU_DESC cd; CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
bfd_vma pc; bfd_vma pc;
disassemble_info *info; disassemble_info *info;
char *buf; char *buf;
@ -537,7 +538,7 @@ print_insn (cd, pc, info, buf, buflen)
/* Base size may exceed this instruction's size. Extract the /* Base size may exceed this instruction's size. Extract the
relevant part from the buffer. */ relevant part from the buffer. */
if ((CGEN_INSN_BITSIZE (insn) / 8) < buflen && if ((CGEN_INSN_BITSIZE (insn) / 8) < buflen &&
(CGEN_INSN_BITSIZE (insn) / 8) <= sizeof (unsigned long)) (unsigned) (CGEN_INSN_BITSIZE (insn) / 8) <= sizeof (unsigned long))
insn_value_cropped = bfd_get_bits (buf, CGEN_INSN_BITSIZE (insn), insn_value_cropped = bfd_get_bits (buf, CGEN_INSN_BITSIZE (insn),
info->endian == BFD_ENDIAN_BIG); info->endian == BFD_ENDIAN_BIG);
else else
@ -552,8 +553,8 @@ print_insn (cd, pc, info, buf, buflen)
/* Make sure the entire insn is loaded into insn_value, if it /* Make sure the entire insn is loaded into insn_value, if it
can fit. */ can fit. */
if (CGEN_INSN_BITSIZE (insn) > cd->base_insn_bitsize && if ((unsigned) CGEN_INSN_BITSIZE (insn) > cd->base_insn_bitsize &&
(CGEN_INSN_BITSIZE (insn) / 8) <= sizeof (unsigned long)) (unsigned) (CGEN_INSN_BITSIZE (insn) / 8) <= sizeof (unsigned long))
{ {
unsigned long full_insn_value; unsigned long full_insn_value;
int rc = read_insn (cd, pc, info, buf, int rc = read_insn (cd, pc, info, buf,

View file

@ -48,7 +48,6 @@ static const char * insert_normal
static const char * insert_insn_normal static const char * insert_insn_normal
PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *, PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *,
CGEN_FIELDS *, CGEN_INSN_BYTES_PTR, bfd_vma)); CGEN_FIELDS *, CGEN_INSN_BYTES_PTR, bfd_vma));
static int extract_normal static int extract_normal
PARAMS ((CGEN_CPU_DESC, CGEN_EXTRACT_INFO *, CGEN_INSN_INT, PARAMS ((CGEN_CPU_DESC, CGEN_EXTRACT_INFO *, CGEN_INSN_INT,
unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int,
@ -56,8 +55,30 @@ static int extract_normal
static int extract_insn_normal static int extract_insn_normal
PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *, CGEN_EXTRACT_INFO *, PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *, CGEN_EXTRACT_INFO *,
CGEN_INSN_INT, CGEN_FIELDS *, bfd_vma)); CGEN_INSN_INT, CGEN_FIELDS *, bfd_vma));
#if CGEN_INT_INSN_P
static void put_insn_int_value static void put_insn_int_value
PARAMS ((CGEN_CPU_DESC, CGEN_INSN_BYTES_PTR, int, int, CGEN_INSN_INT)); PARAMS ((CGEN_CPU_DESC, CGEN_INSN_BYTES_PTR, int, int, CGEN_INSN_INT));
#endif
static CGEN_INLINE int fill_cache
PARAMS ((CGEN_CPU_DESC, CGEN_EXTRACT_INFO *, int, int, bfd_vma));
static CGEN_INLINE long extract_1
PARAMS ((CGEN_CPU_DESC, CGEN_EXTRACT_INFO *, int, int, int, unsigned char *,
bfd_vma));
static CGEN_INLINE void insert_1
PARAMS ((CGEN_CPU_DESC, unsigned long, int, int, int, unsigned char *));
const char * fr30_cgen_insert_operand
PARAMS ((CGEN_CPU_DESC, int, CGEN_FIELDS *, CGEN_INSN_BYTES_PTR, bfd_vma));
int fr30_cgen_extract_operand
PARAMS ((CGEN_CPU_DESC, int, CGEN_EXTRACT_INFO *, CGEN_INSN_INT, CGEN_FIELDS *,
bfd_vma));
int fr30_cgen_get_int_operand
PARAMS ((CGEN_CPU_DESC, int, const CGEN_FIELDS *));
bfd_vma fr30_cgen_get_vma_operand
PARAMS ((CGEN_CPU_DESC, int, const CGEN_FIELDS *));
void fr30_cgen_set_int_operand
PARAMS ((CGEN_CPU_DESC, int, CGEN_FIELDS *, int));
void fr30_cgen_set_vma_operand
PARAMS ((CGEN_CPU_DESC, int, CGEN_FIELDS *, bfd_vma));
/* Operand insertion. */ /* Operand insertion. */
@ -248,7 +269,7 @@ insert_insn_normal (cd, insn, fields, buffer, pc)
#else #else
cgen_put_insn_value (cd, buffer, min (cd->base_insn_bitsize, cgen_put_insn_value (cd, buffer, min (cd->base_insn_bitsize,
CGEN_FIELDS_BITSIZE (fields)), (unsigned) CGEN_FIELDS_BITSIZE (fields)),
value); value);
#endif /* ! CGEN_INT_INSN_P */ #endif /* ! CGEN_INT_INSN_P */
@ -274,6 +295,7 @@ insert_insn_normal (cd, insn, fields, buffer, pc)
return NULL; return NULL;
} }
#if CGEN_INT_INSN_P
/* Cover function to store an insn value into an integral insn. Must go here /* Cover function to store an insn value into an integral insn. Must go here
because it needs <prefix>-desc.h for CGEN_INT_INSN_P. */ because it needs <prefix>-desc.h for CGEN_INT_INSN_P. */
@ -297,6 +319,7 @@ put_insn_int_value (cd, buf, length, insn_length, value)
*buf = (*buf & ~(mask << shift)) | ((value & mask) << shift); *buf = (*buf & ~(mask << shift)) | ((value & mask) << shift);
} }
} }
#endif
/* Operand extraction. */ /* Operand extraction. */
@ -310,14 +333,14 @@ put_insn_int_value (cd, buf, length, insn_length, value)
static CGEN_INLINE int static CGEN_INLINE int
fill_cache (cd, ex_info, offset, bytes, pc) fill_cache (cd, ex_info, offset, bytes, pc)
CGEN_CPU_DESC cd; CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
CGEN_EXTRACT_INFO *ex_info; CGEN_EXTRACT_INFO *ex_info;
int offset, bytes; int offset, bytes;
bfd_vma pc; bfd_vma pc;
{ {
/* It's doubtful that the middle part has already been fetched so /* It's doubtful that the middle part has already been fetched so
we don't optimize that case. kiss. */ we don't optimize that case. kiss. */
int mask; unsigned int mask;
disassemble_info *info = (disassemble_info *) ex_info->dis_info; disassemble_info *info = (disassemble_info *) ex_info->dis_info;
/* First do a quick check. */ /* First do a quick check. */
@ -355,10 +378,10 @@ fill_cache (cd, ex_info, offset, bytes, pc)
static CGEN_INLINE long static CGEN_INLINE long
extract_1 (cd, ex_info, start, length, word_length, bufp, pc) extract_1 (cd, ex_info, start, length, word_length, bufp, pc)
CGEN_CPU_DESC cd; CGEN_CPU_DESC cd;
CGEN_EXTRACT_INFO *ex_info; CGEN_EXTRACT_INFO *ex_info ATTRIBUTE_UNUSED;
int start,length,word_length; int start,length,word_length;
unsigned char *bufp; unsigned char *bufp;
bfd_vma pc; bfd_vma pc ATTRIBUTE_UNUSED;
{ {
unsigned long x; unsigned long x;
int shift; int shift;
@ -942,7 +965,7 @@ cgen_extract_fn * const fr30_cgen_extract_handlers[] =
int int
fr30_cgen_get_int_operand (cd, opindex, fields) fr30_cgen_get_int_operand (cd, opindex, fields)
CGEN_CPU_DESC cd; CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
int opindex; int opindex;
const CGEN_FIELDS * fields; const CGEN_FIELDS * fields;
{ {
@ -1071,7 +1094,7 @@ fr30_cgen_get_int_operand (cd, opindex, fields)
bfd_vma bfd_vma
fr30_cgen_get_vma_operand (cd, opindex, fields) fr30_cgen_get_vma_operand (cd, opindex, fields)
CGEN_CPU_DESC cd; CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
int opindex; int opindex;
const CGEN_FIELDS * fields; const CGEN_FIELDS * fields;
{ {
@ -1205,7 +1228,7 @@ fr30_cgen_get_vma_operand (cd, opindex, fields)
void void
fr30_cgen_set_int_operand (cd, opindex, fields, value) fr30_cgen_set_int_operand (cd, opindex, fields, value)
CGEN_CPU_DESC cd; CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
int opindex; int opindex;
CGEN_FIELDS * fields; CGEN_FIELDS * fields;
int value; int value;
@ -1327,7 +1350,7 @@ fr30_cgen_set_int_operand (cd, opindex, fields, value)
void void
fr30_cgen_set_vma_operand (cd, opindex, fields, value) fr30_cgen_set_vma_operand (cd, opindex, fields, value)
CGEN_CPU_DESC cd; CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
int opindex; int opindex;
CGEN_FIELDS * fields; CGEN_FIELDS * fields;
bfd_vma value; bfd_vma value;