mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-20 06:15:09 +08:00
* config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
(fill_insn <ignore>): Likewise. (debug_sym <ignore>): Likewise. (md_undefined_symbol <name>): Likewise. (m32r_scomm <ignore>): Likewise. (md_convert_frag <abfd>): Likewise. (md_cgen_lookup_reloc <insn>): Likewise. (m32r_record_hi16 <seg>): Likewise. (md_estimate_size_before_relax): #if 0 old_fr_fix. (allow_m32rx): Prototype. (first_writes_to_seconds_operands): Prototype. (writes_to_pc): Prototype. (can_make_parallel): Prototype. (make_parallel): Prototype. (target_make_parallel): Prototype. (assemble_two_insns): Prototype. (m32r_record_hi16): Prototype. (md_atof): Remove declaration of atof_ieee. * config/tc-m32r.h (m32r_fix_adjustable): Declare. (m32r_force_relocation): Prototype. (m32r_elf_section_change_hook): Prototype.
This commit is contained in:
@ -1,5 +1,26 @@
|
|||||||
2002-12-13 Alan Modra <amodra@bigpond.net.au>
|
2002-12-13 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
|
||||||
|
(fill_insn <ignore>): Likewise.
|
||||||
|
(debug_sym <ignore>): Likewise.
|
||||||
|
(md_undefined_symbol <name>): Likewise.
|
||||||
|
(m32r_scomm <ignore>): Likewise.
|
||||||
|
(md_convert_frag <abfd>): Likewise.
|
||||||
|
(md_cgen_lookup_reloc <insn>): Likewise.
|
||||||
|
(m32r_record_hi16 <seg>): Likewise.
|
||||||
|
(md_estimate_size_before_relax): #if 0 old_fr_fix.
|
||||||
|
(allow_m32rx): Prototype.
|
||||||
|
(first_writes_to_seconds_operands): Prototype.
|
||||||
|
(writes_to_pc): Prototype.
|
||||||
|
(can_make_parallel): Prototype.
|
||||||
|
(make_parallel): Prototype.
|
||||||
|
(target_make_parallel): Prototype.
|
||||||
|
(assemble_two_insns): Prototype.
|
||||||
|
(m32r_record_hi16): Prototype.
|
||||||
|
(md_atof): Remove declaration of atof_ieee.
|
||||||
|
* config/tc-m32r.h (m32r_fix_adjustable): Declare.
|
||||||
|
(m32r_force_relocation): Prototype.
|
||||||
|
(m32r_elf_section_change_hook): Prototype.
|
||||||
* config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
|
* config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
|
||||||
(md_show_usage): Fix signed/unsigned warning.
|
(md_show_usage): Fix signed/unsigned warning.
|
||||||
* config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
|
* config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
|
||||||
|
@ -146,6 +146,8 @@ struct m32r_hi_fixup
|
|||||||
|
|
||||||
static struct m32r_hi_fixup *m32r_hi_fixup_list;
|
static struct m32r_hi_fixup *m32r_hi_fixup_list;
|
||||||
|
|
||||||
|
static void allow_m32rx PARAMS ((int));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
allow_m32rx (on)
|
allow_m32rx (on)
|
||||||
int on;
|
int on;
|
||||||
@ -198,7 +200,7 @@ size_t md_longopts_size = sizeof (md_longopts);
|
|||||||
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)
|
||||||
{
|
{
|
||||||
@ -379,7 +381,7 @@ m32r_handle_align (fragp)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
fill_insn (ignore)
|
fill_insn (ignore)
|
||||||
int ignore;
|
int ignore ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
frag_align_code (2, 0);
|
frag_align_code (2, 0);
|
||||||
prev_insn.insn = NULL;
|
prev_insn.insn = NULL;
|
||||||
@ -394,7 +396,7 @@ fill_insn (ignore)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
debug_sym (ignore)
|
debug_sym (ignore)
|
||||||
int ignore;
|
int ignore ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
register char *name;
|
register char *name;
|
||||||
register char delim;
|
register char delim;
|
||||||
@ -568,6 +570,9 @@ md_begin ()
|
|||||||
of instruction 'b'. If 'check_outputs' is true then b's outputs are
|
of instruction 'b'. If 'check_outputs' is true then b's outputs are
|
||||||
checked, otherwise its inputs are examined. */
|
checked, otherwise its inputs are examined. */
|
||||||
|
|
||||||
|
static int first_writes_to_seconds_operands
|
||||||
|
PARAMS ((m32r_insn *, m32r_insn *, const int));
|
||||||
|
|
||||||
static int
|
static int
|
||||||
first_writes_to_seconds_operands (a, b, check_outputs)
|
first_writes_to_seconds_operands (a, b, check_outputs)
|
||||||
m32r_insn *a;
|
m32r_insn *a;
|
||||||
@ -642,6 +647,8 @@ first_writes_to_seconds_operands (a, b, check_outputs)
|
|||||||
|
|
||||||
/* Returns true if the insn can (potentially) alter the program counter. */
|
/* Returns true if the insn can (potentially) alter the program counter. */
|
||||||
|
|
||||||
|
static int writes_to_pc PARAMS ((m32r_insn *));
|
||||||
|
|
||||||
static int
|
static int
|
||||||
writes_to_pc (a)
|
writes_to_pc (a)
|
||||||
m32r_insn *a;
|
m32r_insn *a;
|
||||||
@ -674,6 +681,8 @@ writes_to_pc (a)
|
|||||||
/* Return NULL if the two 16 bit insns can be executed in parallel.
|
/* Return NULL if the two 16 bit insns can be executed in parallel.
|
||||||
Otherwise return a pointer to an error message explaining why not. */
|
Otherwise return a pointer to an error message explaining why not. */
|
||||||
|
|
||||||
|
static const char *can_make_parallel PARAMS ((m32r_insn *, m32r_insn *));
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
can_make_parallel (a, b)
|
can_make_parallel (a, b)
|
||||||
m32r_insn *a;
|
m32r_insn *a;
|
||||||
@ -710,6 +719,8 @@ can_make_parallel (a, b)
|
|||||||
|
|
||||||
/* Force the top bit of the second 16-bit insn to be set. */
|
/* Force the top bit of the second 16-bit insn to be set. */
|
||||||
|
|
||||||
|
static void make_parallel PARAMS ((CGEN_INSN_BYTES_PTR));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
make_parallel (buffer)
|
make_parallel (buffer)
|
||||||
CGEN_INSN_BYTES_PTR buffer;
|
CGEN_INSN_BYTES_PTR buffer;
|
||||||
@ -724,6 +735,8 @@ make_parallel (buffer)
|
|||||||
|
|
||||||
/* Same as make_parallel except buffer contains the bytes in target order. */
|
/* Same as make_parallel except buffer contains the bytes in target order. */
|
||||||
|
|
||||||
|
static void target_make_parallel PARAMS ((char *));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
target_make_parallel (buffer)
|
target_make_parallel (buffer)
|
||||||
char *buffer;
|
char *buffer;
|
||||||
@ -735,6 +748,8 @@ target_make_parallel (buffer)
|
|||||||
/* Assemble two instructions with an explicit parallel operation (||) or
|
/* Assemble two instructions with an explicit parallel operation (||) or
|
||||||
sequential operation (->). */
|
sequential operation (->). */
|
||||||
|
|
||||||
|
static void assemble_two_insns PARAMS ((char *, char *, int));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
assemble_two_insns (str, str2, parallel_p)
|
assemble_two_insns (str, str2, parallel_p)
|
||||||
char *str;
|
char *str;
|
||||||
@ -1216,7 +1231,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;
|
||||||
}
|
}
|
||||||
@ -1230,7 +1245,7 @@ md_undefined_symbol (name)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
m32r_scomm (ignore)
|
m32r_scomm (ignore)
|
||||||
int ignore;
|
int ignore ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
register char *name;
|
register char *name;
|
||||||
register char c;
|
register char c;
|
||||||
@ -1450,7 +1465,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
|
||||||
@ -1514,7 +1531,7 @@ 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;
|
||||||
fragS *fragP;
|
fragS *fragP;
|
||||||
{
|
{
|
||||||
@ -1626,7 +1643,7 @@ 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;
|
||||||
{
|
{
|
||||||
@ -1652,11 +1669,13 @@ md_cgen_lookup_reloc (insn, operand, fixP)
|
|||||||
|
|
||||||
/* Record a HI16 reloc for later matching with its LO16 cousin. */
|
/* Record a HI16 reloc for later matching with its LO16 cousin. */
|
||||||
|
|
||||||
|
static void m32r_record_hi16 PARAMS ((int, fixS *, segT));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
m32r_record_hi16 (reloc_type, fixP, seg)
|
m32r_record_hi16 (reloc_type, fixP, seg)
|
||||||
int reloc_type;
|
int reloc_type;
|
||||||
fixS *fixP;
|
fixS *fixP;
|
||||||
segT seg;
|
segT seg ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
struct m32r_hi_fixup *hi_fixup;
|
struct m32r_hi_fixup *hi_fixup;
|
||||||
|
|
||||||
@ -1842,7 +1861,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)
|
||||||
{
|
{
|
||||||
|
@ -74,6 +74,7 @@ extern void m32r_handle_align PARAMS ((fragS *));
|
|||||||
#define md_apply_fix3 gas_cgen_md_apply_fix3
|
#define md_apply_fix3 gas_cgen_md_apply_fix3
|
||||||
|
|
||||||
#define tc_fix_adjustable(FIX) m32r_fix_adjustable (FIX)
|
#define tc_fix_adjustable(FIX) m32r_fix_adjustable (FIX)
|
||||||
|
bfd_boolean m32r_fix_adjustable PARAMS ((struct fix *));
|
||||||
|
|
||||||
/* After creating a fixup for an instruction operand, we need to check for
|
/* After creating a fixup for an instruction operand, we need to check for
|
||||||
HI16 relocs and queue them up for later sorting. */
|
HI16 relocs and queue them up for later sorting. */
|
||||||
@ -90,7 +91,7 @@ extern void m32r_frob_file PARAMS ((void));
|
|||||||
|
|
||||||
/* When relaxing, we need to emit various relocs we otherwise wouldn't. */
|
/* When relaxing, we need to emit various relocs we otherwise wouldn't. */
|
||||||
#define TC_FORCE_RELOCATION(fix) m32r_force_relocation (fix)
|
#define TC_FORCE_RELOCATION(fix) m32r_force_relocation (fix)
|
||||||
extern int m32r_force_relocation ();
|
extern int m32r_force_relocation PARAMS ((struct fix *));
|
||||||
|
|
||||||
/* Ensure insns at labels are aligned to 32 bit boundaries. */
|
/* Ensure insns at labels are aligned to 32 bit boundaries. */
|
||||||
int m32r_fill_insn PARAMS ((int));
|
int m32r_fill_insn PARAMS ((int));
|
||||||
@ -104,4 +105,4 @@ int m32r_fill_insn PARAMS ((int));
|
|||||||
|
|
||||||
#define md_cleanup m32r_elf_section_change_hook
|
#define md_cleanup m32r_elf_section_change_hook
|
||||||
#define md_elf_section_change_hook m32r_elf_section_change_hook
|
#define md_elf_section_change_hook m32r_elf_section_change_hook
|
||||||
extern void m32r_elf_section_change_hook ();
|
extern void m32r_elf_section_change_hook PARAMS ((void));
|
||||||
|
Reference in New Issue
Block a user