SAFE_BYTE_GET64
authorAlan Modra <amodra@gmail.com>
Wed, 12 May 2021 08:18:13 +0000 (17:48 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 12 May 2021 11:40:33 +0000 (21:10 +0930)
commitaf2ddf69ab85add3155cf55f65e6e9f3c9bcb29a
treeda4e33811d28a4f7cda938183b3d349780b10c8b
parent0d872fca0293041a5cb7c54a4a04855323563d8e
SAFE_BYTE_GET64

Functions dealing with lack of a 64-bit integer type can disappear now
that we require C99.  Printing using dwarf_vmatoa is better too.

binutils/
* dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
(skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
SAFE_BYTE_GET_AND_INC.
(read_and_display_attr_value): Likewise.  Print using dwarf_vmatoa.
(process_debug_info, process_cu_tu_index): Likewise.
* elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
(byte_get, byte_get_little_endian, byte_get_big_endian),
(byte_get_signed): Make size param unsigned.  Remove code dealing
with 4-byte elf_vma.
(byte_get_64): Delete.
* elfcomm.h  (byte_put, byte_put_little_endian, byte_put_big_endian),
(byte_get, byte_get_little_endian, byte_get_big_endian),
(byte_get_signed): Update prototypes.
(byte_get_64): Delete.
gas/
* testsuite/gas/elf/dwarf-5-file0.d: Update.
* testsuite/gas/i386/dwarf5-line-1.d: Update.
binutils/ChangeLog
binutils/dwarf.c
binutils/elfcomm.c
binutils/elfcomm.h
gas/ChangeLog
gas/testsuite/gas/elf/dwarf-5-file0.d
gas/testsuite/gas/i386/dwarf5-line-1.d