aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-sh.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-08-03 09:30:50 +0000
committerAlexandre Oliva <aoliva@redhat.com>2000-08-03 09:30:50 +0000
commit61ff1804345161aac9c6d05233db27118b2224b0 (patch)
treeaa69e644fecaa70931630c37c560de6a153a6100 /bfd/elf32-sh.c
parent98691afe51bfadbf15011deb2bf7fbd37e428edb (diff)
downloadfsf-binutils-gdb-61ff1804345161aac9c6d05233db27118b2224b0.zip
fsf-binutils-gdb-61ff1804345161aac9c6d05233db27118b2224b0.tar.gz
fsf-binutils-gdb-61ff1804345161aac9c6d05233db27118b2224b0.tar.bz2
* elf32-sh.c (sh_elf_reloc_loop): Warning removal.
Diffstat (limited to 'bfd/elf32-sh.c')
-rw-r--r--bfd/elf32-sh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index 7fe30ef..a4954f8 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -455,7 +455,7 @@ static reloc_howto_type sh_elf_howto_table[] =
static bfd_reloc_status_type
sh_elf_reloc_loop (r_type, input_bfd, input_section, contents, addr,
symbol_section, start, end)
- int r_type;
+ int r_type ATTRIBUTE_UNUSED;
bfd *input_bfd;
asection *input_section;
bfd_byte *contents;
@@ -517,7 +517,7 @@ sh_elf_reloc_loop (r_type, input_bfd, input_section, contents, addr,
for (last_ptr = ptr, ptr -= 4; ptr >= start_ptr && IS_PPI (ptr);)
ptr -= 2;
ptr += 2;
- diff = last_ptr - ptr >> 1;
+ diff = (last_ptr - ptr) >> 1;
cum_diff += diff & 1;
cum_diff += diff;
}
@@ -554,7 +554,7 @@ sh_elf_reloc_loop (r_type, input_bfd, input_section, contents, addr,
if (x < -128 || x > 127)
return bfd_reloc_overflow;
- x = insn & ~0xff | x & 0xff;
+ x = (insn & ~0xff) | (x & 0xff);
bfd_put_16 (input_bfd, x, contents + addr);
return bfd_reloc_ok;