PR24392, Clang warning Wtautological-constant-out-of-range-compare
authorAlan Modra <amodra@gmail.com>
Thu, 28 Mar 2019 06:23:32 +0000 (16:53 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 28 Mar 2019 06:40:31 +0000 (17:10 +1030)
commit242a115951fe55e62036bac555017eb817ca1aa6
treec7e676c00296cd37ed77da28fa4b43d43e835887
parent96a86c01d119372f4af5aff2501d3104e6c1a8e3
PR24392, Clang warning Wtautological-constant-out-of-range-compare

PR 24392
* configure.ac: Invoke AC_CHECK_SIZEOF(int).
* configure: Regenerate.
* coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
workaround with SIZEOF_LONG vs. SIZEOF_INT check.
* elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
* elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
* mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
bfd/ChangeLog
bfd/coffgen.c
bfd/configure
bfd/configure.ac
bfd/elf.c
bfd/elf64-sparc.c
bfd/mach-o.c