diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-31 10:36:19 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-31 10:49:23 +1030 |
commit | 78933a4ad9ae9c2e274d41e6b3036ea582c47810 (patch) | |
tree | d88281747f95a9e279e16043aaf57c7093481d85 /opcodes/ppc-dis.c | |
parent | 0a1b45a20eaa98d4d9026dc1fd17e79e741183af (diff) | |
download | binutils-gdb-78933a4ad9ae9c2e274d41e6b3036ea582c47810.tar.gz |
Use bool in opcodes
cpu/
* frv.opc: Replace bfd_boolean with bool, FALSE with false, and
TRUE with true throughout.
opcodes/
* sysdep.h (POISON_BFD_BOOLEAN): Define.
* aarch64-asm-2.c, * aarch64-asm.c, * aarch64-asm.h,
* aarch64-dis-2.c, * aarch64-dis.c, * aarch64-dis.h,
* aarch64-gen.c, * aarch64-opc.c, * aarch64-opc.h, * arc-dis.c,
* arc-dis.h, * arc-fxi.h, * arc-opc.c, * arm-dis.c, * bfin-dis.c,
* cris-dis.c, * csky-dis.c, * csky-opc.h, * dis-buf.c,
* disassemble.c, * frv-opc.c, * frv-opc.h, * h8300-dis.c,
* i386-dis.c, * m68k-dis.c, * metag-dis.c, * microblaze-dis.c,
* microblaze-dis.h, * micromips-opc.c, * mips-dis.c,
* mips-formats.h, * mips-opc.c, * mips16-opc.c, * mmix-dis.c,
* msp430-dis.c, * nds32-dis.c, * nfp-dis.c, * nios2-dis.c,
* ppc-dis.c, * riscv-dis.c, * score-dis.c, * score7-dis.c,
* tic6x-dis.c, * v850-dis.c, * vax-dis.c, * wasm32-dis.c,
* xtensa-dis.c: Replace bfd_boolean with bool, FALSE with false,
and TRUE with true throughout.
Diffstat (limited to 'opcodes/ppc-dis.c')
-rw-r--r-- | opcodes/ppc-dis.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index 841ba092b85..dc0825a811e 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -399,14 +399,14 @@ static unsigned short vle_opcd_indices[VLE_OPCD_SEGS + 1]; #define SPE2_OPCD_SEGS (1 + SPE2_XOP_TO_SEG (SPE2_XOP (-1))) static unsigned short spe2_opcd_indices[SPE2_OPCD_SEGS + 1]; -static bfd_boolean +static bool ppc_symbol_is_valid (asymbol *sym, struct disassemble_info *info ATTRIBUTE_UNUSED) { elf_symbol_type * est; if (sym == NULL) - return FALSE; + return false; est = elf_symbol_from (sym); @@ -416,9 +416,9 @@ ppc_symbol_is_valid (asymbol *sym, && ELF_ST_VISIBILITY (est->internal_elf_sym.st_other) == STV_HIDDEN && ELF_ST_BIND (est->internal_elf_sym.st_info) == STB_LOCAL && ELF_ST_TYPE (est->internal_elf_sym.st_info) == STT_NOTYPE) - return FALSE; + return false; - return TRUE; + return true; } /* Calculate opcode table indices to speed up disassembly, @@ -530,7 +530,7 @@ operand_value_powerpc (const struct powerpc_operand *operand, /* Determine whether the optional operand(s) should be printed. */ -static bfd_boolean +static bool skip_optional_operands (const unsigned char *opindex, uint64_t insn, ppc_cpu_t dialect) { @@ -541,7 +541,7 @@ skip_optional_operands (const unsigned char *opindex, { operand = &powerpc_operands[*opindex]; if ((operand->flags & PPC_OPERAND_NEXT) != 0) - return FALSE; + return false; if ((operand->flags & PPC_OPERAND_OPTIONAL) != 0) { /* Negative count is used as a flag to extract function. */ @@ -549,11 +549,11 @@ skip_optional_operands (const unsigned char *opindex, if (operand_value_powerpc (operand, insn, dialect) != ppc_optional_operand_value (operand, insn, dialect, num_optional)) - return FALSE; + return false; } } - return TRUE; + return true; } /* Find a match for INSN in the opcode table, given machine DIALECT. */ @@ -683,7 +683,7 @@ lookup_vle (uint64_t insn) { uint64_t table_opcd = opcode->opcode; uint64_t table_mask = opcode->mask; - bfd_boolean table_op_is_short = PPC_OP_SE_VLE(table_mask); + bool table_op_is_short = PPC_OP_SE_VLE(table_mask); uint64_t insn2; const unsigned char *opindex; const struct powerpc_operand *operand; @@ -861,7 +861,7 @@ print_insn_powerpc (bfd_vma memaddr, need_7spaces = 7, need_paren } op_separator; - bfd_boolean skip_optional; + bool skip_optional; int blanks; (*info->fprintf_func) (info->stream, "%s", opcode->name); @@ -872,7 +872,7 @@ print_insn_powerpc (bfd_vma memaddr, /* Now extract and print the operands. */ op_separator = blanks; - skip_optional = FALSE; + skip_optional = false; for (opindex = opcode->operands; *opindex != 0; opindex++) { int64_t value; |