* config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.

(md_undefined_symbol <name>): Likewise.
	(md_convert_frag <all args>): Likewise.
	(write_long <opcode>): Likewise.
	(tc_gen_reloc <seg>): Likewise.
	(md_estimate_size_before_relax <all args>): Likewise.
	(md_apply_fix3 <seg>): Likewise.
	(s_d30v_align <ignore>): Likewise.
	(build_insn): Correct format string.
	(md_apply_fix3): Likewise.
This commit is contained in:
Alan Modra
2002-12-12 22:41:25 +00:00
parent fbb265fcf2
commit ebf19f1b15
2 changed files with 24 additions and 14 deletions

View File

@ -1,5 +1,15 @@
2002-12-13 Alan Modra <amodra@bigpond.net.au> 2002-12-13 Alan Modra <amodra@bigpond.net.au>
* config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
(md_undefined_symbol <name>): Likewise.
(md_convert_frag <all args>): Likewise.
(write_long <opcode>): Likewise.
(tc_gen_reloc <seg>): Likewise.
(md_estimate_size_before_relax <all args>): Likewise.
(md_apply_fix3 <seg>): Likewise.
(s_d30v_align <ignore>): Likewise.
(build_insn): Correct format string.
(md_apply_fix3): Likewise.
* config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED. * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
(md_undefined_symbol <name>): Likewise. (md_undefined_symbol <name>): Likewise.
(md_convert_frag <all args>): Likewise. (md_convert_frag <all args>): Likewise.

View File

@ -296,7 +296,7 @@ md_show_usage (stream)
int int
md_parse_option (c, arg) md_parse_option (c, arg)
int c; int c;
char *arg; char *arg ATTRIBUTE_UNUSED;
{ {
switch (c) switch (c)
{ {
@ -332,7 +332,7 @@ md_parse_option (c, arg)
symbolS * symbolS *
md_undefined_symbol (name) md_undefined_symbol (name)
char *name; char *name ATTRIBUTE_UNUSED;
{ {
return 0; return 0;
} }
@ -382,9 +382,9 @@ md_atof (type, litP, sizeP)
void void
md_convert_frag (abfd, sec, fragP) md_convert_frag (abfd, sec, fragP)
bfd *abfd; bfd *abfd ATTRIBUTE_UNUSED;
asection *sec; asection *sec ATTRIBUTE_UNUSED;
fragS *fragP; fragS *fragP ATTRIBUTE_UNUSED;
{ {
abort (); abort ();
} }
@ -653,7 +653,7 @@ build_insn (opcode, opers)
/* Truncate to the proper number of bits. */ /* Truncate to the proper number of bits. */
if ((opers[i].X_op == O_constant) && check_range (number, bits, flags)) if ((opers[i].X_op == O_constant) && check_range (number, bits, flags))
as_bad (_("operand out of range: %d"), number); as_bad (_("operand out of range: %ld"), number);
if (bits < 31) if (bits < 31)
number &= 0x7FFFFFFF >> (31 - bits); number &= 0x7FFFFFFF >> (31 - bits);
if (flags & OPERAND_SHIFT) if (flags & OPERAND_SHIFT)
@ -677,7 +677,7 @@ build_insn (opcode, opers)
static void static void
write_long (opcode, insn, fx) write_long (opcode, insn, fx)
struct d30v_insn *opcode; struct d30v_insn *opcode ATTRIBUTE_UNUSED;
long long insn; long long insn;
Fixups *fx; Fixups *fx;
{ {
@ -1792,7 +1792,7 @@ find_format (opcode, myops, fsize, cmp_hack)
arelent * arelent *
tc_gen_reloc (seg, fixp) tc_gen_reloc (seg, fixp)
asection *seg; asection *seg ATTRIBUTE_UNUSED;
fixS *fixp; fixS *fixp;
{ {
arelent *reloc; arelent *reloc;
@ -1815,8 +1815,8 @@ tc_gen_reloc (seg, fixp)
int int
md_estimate_size_before_relax (fragp, seg) md_estimate_size_before_relax (fragp, seg)
fragS *fragp; fragS *fragp ATTRIBUTE_UNUSED;
asection *seg; asection *seg ATTRIBUTE_UNUSED;
{ {
abort (); abort ();
return 0; return 0;
@ -1838,7 +1838,7 @@ void
md_apply_fix3 (fixP, valP, seg) md_apply_fix3 (fixP, valP, seg)
fixS *fixP; fixS *fixP;
valueT *valP; valueT *valP;
segT seg; segT seg ATTRIBUTE_UNUSED;
{ {
char *where; char *where;
unsigned long insn, insn2; unsigned long insn, insn2;
@ -1863,7 +1863,7 @@ md_apply_fix3 (fixP, valP, seg)
as_bad (_("line %d: unable to place address of symbol '%s' into a byte"), as_bad (_("line %d: unable to place address of symbol '%s' into a byte"),
fixP->fx_line, S_GET_NAME (fixP->fx_addsy)); fixP->fx_line, S_GET_NAME (fixP->fx_addsy));
else if (((unsigned)value) > 0xff) else if (((unsigned)value) > 0xff)
as_bad (_("line %d: unable to place value %x into a byte"), as_bad (_("line %d: unable to place value %lx into a byte"),
fixP->fx_line, value); fixP->fx_line, value);
else else
*(unsigned char *) where = value; *(unsigned char *) where = value;
@ -1874,7 +1874,7 @@ md_apply_fix3 (fixP, valP, seg)
as_bad (_("line %d: unable to place address of symbol '%s' into a short"), as_bad (_("line %d: unable to place address of symbol '%s' into a short"),
fixP->fx_line, S_GET_NAME (fixP->fx_addsy)); fixP->fx_line, S_GET_NAME (fixP->fx_addsy));
else if (((unsigned)value) > 0xffff) else if (((unsigned)value) > 0xffff)
as_bad (_("line %d: unable to place value %x into a short"), as_bad (_("line %d: unable to place value %lx into a short"),
fixP->fx_line, value); fixP->fx_line, value);
else else
bfd_putb16 ((bfd_vma) value, (unsigned char *) where); bfd_putb16 ((bfd_vma) value, (unsigned char *) where);
@ -2184,7 +2184,7 @@ d30v_align (n, pfill, label)
static void static void
s_d30v_align (ignore) s_d30v_align (ignore)
int ignore; int ignore ATTRIBUTE_UNUSED;
{ {
int align; int align;
char fill, *pfill = NULL; char fill, *pfill = NULL;