Fix compile time warnings generated when compiling with clang.
bfd * bout.c (b_out_slurp_reloc_table): Cast constant to unsigned in order to avoid problems with left shifting negative values. (abs32code): Likewise. * mach-o.c (FILE_ALIGN): Likewise. * coff-rs6000.c (xcoff_debug_sections): Delete unused static array. * elf32-visium.c (visium_reloc_map): Likewise. * elf32-arm.c (elf32_arm_final_link_relocate): Remove useless calls to abs function. * elf32-frv.c (_frvfdpic_relax_tls_entries): Likewise. * elf32-score.c (score_elf_final_link_relocate): Likewise. * elf32-score7.c (score_elf_final_link_relocate): Likewise. * elf32-i860.c (i860_howto_pc26_reloc): Use multiplication instead of shifting to create a negative mask. * elf32-msp430.c (elf_backend_special_sections): Define. * elfxx-mips.c (got_ofst_reloc_p): Delete unused function. (got_hi16_reloc_p): Delete unused function. * ppcboot.c (ppcboot_bfd_print_private_bfd_data): Fix test of partition name. gas * config/tc-ppc.c (insn_validate): Cast PPC_OPSHIFT_INV to an int. opcode * ppc.h (PPC_OPSHIFT_INV): Use an unsigned constant when left shifting. ld * emultempl/elf32.em (ehdr_start_empty): New static variable. (before_allocation): Use it to initialise ehdr_start_save. * emultempl/pe.em (write_build_id): Remove useless double parenthesis. * emultempl/pep.em (write_build_id): Likewise. opcodes * bfin-dis.c (fmtconst): Remove unnecessary call to the abs function. * tic30-dis.c (print_branch): Likewise. * cgen-asm.c (cgen_parse_signed_integer): Cast integer to signed value before left shifting. * fr30-ibld.c (fr30_cgen_extract_operand): Likewise. * hppa-dis.c (print_insn_hppa): Likewise. * mips-dis.c (mips_cp0sel_names_mipsr5900): Delete unused static array. * msp430-dis.c (msp430_singleoperand): Likewise. (msp430_doubleoperand): Likewise. (print_insn_msp430): Likewise. * nds32-asm.c (parse_operand): Likewise. * sh-opc.h (MASK): Likewise. * v850-dis.c (get_operand_value): Likewise.
Showing
- bfd/ChangeLog 22 additions, 0 deletionsbfd/ChangeLog
- bfd/bout.c 2 additions, 2 deletionsbfd/bout.c
- bfd/coff-rs6000.c 0 additions, 28 deletionsbfd/coff-rs6000.c
- bfd/elf32-arm.c 18 additions, 14 deletionsbfd/elf32-arm.c
- bfd/elf32-frv.c 1 addition, 1 deletionbfd/elf32-frv.c
- bfd/elf32-i860.c 2 additions, 2 deletionsbfd/elf32-i860.c
- bfd/elf32-msp430.c 3 additions, 0 deletionsbfd/elf32-msp430.c
- bfd/elf32-score.c 2 additions, 2 deletionsbfd/elf32-score.c
- bfd/elf32-score7.c 2 additions, 2 deletionsbfd/elf32-score7.c
- bfd/elf32-visium.c 0 additions, 26 deletionsbfd/elf32-visium.c
- bfd/elfxx-mips.c 0 additions, 12 deletionsbfd/elfxx-mips.c
- bfd/mach-o.c 1 addition, 1 deletionbfd/mach-o.c
- bfd/ppcboot.c 1 addition, 1 deletionbfd/ppcboot.c
- gas/ChangeLog 4 additions, 0 deletionsgas/ChangeLog
- gas/config/tc-ppc.c 1 addition, 1 deletiongas/config/tc-ppc.c
- include/opcode/ChangeLog 5 additions, 0 deletionsinclude/opcode/ChangeLog
- include/opcode/ppc.h 1 addition, 1 deletioninclude/opcode/ppc.h
- ld/ChangeLog 8 additions, 0 deletionsld/ChangeLog
- ld/emultempl/elf32.em 6 additions, 1 deletionld/emultempl/elf32.em
- ld/emultempl/pe.em 2 additions, 2 deletionsld/emultempl/pe.em
Loading
Please register or sign in to comment