aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-nds32.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-02-09 16:34:24 +0000
committerNick Clifton <nickc@redhat.com>2016-02-09 16:34:24 +0000
commit609332f15cc2ad651d0ebd573010595a4593e89a (patch)
treeae02dcac97f08c1001e9032db4e07b9329c335d0 /bfd/elf32-nds32.c
parent1e94266c4db633f7defaf4bb68c74fd09a9cf9e2 (diff)
downloadgdb-609332f15cc2ad651d0ebd573010595a4593e89a.zip
gdb-609332f15cc2ad651d0ebd573010595a4593e89a.tar.gz
gdb-609332f15cc2ad651d0ebd573010595a4593e89a.tar.bz2
Fix compile time warnings building the binutils with a gcc6 compiler.
include * opcode/metag.h (metag_scondtab): Mark as possibly unused. * opcode/nds32.h (nds32_r45map): Likewise. (nds32_r54map): Likewise. * opcode/visium.h (gen_reg_table): Likewise. (fp_reg_table, cc_table, opcode_table): Likewise. bfd * oasys.c (oasys_archive_p): Fix indentation. * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned constant for left shifting.
Diffstat (limited to 'bfd/elf32-nds32.c')
-rw-r--r--bfd/elf32-nds32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-nds32.c b/bfd/elf32-nds32.c
index ffad0db..5fffbf2 100644
--- a/bfd/elf32-nds32.c
+++ b/bfd/elf32-nds32.c
@@ -12344,8 +12344,8 @@ nds32_elf_relax_section (bfd *abfd, asection *sec,
Elf_Internal_Rela *tmp_rel;
/* Pad to alignment boundary. Only handle current section alignment. */
- sec_size_align = (sec->size + (~((-1) << sec->alignment_power)))
- & ((-1) << sec->alignment_power);
+ sec_size_align = (sec->size + (~((-1U) << sec->alignment_power)))
+ & ((-1U) << sec->alignment_power);
if ((sec_size_align - sec->size) & 0x2)
{
insn16 = NDS32_NOP16;