* config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
(calcop): Ditto for reg_prefix var. (hexval): Add cast to fix signed/unsigned warning. (md_number_to_disp): Delete unused function. (md_number_to_field): Likewise. (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl. (match_name): Prototype. (get_bf2): Prototype. (get_bf_offset_expression): Prototype.
This commit is contained in:
parent
aa699a2caf
commit
38b9ac49eb
@ -1,5 +1,14 @@
|
|||||||
2002-12-13 Alan Modra <amodra@bigpond.net.au>
|
2002-12-13 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
|
||||||
|
(calcop): Ditto for reg_prefix var.
|
||||||
|
(hexval): Add cast to fix signed/unsigned warning.
|
||||||
|
(md_number_to_disp): Delete unused function.
|
||||||
|
(md_number_to_field): Likewise.
|
||||||
|
(float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
|
||||||
|
(match_name): Prototype.
|
||||||
|
(get_bf2): Prototype.
|
||||||
|
(get_bf_offset_expression): Prototype.
|
||||||
* config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
|
* config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
|
||||||
(md_undefined_symbol <ignore>): Likewise.
|
(md_undefined_symbol <ignore>): Likewise.
|
||||||
(md_create_short_jump <all args>): Likewise.
|
(md_create_short_jump <all args>): Likewise.
|
||||||
|
@ -125,11 +125,14 @@ struct m88k_insn
|
|||||||
static char *get_bf PARAMS ((char *param, unsigned *valp));
|
static char *get_bf PARAMS ((char *param, unsigned *valp));
|
||||||
static char *get_cmp PARAMS ((char *param, unsigned *valp));
|
static char *get_cmp PARAMS ((char *param, unsigned *valp));
|
||||||
static char *get_cnd PARAMS ((char *param, unsigned *valp));
|
static char *get_cnd PARAMS ((char *param, unsigned *valp));
|
||||||
|
static char *get_bf2 PARAMS ((char *param, int bc));
|
||||||
|
static char *get_bf_offset_expression PARAMS ((char *param, unsigned *offsetp));
|
||||||
static char *get_cr PARAMS ((char *param, unsigned *regnop));
|
static char *get_cr PARAMS ((char *param, unsigned *regnop));
|
||||||
static char *get_fcr PARAMS ((char *param, unsigned *regnop));
|
static char *get_fcr PARAMS ((char *param, unsigned *regnop));
|
||||||
static char *get_imm16 PARAMS ((char *param, struct m88k_insn *insn));
|
static char *get_imm16 PARAMS ((char *param, struct m88k_insn *insn));
|
||||||
static char *get_o6 PARAMS ((char *param, unsigned *valp));
|
static char *get_o6 PARAMS ((char *param, unsigned *valp));
|
||||||
static char *get_reg PARAMS ((char *param, unsigned *regnop, int reg_prefix));
|
static char *match_name PARAMS ((char *, struct field_val_assoc *, unsigned *));
|
||||||
|
static char *get_reg PARAMS ((char *param, unsigned *regnop, unsigned int reg_prefix));
|
||||||
static char *get_vec9 PARAMS ((char *param, unsigned *valp));
|
static char *get_vec9 PARAMS ((char *param, unsigned *valp));
|
||||||
static char *getval PARAMS ((char *param, unsigned int *valp));
|
static char *getval PARAMS ((char *param, unsigned int *valp));
|
||||||
|
|
||||||
@ -162,9 +165,6 @@ const char EXP_CHARS[] = "eE";
|
|||||||
/* or 0H1.234E-12 (see exp chars above) */
|
/* or 0H1.234E-12 (see exp chars above) */
|
||||||
const char FLT_CHARS[] = "dDfF";
|
const char FLT_CHARS[] = "dDfF";
|
||||||
|
|
||||||
extern void float_cons (), cons (), s_globl (), s_space (),
|
|
||||||
s_set (), s_lcomm ();
|
|
||||||
|
|
||||||
const pseudo_typeS md_pseudo_table[] =
|
const pseudo_typeS md_pseudo_table[] =
|
||||||
{
|
{
|
||||||
{"align", s_align_bytes, 4},
|
{"align", s_align_bytes, 4},
|
||||||
@ -333,7 +333,7 @@ calcop (format, param, insn)
|
|||||||
int f;
|
int f;
|
||||||
unsigned val;
|
unsigned val;
|
||||||
unsigned opcode;
|
unsigned opcode;
|
||||||
int reg_prefix = 'r';
|
unsigned int reg_prefix = 'r';
|
||||||
|
|
||||||
insn->opcode = format->opcode;
|
insn->opcode = format->opcode;
|
||||||
opcode = 0;
|
opcode = 0;
|
||||||
@ -465,7 +465,7 @@ static char *
|
|||||||
get_reg (param, regnop, reg_prefix)
|
get_reg (param, regnop, reg_prefix)
|
||||||
char *param;
|
char *param;
|
||||||
unsigned *regnop;
|
unsigned *regnop;
|
||||||
int reg_prefix;
|
unsigned int reg_prefix;
|
||||||
{
|
{
|
||||||
unsigned c;
|
unsigned c;
|
||||||
unsigned regno;
|
unsigned regno;
|
||||||
@ -885,7 +885,7 @@ get_o6 (param, valp)
|
|||||||
#define hexval(z) \
|
#define hexval(z) \
|
||||||
(ISDIGIT (z) ? (z) - '0' : \
|
(ISDIGIT (z) ? (z) - '0' : \
|
||||||
ISLOWER (z) ? (z) - 'a' + 10 : \
|
ISLOWER (z) ? (z) - 'a' + 10 : \
|
||||||
ISUPPER (z) ? (z) - 'A' + 10 : -1)
|
ISUPPER (z) ? (z) - 'A' + 10 : (unsigned) -1)
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
getval (param, valp)
|
getval (param, valp)
|
||||||
@ -943,26 +943,6 @@ md_number_to_chars (buf, val, nbytes)
|
|||||||
number_to_chars_bigendian (buf, val, nbytes);
|
number_to_chars_bigendian (buf, val, nbytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
md_number_to_disp (buf, val, nbytes)
|
|
||||||
char *buf;
|
|
||||||
int val;
|
|
||||||
int nbytes;
|
|
||||||
{
|
|
||||||
as_fatal (_("md_number_to_disp not defined"));
|
|
||||||
md_number_to_chars (buf, val, nbytes);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
md_number_to_field (buf, val, nbytes)
|
|
||||||
char *buf;
|
|
||||||
int val;
|
|
||||||
int nbytes;
|
|
||||||
{
|
|
||||||
as_fatal (_("md_number_to_field not defined"));
|
|
||||||
md_number_to_chars (buf, val, nbytes);
|
|
||||||
}
|
|
||||||
|
|
||||||
#define MAX_LITTLENUMS 6
|
#define MAX_LITTLENUMS 6
|
||||||
|
|
||||||
/* Turn a string in input_line_pointer into a floating point constant of type
|
/* Turn a string in input_line_pointer into a floating point constant of type
|
||||||
|
Loading…
Reference in New Issue
Block a user