* config/tc-mips.c (RELAX_RELOC1, RELAX_RELOC2): Cast values to bfd_vma before

subtracting.
This commit is contained in:
Ken Raeburn 1995-01-10 01:45:53 +00:00
parent aac4d5a77f
commit 483971bdbf
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
Mon Jan 9 16:22:28 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
* 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.

View File

@ -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)