diff options
author | Alan Modra <amodra@gmail.com> | 2017-07-03 21:59:30 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-07-03 22:03:48 +0930 |
commit | ce9116fdbfba8926a7bc25613d39bc3b2ed942fc (patch) | |
tree | 78a13ca90ae15c14c35ee77807cde3ba98363f8d /bfd/coff-x86_64.c | |
parent | cd9af601e60240bb38dc58ce7e69abd5f2972ec7 (diff) | |
download | gdb-ce9116fdbfba8926a7bc25613d39bc3b2ed942fc.zip gdb-ce9116fdbfba8926a7bc25613d39bc3b2ed942fc.tar.gz gdb-ce9116fdbfba8926a7bc25613d39bc3b2ed942fc.tar.bz2 |
BFD long long cleanup
long long isn't supposed to be used without a configure test, to
support ancient compilers. Probably not terribly important nowadays.
* bfd.c (bfd_scan_vma): Don't use long long unless HAVE_LONG_LONG.
* coff-rs6000.c (FMT20): Handle hosts with 64-bit long and
Microsoft C library variant of long long format specifier.
(PRINT20): Cast value to bfd_uint64_t not long long.
* coffcode.h (coff_print_aux): Use BFD_VMA_FMT.
* coff-x86_64.c (coff_amd64_reloc): Use bfd_uint64_t rather than
long long. Don't cast to bfd_vma.
* elf32-score.c (score3_bfd_getl48): Likewise.
* vms-alpha.c (_bfd_vms_slurp_eisd): Likewise.
Diffstat (limited to 'bfd/coff-x86_64.c')
-rw-r--r-- | bfd/coff-x86_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/coff-x86_64.c b/bfd/coff-x86_64.c index 928fa7f..de22822 100644 --- a/bfd/coff-x86_64.c +++ b/bfd/coff-x86_64.c @@ -182,9 +182,9 @@ coff_amd64_reloc (bfd *abfd, case 4: { - long long x = bfd_get_64 (abfd, addr); + bfd_uint64_t x = bfd_get_64 (abfd, addr); DOIT (x); - bfd_put_64 (abfd, (bfd_vma) x, addr); + bfd_put_64 (abfd, x, addr); } break; |