These are all innocuous but unneeded. pdp11 and ppc are only formatting.
md_apply_fix (fixS *fixP, valueT *valP, segT seg)
{
/* This assignment truncates upper bits if valueT is 64 bits (as with
- --enable-64-bit-bfd), which is fine here, though we cast to avoid
- any compiler warnings. */
- long val = (long) *valP;
+ --enable-64-bit-bfd), which is fine here. */
+ long val = *valP;
char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
if (fixP->fx_addsy == 0 && !fixP->fx_pcrel)
md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
{
char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
- int value = (int)*valP;
+ int value = *valP;
switch (fixP->fx_r_type)
{
const char * file = fixP->fx_file ? fixP->fx_file : _("unknown");
const char * symname;
/* Note: use offsetT because it is signed, valueT is unsigned. */
- offsetT val = (offsetT) * valp;
+ offsetT val = *valp;
int i;
struct op_code_struct * opcode1;
unsigned long inst1;
void
md_apply_fix (fixS *fixP, valueT *valP, segT segment)
{
- char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
+ char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
/* Note: use offsetT because it is signed, valueT is unsigned. */
- offsetT val = (offsetT) * valP;
- segT symsec
- = (fixP->fx_addsy == NULL
- ? absolute_section : S_GET_SEGMENT (fixP->fx_addsy));
+ offsetT val = *valP;
+ segT symsec = (fixP->fx_addsy == NULL
+ ? absolute_section : S_GET_SEGMENT (fixP->fx_addsy));
/* If the fix is relative to a symbol which is not defined, or, (if
pcrel), not in the same segment as the fix, we cannot resolve it
{
char * fixpos = fixP->fx_where + fixP->fx_frag->fr_literal;
int size = 0;
- int value = (int) * valP;
+ int value = *valP;
gas_assert (fixP->fx_r_type < BFD_RELOC_UNUSED);
void
md_apply_fix (fixS *fixP,
- valueT * valP,
- segT seg ATTRIBUTE_UNUSED)
+ valueT *valP,
+ segT seg ATTRIBUTE_UNUSED)
{
valueT code;
valueT mask;
- valueT val = * valP;
+ valueT val = *valP;
char *buf;
int shift;
int size;
void
md_apply_fix (fixS *fixP, valueT *valP, segT seg)
{
- valueT value = * valP;
+ valueT value = *valP;
offsetT fieldval;
const struct powerpc_operand *operand;
return;
op = f->fx_frag->fr_literal + f->fx_where;
- val = (unsigned long) * t;
+ val = *t;
if (f->fx_addsy == NULL)
f->fx_done = 1;
}
void
-md_apply_fix (struct fix * f ATTRIBUTE_UNUSED,
- valueT * t ATTRIBUTE_UNUSED,
- segT s ATTRIBUTE_UNUSED)
+md_apply_fix (struct fix *f,
+ valueT *t,
+ segT s ATTRIBUTE_UNUSED)
{
/* Instruction bytes are always little endian. */
char * op;
#define OP4(x) op[target_big_endian ? 3-x : x]
op = f->fx_frag->fr_literal + f->fx_where;
- val = (unsigned long) * t;
+ val = *t;
/* Opcode words are always the same endian. Data words are either
big or little endian. */
char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
int lowbyte = target_big_endian ? 1 : 0;
int highbyte = target_big_endian ? 0 : 1;
- long val = (long) *valP;
+ long val = *valP;
long max, min;
int shift;
md_apply_fix (fixS * fixP, valueT * valP, segT seg ATTRIBUTE_UNUSED)
{
char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
- long val = (long) *valP;
+ valueT val = *valP;
if (fixP->fx_pcrel)
{