From: Ken Raeburn Date: Tue, 10 Jan 1995 01:45:53 +0000 (+0000) Subject: * config/tc-mips.c (RELAX_RELOC1, RELAX_RELOC2): Cast values to bfd_vma before X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=483971bdbfba1ce02604cdfaf22648d46f71eef3;p=binutils-gdb.git * config/tc-mips.c (RELAX_RELOC1, RELAX_RELOC2): Cast values to bfd_vma before subtracting. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 5c083d59181..8c0cc3a0d63 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ Mon Jan 9 16:22:28 1995 Ken Raeburn + * config/tc-mips.c (RELAX_RELOC1, RELAX_RELOC2): Cast values to + bfd_vma before subtracting. + * config/obj-coff.c (size_section): Handle rs_space like rs_fill, but make sure fr_symbol is null. (fill_section): Ditto. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 9a5df7b0b6c..4710a7ca74f 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -325,8 +325,8 @@ static int prev_prev_insn_unreordered; | ((warn) ? 1 : 0))) #define RELAX_OLD(i) (((i) >> 24) & 0xff) #define RELAX_NEW(i) (((i) >> 16) & 0xff) -#define RELAX_RELOC1(i) ((((i) >> 9) & 0x7f) - 64) -#define RELAX_RELOC2(i) ((((i) >> 2) & 0x7f) - 64) +#define RELAX_RELOC1(i) ((bfd_vma)(((i) >> 9) & 0x7f) - 64) +#define RELAX_RELOC2(i) ((bfd_vma)(((i) >> 2) & 0x7f) - 64) #define RELAX_RELOC3(i) (((i) >> 1) & 1) #define RELAX_WARN(i) ((i) & 1)