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.
(md_show_usage): Fix signed/unsigned warning.
* config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
static struct m32r_hi_fixup *m32r_hi_fixup_list;
\f
+static void allow_m32rx PARAMS ((int));
+
static void
allow_m32rx (on)
int on;
int
md_parse_option (c, arg)
int c;
- char *arg;
+ char *arg ATTRIBUTE_UNUSED;
{
switch (c)
{
static void
fill_insn (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
frag_align_code (2, 0);
prev_insn.insn = NULL;
static void
debug_sym (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
register char *name;
register char delim;
of instruction 'b'. If 'check_outputs' is true then b's outputs are
checked, otherwise its inputs are examined. */
+static int first_writes_to_seconds_operands
+ PARAMS ((m32r_insn *, m32r_insn *, const int));
+
static int
first_writes_to_seconds_operands (a, b, check_outputs)
m32r_insn *a;
/* Returns true if the insn can (potentially) alter the program counter. */
+static int writes_to_pc PARAMS ((m32r_insn *));
+
static int
writes_to_pc (a)
m32r_insn *a;
/* Return NULL if the two 16 bit insns can be executed in parallel.
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 *
can_make_parallel (a, b)
m32r_insn *a;
/* Force the top bit of the second 16-bit insn to be set. */
+static void make_parallel PARAMS ((CGEN_INSN_BYTES_PTR));
+
static void
make_parallel (buffer)
CGEN_INSN_BYTES_PTR buffer;
/* Same as make_parallel except buffer contains the bytes in target order. */
+static void target_make_parallel PARAMS ((char *));
+
static void
target_make_parallel (buffer)
char *buffer;
/* Assemble two instructions with an explicit parallel operation (||) or
sequential operation (->). */
+static void assemble_two_insns PARAMS ((char *, char *, int));
+
static void
assemble_two_insns (str, str2, parallel_p)
char *str;
symbolS *
md_undefined_symbol (name)
- char *name;
+ char *name ATTRIBUTE_UNUSED;
{
return 0;
}
static void
m32r_scomm (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
register char *name;
register char c;
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;
+ bfd *abfd ATTRIBUTE_UNUSED;
segT sec;
fragS *fragP;
{
bfd_reloc_code_real_type
md_cgen_lookup_reloc (insn, operand, fixP)
- const CGEN_INSN *insn;
+ const CGEN_INSN *insn ATTRIBUTE_UNUSED;
const CGEN_OPERAND *operand;
fixS *fixP;
{
/* Record a HI16 reloc for later matching with its LO16 cousin. */
+static void m32r_record_hi16 PARAMS ((int, fixS *, segT));
+
static void
m32r_record_hi16 (reloc_type, fixP, seg)
int reloc_type;
fixS *fixP;
- segT seg;
+ segT seg ATTRIBUTE_UNUSED;
{
struct m32r_hi_fixup *hi_fixup;
int prec;
LITTLENUM_TYPE words[MAX_LITTLENUMS];
char *t;
- char *atof_ieee ();
switch (type)
{
#define md_apply_fix3 gas_cgen_md_apply_fix3
#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
HI16 relocs and queue them up for later sorting. */
/* When relaxing, we need to emit various relocs we otherwise wouldn't. */
#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. */
int m32r_fill_insn PARAMS ((int));
#define md_cleanup 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));