aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-i386.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r--gas/config/tc-i386.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index b0a22bb..8fb8a7e 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -11408,8 +11408,8 @@ build_modrm_byte (void)
i.op[op].disps = exp;
exp->X_op = O_constant;
exp->X_add_number = 0;
- exp->X_add_symbol = (symbolS *) 0;
- exp->X_op_symbol = (symbolS *) 0;
+ exp->X_add_symbol = NULL;
+ exp->X_op_symbol = NULL;
}
}
else
@@ -16439,7 +16439,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED, segT sec ATTRIBUTE_UNUSED,
}
/* Now put displacement after opcode. */
md_number_to_chars ((char *) where_to_put_displacement,
- (valueT) (displacement_from_opcode_start - extension),
+ displacement_from_opcode_start - extension,
DISP_SIZE_FROM_RELAX_STATE (fragP->fr_subtype));
fragP->fr_fix += extension;
}
@@ -16825,12 +16825,12 @@ parse_real_register (const char *reg_string, char **end_op)
while ((*p++ = register_chars[(unsigned char) *s]) != '\0')
{
if (p >= reg_name_given + MAX_REG_NAME_SIZE)
- return (const reg_entry *) NULL;
+ return NULL;
s++;
}
if (is_part_of_name (*s))
- return (const reg_entry *) NULL;
+ return NULL;
*end_op = (char *) s;
@@ -16843,7 +16843,7 @@ parse_real_register (const char *reg_string, char **end_op)
&& !cpu_arch_flags.bitfield.cpu287
&& !cpu_arch_flags.bitfield.cpu387
&& !allow_pseudo_reg)
- return (const reg_entry *) NULL;
+ return NULL;
if (is_whitespace (*s))
++s;
@@ -16866,7 +16866,7 @@ parse_real_register (const char *reg_string, char **end_op)
}
}
/* We have "%st(" then garbage. */
- return (const reg_entry *) NULL;
+ return NULL;
}
}
@@ -18126,7 +18126,7 @@ md_section_align (segT segment, valueT size)
work. */
int align = bfd_section_alignment (segment);
- return ((size + (1 << align) - 1) & (-((valueT) 1 << align)));
+ return (size + ((valueT) 1 << align) - 1) & -((valueT) 1 << align);
}
#endif
@@ -18148,7 +18148,7 @@ s_bss (int ignore ATTRIBUTE_UNUSED)
int temp;
temp = get_absolute_expression ();
- subseg_set (bss_section, (subsegT) temp);
+ subseg_set (bss_section, temp);
demand_empty_rest_of_line ();
}
@@ -18328,7 +18328,7 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp)
_("symbol size computation overflow"));
fixp->fx_addsy = NULL;
fixp->fx_subsy = NULL;
- md_apply_fix (fixp, (valueT *) &value, NULL);
+ md_apply_fix (fixp, &value, NULL);
return NULL;
}
if (!fixp->fx_addsy || fixp->fx_subsy)