2002-12-13 Alan Modra <amodra@bigpond.net.au>
+ * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
+ (md_undefined_symbol <name>): Likewise.
+ (md_convert_frag <all args>): Likewise.
+ (md_cgen_lookup_reloc <insn>): Likewise.
+ (md_begin): Delete unused vars.
+ (md_assemble): Likewise.
+ (md_estimate_size_before_relax): Likewise.
+ (fr30_relax_frag): #if 0 out, seems unused.
+ (md_atof): Remove declaration of atof_ieee.
+ (restore_colon): Prototype.
* config/tc-frv.c (frv_insert_vliw_insn): Prototype.
(frv_find_in_vliw): Likewise.
(frv_debug_tomcat): Likewise.
int
md_parse_option (c, arg)
- int c;
- char * arg;
+ int c ATTRIBUTE_UNUSED;
+ char *arg ATTRIBUTE_UNUSED;
{
switch (c)
{
void
md_begin ()
{
- flagword applicable;
- segT seg;
- subsegT subseg;
-
/* Initialize the `cgen' interface. */
/* Set the machine number and endian. */
void
md_assemble (str)
- char * str;
+ char *str;
{
static int last_insn_had_delay_slot = 0;
fr30_insn insn;
- char * errmsg;
- char * str2 = NULL;
+ char *errmsg;
/* Initialize GAS's cgen interface for a new instruction. */
gas_cgen_init_parse ();
symbolS *
md_undefined_symbol (name)
- char * name;
+ char *name ATTRIBUTE_UNUSED;
{
return 0;
}
{0x2000000 - 1 - 2, -0x2000000 - 2, 4, 0 }
};
+#if 0
long
fr30_relax_frag (segment, fragP, stretch)
segT segment;
return growth;
}
+#endif
/* Return an initial guess of the length by which a fragment must grow to
hold a branch to reach its destination.
if (S_GET_SEGMENT (fragP->fr_symbol) != segment)
{
+#if 0
int old_fr_fix = fragP->fr_fix;
+#endif
/* The symbol is undefined in this segment.
Change the relaxation subtype to the max allowable and leave
void
md_convert_frag (abfd, sec, fragP)
- bfd * abfd;
- segT sec;
- fragS * fragP;
+ bfd *abfd ATTRIBUTE_UNUSED;
+ segT sec ATTRIBUTE_UNUSED;
+ fragS *fragP ATTRIBUTE_UNUSED;
{
#if 0
char * opcode;
bfd_reloc_code_real_type
md_cgen_lookup_reloc (insn, operand, fixP)
- const CGEN_INSN * insn;
- const CGEN_OPERAND * operand;
- fixS * fixP;
+ const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+ const CGEN_OPERAND *operand;
+ fixS *fixP;
{
switch (operand->type)
{
int prec;
LITTLENUM_TYPE words [MAX_LITTLENUMS];
char * t;
- char * atof_ieee ();
switch (type)
{
}
/* Worker function for fr30_is_colon_insn(). */
+static char restore_colon PARAMS ((int));
+
static char
restore_colon (advance_i_l_p_by)
int advance_i_l_p_by;