+2016-07-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+
+ * config/tc-z8k.c (newfix): Make type of type argument
+ bfd_reloc_code_real_type.
+ (apply_fix): Likewise.
+
2016-07-16 Alan Modra <amodra@gmail.com>
* config/tc-epiphany.c: Don't include libbfd.h.
static char buffer[20];
static void
-newfix (int ptr, int type, int size, expressionS *operand)
+newfix (int ptr, bfd_reloc_code_real_type type, int size, expressionS *operand)
{
- int is_pcrel = 0;
fixS *fixP;
/* Size is in nibbles. */
|| operand->X_op_symbol
|| operand->X_add_number)
{
+ int is_pcrel;
switch(type)
{
case BFD_RELOC_8_PCREL:
case BFD_RELOC_Z8K_CALLR:
case BFD_RELOC_Z8K_DISP7:
is_pcrel = 1;
+ break;
+ default:
+ is_pcrel = 0;
+ break;
}
fixP = fix_new_exp (frag_now, ptr, size / 2,
operand, is_pcrel, type);
}
static char *
-apply_fix (char *ptr, int type, expressionS *operand, int size)
+apply_fix (char *ptr, bfd_reloc_code_real_type type, expressionS *operand,
+ int size)
{
long n = operand->X_add_number;