Fix compile time warning messages.

This commit is contained in:
Nick Clifton
2000-05-29 22:05:27 +00:00
parent 5c82d20a26
commit 43841e9116
3 changed files with 59 additions and 49 deletions

View File

@@ -183,7 +183,7 @@ struct mips_set_options
that we must set the isa and mips16 fields to -1 to indicate that
they have not been initialized. */
static struct mips_set_options mips_opts = { -1, -1 };
static struct mips_set_options mips_opts = { -1, -1, 0, 0, 0, 0, 0, 0 };
/* These variables are filled in with the masks of registers used.
The object format code reads them and puts them in the appropriate
@@ -407,7 +407,7 @@ static struct mips_cl_insn prev_prev_insn;
/* If we don't want information for prev_insn or prev_prev_insn, we
point the insn_mo field at this dummy integer. */
static const struct mips_opcode dummy_opcode = { 0 };
static const struct mips_opcode dummy_opcode = { NULL, NULL, 0, 0, 0, 0 };
/* Non-zero if prev_insn is valid. */
static int prev_insn_valid;
@@ -756,7 +756,7 @@ static const pseudo_typeS mips_pseudo_table[] =
{"stabn", s_mips_stab, 'n'},
{"text", s_change_sec, 't'},
{"word", s_cons, 2},
{ 0 },
{ NULL, NULL, 0 },
};
static const pseudo_typeS mips_nonecoff_pseudo_table[] = {
@@ -773,7 +773,7 @@ static const pseudo_typeS mips_nonecoff_pseudo_table[] = {
{"loc", s_ignore, 0},
{"mask", s_mips_mask, 'R'},
{"verstamp", s_ignore, 0},
{ 0 },
{ NULL, NULL, 0 },
};
extern void pop_insert PARAMS ((const pseudo_typeS *));
@@ -2660,7 +2660,7 @@ macro_build (place, counter, ep, name, fmt, va_alist)
static void
mips16_macro_build (place, counter, ep, name, fmt, args)
char *place;
int *counter;
int *counter ATTRIBUTE_UNUSED;
expressionS *ep;
const char *name;
const char *fmt;
@@ -3443,7 +3443,7 @@ macro (ip)
int tempreg;
int mask;
int icnt = 0;
int used_at;
int used_at = 0;
expressionS expr1;
const char *s;
const char *s2;
@@ -6408,8 +6408,8 @@ macro2 (ip)
macro_build ((char *) NULL, &icnt, NULL, s, "s,t", sreg, AT);
break;
case M_TRUNCWD:
case M_TRUNCWS:
case M_TRUNCWD:
assert (mips_opts.isa == 1);
sreg = (ip->insn_opcode >> 11) & 0x1f; /* floating reg */
dreg = (ip->insn_opcode >> 06) & 0x1f; /* floating reg */
@@ -6997,7 +6997,7 @@ mips_ip (str, ip)
{
char *s;
const char *args;
char c;
char c = 0;
struct mips_opcode *insn;
char *argsStart;
unsigned int regno;
@@ -7083,7 +7083,7 @@ mips_ip (str, ip)
continue;
}
else
{
{
static char buf[100];
sprintf (buf,
_("opcode not supported on this processor: %d (MIPS%d)"),
@@ -9363,7 +9363,7 @@ md_pcrel_from (fixP)
void
cons_fix_new_mips (frag, where, nbytes, exp)
fragS *frag;
fragS *frag ATTRIBUTE_UNUSED;
int where;
unsigned int nbytes;
expressionS *exp;
@@ -9940,7 +9940,7 @@ mips_align (to, fill, label)
static void
s_align (x)
int x;
int x ATTRIBUTE_UNUSED;
{
register int temp;
register long temp_fill;
@@ -10134,7 +10134,7 @@ s_float_cons (type)
static void
s_mips_globl (x)
int x;
int x ATTRIBUTE_UNUSED;
{
char *name;
int c;
@@ -10175,7 +10175,7 @@ s_mips_globl (x)
static void
s_option (x)
int x;
int x ATTRIBUTE_UNUSED;
{
char *opt;
char c;
@@ -10228,7 +10228,7 @@ static struct mips_option_stack *mips_opts_stack;
static void
s_mipsset (x)
int x;
int x ATTRIBUTE_UNUSED;
{
char *name = input_line_pointer, ch;
@@ -10364,7 +10364,7 @@ s_mipsset (x)
static void
s_abicalls (ignore)
int ignore;
int ignore ATTRIBUTE_UNUSED;
{
mips_pic = SVR4_PIC;
if (USE_GLOBAL_POINTER_OPT)
@@ -10389,7 +10389,7 @@ s_abicalls (ignore)
static void
s_cpload (ignore)
int ignore;
int ignore ATTRIBUTE_UNUSED;
{
expressionS ex;
int icnt = 0;
@@ -10429,7 +10429,7 @@ s_cpload (ignore)
static void
s_cprestore (ignore)
int ignore;
int ignore ATTRIBUTE_UNUSED;
{
expressionS ex;
int icnt = 0;
@@ -10462,7 +10462,7 @@ s_cprestore (ignore)
static void
s_gpword (ignore)
int ignore;
int ignore ATTRIBUTE_UNUSED;
{
symbolS *label;
expressionS ex;
@@ -10502,7 +10502,7 @@ s_gpword (ignore)
static void
s_cpadd (ignore)
int ignore;
int ignore ATTRIBUTE_UNUSED;
{
int icnt = 0;
int reg;
@@ -10536,7 +10536,7 @@ s_cpadd (ignore)
static void
s_insn (ignore)
int ignore;
int ignore ATTRIBUTE_UNUSED;
{
if (mips_opts.mips16)
mips16_mark_labels ();
@@ -10565,7 +10565,7 @@ s_mips_stab (type)
static void
s_mips_weakext (ignore)
int ignore;
int ignore ATTRIBUTE_UNUSED;
{
char *name;
int c;
@@ -10975,7 +10975,7 @@ md_estimate_size_before_relax (fragp, segtype)
fragS *fragp;
asection *segtype;
{
int change;
int change = 0;
if (RELAX_MIPS16_P (fragp->fr_subtype))
{
@@ -11083,7 +11083,7 @@ mips_fix_adjustable (fixp)
arelent **
tc_gen_reloc (section, fixp)
asection *section;
asection *section ATTRIBUTE_UNUSED;
fixS *fixp;
{
static arelent *retval[4];
@@ -11324,7 +11324,7 @@ mips_relax_frag (fragp, stretch)
void
md_convert_frag (abfd, asec, fragp)
bfd *abfd;
bfd *abfd ATTRIBUTE_UNUSED;
segT asec;
fragS *fragp;
{
@@ -11584,7 +11584,7 @@ int
mips_do_align (n, fill, len, max)
int n;
const char *fill;
int len;
int len ATTRIBUTE_UNUSED;
int max;
{
if (fill == NULL
@@ -11676,7 +11676,7 @@ get_number ()
static void
s_file (x)
int x;
int x ATTRIBUTE_UNUSED;
{
int line;
@@ -11689,7 +11689,7 @@ s_file (x)
static void
s_mips_end (x)
int x;
int x ATTRIBUTE_UNUSED;
{
symbolS *p;
int maybe_text;