aboutsummaryrefslogtreecommitdiff
path: root/binutils/sysdep.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-08-12 17:47:51 +0930
committerAlan Modra <amodra@gmail.com>2022-08-13 14:11:27 +0930
commit31e5a3a3807e7d5b43845d0d17ddfd1a8692752c (patch)
tree3fc68ca03ec7226ba6af6e92b60d79e0bb747d41 /binutils/sysdep.h
parent625d49fce79d6154de07edc00b36335e7e7a0479 (diff)
downloadbinutils-31e5a3a3807e7d5b43845d0d17ddfd1a8692752c.zip
binutils-31e5a3a3807e7d5b43845d0d17ddfd1a8692752c.tar.gz
binutils-31e5a3a3807e7d5b43845d0d17ddfd1a8692752c.tar.bz2
Make dwarf_vma uint64_t
This replaces dwarf_vma, dwarf_size_type and dwarf_signed_vma with uint64_t and int64_t everywhere. The patch also gets rid of DWARF_VMA_FMT since we can't use that with uint64_t, and all of the configure support for deciding the flavour of HOST_WIDEST_INT. dwarf_vmatoa also disappears, replacing most uses with one of PRIx64, PRId64 or PRIu64. Printing of size_t and ptrdiff_t values now use %z and %t rather than by casting to unsigned long. Also, most warning messages that used 0x%lx or similar now use %#lx and a few that didn't print the 0x hex prefix now also use %#. The patch doesn't change normal readelf output, except in odd cases where values previously might have been truncated.
Diffstat (limited to 'binutils/sysdep.h')
-rw-r--r--binutils/sysdep.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/binutils/sysdep.h b/binutils/sysdep.h
index f2991c7..ecb1d1a 100644
--- a/binutils/sysdep.h
+++ b/binutils/sysdep.h
@@ -120,14 +120,6 @@ extern char **environ;
#include <limits.h>
-#if SIZEOF_LONG_LONG > SIZEOF_LONG
-/* We can't use any bfd types here since readelf may define BFD64 and
- objdump may not. */
-#define HOST_WIDEST_INT long long
-#else
-#define HOST_WIDEST_INT long
-#endif
-
#define POISON_BFD_BOOLEAN 1
#endif /* _BIN_SYSDEP_H */