int
md_parse_option (c, arg)
int c;
- char *arg;
+ char *arg ATTRIBUTE_UNUSED;
{
switch (c)
{
init_opcode_tables (mach)
int mach;
{
- register unsigned int i;
+ int i;
char *last;
if ((arc_suffix_hash = hash_new ()) == NULL)
/* We have an operand. Pick out any modifiers. */
mods = 0;
- while (ARC_MOD_P (arc_operands[arc_operand_map[*syn]].flags))
+ while (ARC_MOD_P (arc_operands[arc_operand_map[(int) *syn]].flags))
{
- mods |= arc_operands[arc_operand_map[*syn]].flags & ARC_MOD_BITS;
+ mods |= arc_operands[arc_operand_map[(int) *syn]].flags & ARC_MOD_BITS;
++syn;
}
- operand = arc_operands + arc_operand_map[*syn];
+ operand = arc_operands + arc_operand_map[(int) *syn];
if (operand->fmt == 0)
as_fatal (_("unknown syntax format character `%c'"), *syn);
else
/* This is either a register or an expression of some kind. */
{
- char c;
char *hold;
const struct arc_operand_value *reg = NULL;
long value = 0;
(insn, operand, mods, reg, 0L, &junk);
}
else
- fixups[fc].opindex = arc_operand_map[*syn];
+ fixups[fc].opindex = arc_operand_map[(int) *syn];
++fc;
value = 0;
}
int cc_set_p = 0;
/* 1 if conditional branch, including `b' "branch always" */
int cond_branch_p = opcode->flags & ARC_OPCODE_COND_BRANCH;
- int need_cc_nop_p = 0;
for (i = 0; i < num_suffixes; ++i)
{
static void
arc_common (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
char *name;
char c;
char *p;
- int temp, size;
+ int temp;
+ unsigned int size;
symbolS *symbolP;
name = input_line_pointer;
temp = 0;
as_warn (_("Common alignment negative; 0 assumed"));
}
- if (symbolP->local)
+ if (S_IS_LOCAL(symbolP))
{
segT old_sec;
int old_subsec;
char *p;
int align;
- allocate_bss:
old_sec = now_seg;
old_subsec = now_subseg;
align = temp;
static void
arc_cpu (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
int mach;
char c;
int
md_estimate_size_before_relax (fragp, seg)
- fragS *fragp;
- asection *seg;
+ fragS *fragp ATTRIBUTE_UNUSED;
+ asection *seg ATTRIBUTE_UNUSED;
{
abort ();
}
void
md_convert_frag (abfd, sec, fragp)
- bfd *abfd;
- asection *sec;
- fragS *fragp;
+ bfd *abfd ATTRIBUTE_UNUSED;
+ asection *sec ATTRIBUTE_UNUSED;
+ fragS *fragp ATTRIBUTE_UNUSED;
{
abort ();
}
symbolS *
md_undefined_symbol (name)
- char *name;
+ char *name ATTRIBUTE_UNUSED;
{
return 0;
}
void
arc_parse_cons_expression (exp, nbytes)
expressionS *exp;
- int nbytes;
+ int nbytes ATTRIBUTE_UNUSED;
{
expr (0, exp);
}
arelent *
tc_gen_reloc (section, fixP)
- asection *section;
+ asection *section ATTRIBUTE_UNUSED;
fixS *fixP;
{
arelent *reloc;