2001-06-24 Ben Elliston <bje@redhat.com>
+ * config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
+ (md_parse_option): Mark parameters as unused.
+ (md_show_usage): Ditto.
+ (calcop): Adjust type of `reg_prefix' to char.
+ (get_reg): Ditto.
+ (getval): Adjust type of local `c' to char.
+ (md_create_short_jump): Mark from_addr, to_addr params as unused.
+ (md_create_long_jump): Ditto.
+ (md_estimate_size_before_relax): Mark parameters as unused.
+
* config/tc-m88k.c (md_pseudo_table): Properly terminate the table
to allay a possible compiler warning.
static char *get_fcr PARAMS ((char *param, unsigned *regnop));
static char *get_imm16 PARAMS ((char *param, struct m88k_insn *insn));
static char *get_o6 PARAMS ((char *param, unsigned *valp));
-static char *get_reg PARAMS ((char *param, unsigned *regnop, int reg_prefix));
+static char *get_reg PARAMS ((char *param, unsigned *regnop, char reg_prefix));
static char *get_vec9 PARAMS ((char *param, unsigned *valp));
static char *getval PARAMS ((char *param, unsigned int *valp));
int
md_parse_option (c, arg)
- int c;
- char *arg;
+ int c ATTRIBUTE_UNUSED;
+ char *arg ATTRIBUTE_UNUSED;
{
return 0;
}
void
md_show_usage (stream)
- FILE *stream;
+ FILE *stream ATTRIBUTE_UNUSED;
{
}
\f
int f;
unsigned val;
unsigned opcode;
- int reg_prefix = 'r';
+ char reg_prefix = 'r';
insn->opcode = format->opcode;
opcode = 0;
get_reg (param, regnop, reg_prefix)
char *param;
unsigned *regnop;
- int reg_prefix;
+ char reg_prefix;
{
- unsigned c;
+ char c;
unsigned regno;
c = *param++;
unsigned int *valp;
{
unsigned int val = 0;
- unsigned int c;
+ char c;
c = *param++;
if (c == '0')
void
md_create_short_jump (ptr, from_addr, to_addr, frag, to_symbol)
char *ptr;
- addressT from_addr, to_addr;
+ addressT from_addr ATTRIBUTE_UNUSED;
+ addressT to_addr ATTRIBUTE_UNUSED;
fragS *frag;
symbolS *to_symbol;
{
void
md_create_long_jump (ptr, from_addr, to_addr, frag, to_symbol)
char *ptr;
- addressT from_addr, to_addr;
+ addressT from_addr ATTRIBUTE_UNUSED;
+ addressT to_addr ATTRIBUTE_UNUSED;
fragS *frag;
symbolS *to_symbol;
{
int
md_estimate_size_before_relax (fragP, segment_type)
- fragS *fragP;
- segT segment_type;
+ fragS *fragP ATTRIBUTE_UNUSED;
+ segT segment_type ATTRIBUTE_UNUSED;
{
as_fatal (_("Relaxation should never occur"));
return (-1);