aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-05-27 12:37:21 +0930
committerAlan Modra <amodra@gmail.com>2022-05-27 22:08:59 +0930
commit0e3c1eebb22e0ade28b619fb41f42d66ed6fb145 (patch)
tree8a886ac9438d7e9268807c07585eef11a146714d /opcodes
parentaa9b5dbc0f30855aa23034cbd78a1f2025cb9fa9 (diff)
downloadgdb-0e3c1eebb22e0ade28b619fb41f42d66ed6fb145.zip
gdb-0e3c1eebb22e0ade28b619fb41f42d66ed6fb145.tar.gz
gdb-0e3c1eebb22e0ade28b619fb41f42d66ed6fb145.tar.bz2
Remove use of bfd_uint64_t and similar
Requiring C99 means that uses of bfd_uint64_t can be replaced with uint64_t, and similarly for bfd_int64_t, BFD_HOST_U_64_BIT, and BFD_HOST_64_BIT. This patch does that, removes #ifdef BFD_HOST_* and tidies a few places that print 64-bit values.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/csky-dis.c2
-rw-r--r--opcodes/csky-opc.h4
-rw-r--r--opcodes/ia64-dis.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/opcodes/csky-dis.c b/opcodes/csky-dis.c
index b7c8336..99103ff 100644
--- a/opcodes/csky-dis.c
+++ b/opcodes/csky-dis.c
@@ -49,7 +49,7 @@ struct csky_dis_info
disassemble_info *info;
/* Opcode information. */
struct csky_opcode_info const *opinfo;
- BFD_HOST_U_64_BIT isa;
+ uint64_t isa;
/* The value of operand to show. */
int value;
/* Whether to look up/print a symbol name. */
diff --git a/opcodes/csky-opc.h b/opcodes/csky-opc.h
index b65efe1..d2db90e 100644
--- a/opcodes/csky-opc.h
+++ b/opcodes/csky-opc.h
@@ -271,8 +271,8 @@ struct csky_opcode
/* Encodings for 32-bit opcodes. */
struct csky_opcode_info op32[OP_TABLE_NUM];
/* Instruction set flag. */
- BFD_HOST_U_64_BIT isa_flag16;
- BFD_HOST_U_64_BIT isa_flag32;
+ uint64_t isa_flag16;
+ uint64_t isa_flag32;
/* Whether this insn needs relocation, 0: no, !=0: yes. */
signed int reloc16;
signed int reloc32;
diff --git a/opcodes/ia64-dis.c b/opcodes/ia64-dis.c
index 5eb3727..e76f403 100644
--- a/opcodes/ia64-dis.c
+++ b/opcodes/ia64-dis.c
@@ -73,7 +73,7 @@ print_insn_ia64 (bfd_vma memaddr, struct disassemble_info *info)
const struct ia64_operand *odesc;
const struct ia64_opcode *idesc;
const char *err, *str, *tname;
- BFD_HOST_U_64_BIT value;
+ uint64_t value;
bfd_byte bundle[16];
enum ia64_unit unit;
char regname[16];