* 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.
This commit is contained in:
parent
a08333bb26
commit
33b5881a60
|
@ -1,5 +1,15 @@
|
||||||
2002-12-13 Alan Modra <amodra@bigpond.net.au>
|
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.
|
* config/tc-frv.c (frv_insert_vliw_insn): Prototype.
|
||||||
(frv_find_in_vliw): Likewise.
|
(frv_find_in_vliw): Likewise.
|
||||||
(frv_debug_tomcat): Likewise.
|
(frv_debug_tomcat): Likewise.
|
||||||
|
|
|
@ -66,8 +66,8 @@ size_t md_longopts_size = sizeof (md_longopts);
|
||||||
|
|
||||||
int
|
int
|
||||||
md_parse_option (c, arg)
|
md_parse_option (c, arg)
|
||||||
int c;
|
int c ATTRIBUTE_UNUSED;
|
||||||
char * arg;
|
char *arg ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
switch (c)
|
switch (c)
|
||||||
{
|
{
|
||||||
|
@ -95,10 +95,6 @@ const pseudo_typeS md_pseudo_table[] =
|
||||||
void
|
void
|
||||||
md_begin ()
|
md_begin ()
|
||||||
{
|
{
|
||||||
flagword applicable;
|
|
||||||
segT seg;
|
|
||||||
subsegT subseg;
|
|
||||||
|
|
||||||
/* Initialize the `cgen' interface. */
|
/* Initialize the `cgen' interface. */
|
||||||
|
|
||||||
/* Set the machine number and endian. */
|
/* Set the machine number and endian. */
|
||||||
|
@ -114,12 +110,11 @@ md_begin ()
|
||||||
|
|
||||||
void
|
void
|
||||||
md_assemble (str)
|
md_assemble (str)
|
||||||
char * str;
|
char *str;
|
||||||
{
|
{
|
||||||
static int last_insn_had_delay_slot = 0;
|
static int last_insn_had_delay_slot = 0;
|
||||||
fr30_insn insn;
|
fr30_insn insn;
|
||||||
char * errmsg;
|
char *errmsg;
|
||||||
char * str2 = NULL;
|
|
||||||
|
|
||||||
/* Initialize GAS's cgen interface for a new instruction. */
|
/* Initialize GAS's cgen interface for a new instruction. */
|
||||||
gas_cgen_init_parse ();
|
gas_cgen_init_parse ();
|
||||||
|
@ -172,7 +167,7 @@ md_section_align (segment, size)
|
||||||
|
|
||||||
symbolS *
|
symbolS *
|
||||||
md_undefined_symbol (name)
|
md_undefined_symbol (name)
|
||||||
char * name;
|
char *name ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -207,6 +202,7 @@ const relax_typeS md_relax_table[] =
|
||||||
{0x2000000 - 1 - 2, -0x2000000 - 2, 4, 0 }
|
{0x2000000 - 1 - 2, -0x2000000 - 2, 4, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if 0
|
||||||
long
|
long
|
||||||
fr30_relax_frag (segment, fragP, stretch)
|
fr30_relax_frag (segment, fragP, stretch)
|
||||||
segT segment;
|
segT segment;
|
||||||
|
@ -248,6 +244,7 @@ fr30_relax_frag (segment, fragP, stretch)
|
||||||
|
|
||||||
return growth;
|
return growth;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Return an initial guess of the length by which a fragment must grow to
|
/* Return an initial guess of the length by which a fragment must grow to
|
||||||
hold a branch to reach its destination.
|
hold a branch to reach its destination.
|
||||||
|
@ -273,7 +270,9 @@ md_estimate_size_before_relax (fragP, segment)
|
||||||
|
|
||||||
if (S_GET_SEGMENT (fragP->fr_symbol) != segment)
|
if (S_GET_SEGMENT (fragP->fr_symbol) != segment)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
int old_fr_fix = fragP->fr_fix;
|
int old_fr_fix = fragP->fr_fix;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The symbol is undefined in this segment.
|
/* The symbol is undefined in this segment.
|
||||||
Change the relaxation subtype to the max allowable and leave
|
Change the relaxation subtype to the max allowable and leave
|
||||||
|
@ -337,9 +336,9 @@ md_estimate_size_before_relax (fragP, segment)
|
||||||
|
|
||||||
void
|
void
|
||||||
md_convert_frag (abfd, sec, fragP)
|
md_convert_frag (abfd, sec, fragP)
|
||||||
bfd * abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
segT sec;
|
segT sec ATTRIBUTE_UNUSED;
|
||||||
fragS * fragP;
|
fragS *fragP ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
char * opcode;
|
char * opcode;
|
||||||
|
@ -449,9 +448,9 @@ md_pcrel_from_section (fixP, sec)
|
||||||
|
|
||||||
bfd_reloc_code_real_type
|
bfd_reloc_code_real_type
|
||||||
md_cgen_lookup_reloc (insn, operand, fixP)
|
md_cgen_lookup_reloc (insn, operand, fixP)
|
||||||
const CGEN_INSN * insn;
|
const CGEN_INSN *insn ATTRIBUTE_UNUSED;
|
||||||
const CGEN_OPERAND * operand;
|
const CGEN_OPERAND *operand;
|
||||||
fixS * fixP;
|
fixS *fixP;
|
||||||
{
|
{
|
||||||
switch (operand->type)
|
switch (operand->type)
|
||||||
{
|
{
|
||||||
|
@ -515,7 +514,6 @@ md_atof (type, litP, sizeP)
|
||||||
int prec;
|
int prec;
|
||||||
LITTLENUM_TYPE words [MAX_LITTLENUMS];
|
LITTLENUM_TYPE words [MAX_LITTLENUMS];
|
||||||
char * t;
|
char * t;
|
||||||
char * atof_ieee ();
|
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
@ -556,6 +554,8 @@ md_atof (type, litP, sizeP)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Worker function for fr30_is_colon_insn(). */
|
/* Worker function for fr30_is_colon_insn(). */
|
||||||
|
static char restore_colon PARAMS ((int));
|
||||||
|
|
||||||
static char
|
static char
|
||||||
restore_colon (advance_i_l_p_by)
|
restore_colon (advance_i_l_p_by)
|
||||||
int advance_i_l_p_by;
|
int advance_i_l_p_by;
|
||||||
|
|
Loading…
Reference in New Issue