static void
ppc_csect (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
char *name;
char endc;
static void
ppc_named_section (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
char *user_name;
const char *real_name;
static void
ppc_extern (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
char *name;
char endc;
static void
ppc_lglobl (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
char *name;
char endc;
static void
ppc_rename (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
char *name;
char endc;
static void
ppc_stabx (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
char *name;
int len;
static void
ppc_function (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
char *name;
char endc;
static void
ppc_bf (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
symbolS *sym;
static void
ppc_ef (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
symbolS *sym;
static void
ppc_bs (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
char *name;
char endc;
static void
ppc_es (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
symbolS *sym;
static void
ppc_bb (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
symbolS *sym;
static void
ppc_eb (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
symbolS *sym;
static void
ppc_bc (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
char *name;
int len;
static void
ppc_ec (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
symbolS *sym;
static void
ppc_toc (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
if (ppc_toc_csect != (symbolS *) NULL)
subseg_set (data_section, symbol_get_tc (ppc_toc_csect)->subseg);
static void
ppc_machine(dummy)
- int dummy;
+ int dummy ATTRIBUTE_UNUSED;
{
discard_rest_of_line();
/* What does aix use this for? */
static void
ppc_vbyte (dummy)
- int dummy;
+ int dummy ATTRIBUTE_UNUSED;
{
expressionS exp;
int byte_count;
*/
static void
ppc_previous(ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
symbolS *tmp;
*/
static void
ppc_pdata(ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
if (pdata_section == 0)
{
*/
static void
ppc_ydata(ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
if (ydata_section == 0)
{
*/
static void
ppc_reldata(ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
if (reldata_section == 0)
{
*/
static void
ppc_rdata(ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
if (rdata_section == 0)
{
*/
static void
ppc_ualong(ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
/* try for long */
cons ( 4 );
*/
static void
ppc_znop(ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
unsigned long insn;
const struct powerpc_opcode *opcode;
void
ppc_pe_section (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
/* Strip out the section name */
char *section_name;
static void
ppc_pe_function (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
char *name;
char endc;
static void
ppc_pe_tocd (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
if (tocdata_section == 0)
{
static int machine = -1;
/* Indicates the target processor(s) for the assemble. */
-static unsigned int processor_mask = -1;
+static int processor_mask = -1;
\f
/* Structure to hold information about predefined registers. */
\f
void
-v850_sdata (int ignore)
+v850_sdata (int ignore ATTRIBUTE_UNUSED)
{
obj_elf_section_change_hook();
}
void
-v850_tdata (int ignore)
+v850_tdata (int ignore ATTRIBUTE_UNUSED)
{
obj_elf_section_change_hook();
}
void
-v850_zdata (int ignore)
+v850_zdata (int ignore ATTRIBUTE_UNUSED)
{
obj_elf_section_change_hook();
}
void
-v850_sbss (int ignore)
+v850_sbss (int ignore ATTRIBUTE_UNUSED)
{
obj_elf_section_change_hook();
}
void
-v850_tbss (int ignore)
+v850_tbss (int ignore ATTRIBUTE_UNUSED)
{
obj_elf_section_change_hook();
}
void
-v850_zbss (int ignore)
+v850_zbss (int ignore ATTRIBUTE_UNUSED)
{
obj_elf_section_change_hook();
}
void
-v850_rosdata (int ignore)
+v850_rosdata (int ignore ATTRIBUTE_UNUSED)
{
obj_elf_section_change_hook();
}
void
-v850_rozdata (int ignore)
+v850_rozdata (int ignore ATTRIBUTE_UNUSED)
{
obj_elf_section_change_hook();
}
void
-v850_call_table_data (int ignore)
+v850_call_table_data (int ignore ATTRIBUTE_UNUSED)
{
obj_elf_section_change_hook();
}
void
-v850_call_table_text (int ignore)
+v850_call_table_text (int ignore ATTRIBUTE_UNUSED)
{
obj_elf_section_change_hook();
}
void
-v850_bss (int ignore)
+v850_bss (int ignore ATTRIBUTE_UNUSED)
{
register int temp = get_absolute_expression ();
}
void
-v850_offset (int ignore)
+v850_offset (int ignore ATTRIBUTE_UNUSED)
{
int temp = get_absolute_expression ();
char c;
char * p;
int temp;
- int size;
+ unsigned int size;
symbolS * symbolP;
int have_align;
scommon_section = subseg_new (".scommon", 0);
- bfd_set_section_flags (stdoutput, scommon_section, applicable
+ bfd_set_section_flags (stdoutput, scommon_section,
+ (applicable
& (SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_DATA
- | SEC_HAS_CONTENTS) | SEC_IS_COMMON);
+ | SEC_HAS_CONTENTS)) | SEC_IS_COMMON);
}
S_SET_SEGMENT (symbolP, scommon_section);
break;
zcommon_section = subseg_new (".zcommon", 0);
- bfd_set_section_flags (stdoutput, zcommon_section, applicable
+ bfd_set_section_flags (stdoutput, zcommon_section,
+ (applicable
& (SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_DATA
- | SEC_HAS_CONTENTS) | SEC_IS_COMMON);
+ | SEC_HAS_CONTENTS)) | SEC_IS_COMMON);
}
S_SET_SEGMENT (symbolP, zcommon_section);
break;
tcommon_section = subseg_new (".tcommon", 0);
- bfd_set_section_flags (stdoutput, tcommon_section, applicable
+ bfd_set_section_flags (stdoutput, tcommon_section,
+ (applicable
& (SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_DATA
- | SEC_HAS_CONTENTS) | SEC_IS_COMMON);
+ | SEC_HAS_CONTENTS)) | SEC_IS_COMMON);
}
S_SET_SEGMENT (symbolP, tcommon_section);
break;
/* Make sure that the register number is allowable. */
if ( reg_number < 0
- || reg_number > 5
- && reg_number < 16
- || reg_number > 20
- )
+ || (reg_number > 5 && reg_number < 16)
+ || reg_number > 20
+ )
{
reg_number = -1;
}
if (* input_line_pointer != '{')
{
- int bits;
int reg;
int i;
{
if (c != 'm')
{
- /* xgettext:c-format */
- fprintf (stderr, _("unknown command line option: -%c%s\n"), c, arg);
+ if (c != 'a')
+ /* xgettext:c-format */
+ fprintf (stderr, _("unknown command line option: -%c%s\n"), c, arg);
return 0;
}
symbolS *
md_undefined_symbol (name)
- char * name;
+ char * name ATTRIBUTE_UNUSED;
{
return 0;
}
/* Very gross. */
void
md_convert_frag (abfd, sec, fragP)
- bfd * abfd;
+ bfd * abfd ATTRIBUTE_UNUSED;
asection * sec;
fragS * fragP;
{
{
if (operand->bits != 32)
{
- long min, max;
- offsetT test;
+ long min, max;
if ((operand->flags & V850_OPERAND_SIGNED) != 0)
{
struct v850_opcode * next_opcode;
const unsigned char * opindex_ptr;
int next_opindex;
- int relaxable;
+ int relaxable = 0;
unsigned long insn;
unsigned long insn_size;
char * f;
int i;
int match;
boolean extra_data_after_insn = false;
- unsigned extra_data_len;
- unsigned long extra_data;
+ unsigned extra_data_len = 0;
+ unsigned long extra_data = 0;
char * saved_input_line_pointer;
case BFD_RELOC_HI16_S:
fixP->fx_no_overflow = 1;
break;
+ default:
+ break;
}
}
else
arelent *
tc_gen_reloc (seg, fixp)
- asection * seg;
+ asection * seg ATTRIBUTE_UNUSED;
fixS * fixp;
{
arelent * reloc;
int
md_estimate_size_before_relax (fragp, seg)
fragS * fragp;
- asection * seg;
+ asection * seg ATTRIBUTE_UNUSED;
{
if (fragp->fr_subtype == 0)
fragp->fr_var = 4;
md_apply_fix3 (fixp, valuep, seg)
fixS * fixp;
valueT * valuep;
- segT seg;
+ segT seg ATTRIBUTE_UNUSED;
{
valueT value;
char * where;
if (S_IS_EXTERN (fixP->fx_addsy))
return 0;
+ /* Similarly for weak symbols. */
if (S_IS_WEAK (fixP->fx_addsy))
return 0;