]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/tc-arm.c
Use bool in gas
[thirdparty/binutils-gdb.git] / gas / config / tc-arm.c
index e7e7f3caf85560b0eb42a391d140c836c64ed665..ed5e9d92ae4d62f5d4b1342dada4920841bc982e 100644 (file)
@@ -109,7 +109,7 @@ enum arm_float_abi
 
 /* Perform range checks on positive and negative overflows by checking if the
    VALUE given fits within the range of an BITS sized immediate.  */
-static bfd_boolean out_of_range_p (offsetT value, offsetT bits)
+static bool out_of_range_p (offsetT value, offsetT bits)
  {
   gas_assert (bits < (offsetT)(sizeof (value) * 8));
   return (value & ~((1 << bits)-1))
@@ -146,18 +146,18 @@ static arm_feature_set arm_arch_used;
 static arm_feature_set thumb_arch_used;
 
 /* Flags stored in private area of BFD structure.  */
-static int uses_apcs_26             = FALSE;
-static int atpcs            = FALSE;
-static int support_interwork = FALSE;
-static int uses_apcs_float   = FALSE;
-static int pic_code         = FALSE;
-static int fix_v4bx         = FALSE;
+static int uses_apcs_26             = false;
+static int atpcs            = false;
+static int support_interwork = false;
+static int uses_apcs_float   = false;
+static int pic_code         = false;
+static int fix_v4bx         = false;
 /* Warn on using deprecated features.  */
-static int warn_on_deprecated = TRUE;
-static int warn_on_restrict_it = FALSE;
+static int warn_on_deprecated = true;
+static int warn_on_restrict_it = false;
 
 /* Understand CodeComposer Studio assembly syntax.  */
-bfd_boolean codecomposer_syntax = FALSE;
+bool codecomposer_syntax = false;
 
 /* Variables that we set while parsing command-line options.  Once all
    options have been read we re-process these values to set the real
@@ -388,7 +388,7 @@ static char selected_cpu_name[20];
 extern FLONUM_TYPE generic_floating_point_number;
 
 /* Return if no cpu was selected on command-line.  */
-static bfd_boolean
+static bool
 no_cpu_selected (void)
 {
   return ARM_FEATURE_EQUAL (selected_cpu, arm_arch_none);
@@ -403,7 +403,7 @@ static int meabi_flags = EF_ARM_EABI_UNKNOWN;
 
 static int attributes_set_explicitly[NUM_KNOWN_OBJ_ATTRIBUTES];
 
-bfd_boolean
+bool
 arm_is_eabi (void)
 {
   return (EF_ARM_EABI_VERSION (meabi_flags) >= EF_ARM_EABI_VER4);
@@ -458,7 +458,7 @@ static int implicit_it_mode = IMPLICIT_IT_MODE_ARM;
        preceding IT instructions.  Unlike ARM mode, you cannot use a
        conditional affix except in the scope of an IT instruction.  */
 
-static bfd_boolean unified_syntax = FALSE;
+static bool unified_syntax = false;
 
 /* An immediate operand can start with #, and ld*, st*, pld operands
    can contain [ and ].  We need to tell APP not to elide whitespace
@@ -965,7 +965,7 @@ static htab_t  arm_barrier_opt_hsh;
              <insn>  */
 
 symbolS *  last_label_seen;
-static int label_is_thumb_function_name = FALSE;
+static int label_is_thumb_function_name = false;
 
 /* Literal pool structure.  Held on a per-section
    and per-sub-section basis.  */
@@ -1121,11 +1121,11 @@ skip_past_char (char ** str, char c)
 
 /* Return TRUE if anything in the expression is a bignum.  */
 
-static bfd_boolean
+static bool
 walk_no_bignums (symbolS * sp)
 {
   if (symbol_get_value_expression (sp)->X_op == O_big)
-    return TRUE;
+    return true;
 
   if (symbol_get_value_expression (sp)->X_add_symbol)
     {
@@ -1134,10 +1134,10 @@ walk_no_bignums (symbolS * sp)
                  && walk_no_bignums (symbol_get_value_expression (sp)->X_op_symbol)));
     }
 
-  return FALSE;
+  return false;
 }
 
-static bfd_boolean in_my_get_expression = FALSE;
+static bool in_my_get_expression = false;
 
 /* Third argument to my_get_expression.         */
 #define GE_NO_PREFIX 0
@@ -1181,9 +1181,9 @@ my_get_expression (expressionS * ep, char ** str, int prefix_mode)
 
   save_in = input_line_pointer;
   input_line_pointer = *str;
-  in_my_get_expression = TRUE;
+  in_my_get_expression = true;
   expression (ep);
-  in_my_get_expression = FALSE;
+  in_my_get_expression = false;
 
   if (ep->X_op == O_illegal || ep->X_op == O_absent)
     {
@@ -1673,7 +1673,7 @@ record_feature_use (const arm_feature_set *feature)
 
 /* If the given feature available in the selected CPU, mark it as used.
    Returns TRUE iff feature is available.  */
-static bfd_boolean
+static bool
 mark_feature_used (const arm_feature_set *feature)
 {
 
@@ -1683,17 +1683,17 @@ mark_feature_used (const arm_feature_set *feature)
       && ARM_CPU_IS_ANY (cpu_variant))
     {
       first_error (BAD_MVE_AUTO);
-      return FALSE;
+      return false;
     }
   /* Ensure the option is valid on the current architecture.  */
   if (!ARM_CPU_HAS_FEATURE (cpu_variant, *feature))
-    return FALSE;
+    return false;
 
   /* Add the appropriate architecture feature for the barrier option used.
      */
   record_feature_use (feature);
 
-  return TRUE;
+  return true;
 }
 
 /* Parse either a register or a scalar, with an optional type. Return the
@@ -2111,7 +2111,7 @@ parse_reg_list (char ** strp, enum reg_list_els etype)
 
 static int
 parse_vfp_reg_list (char **ccp, unsigned int *pbase, enum reg_list_els etype,
-                   bfd_boolean *partial_match)
+                   bool *partial_match)
 {
   char *str = *ccp;
   int base_reg;
@@ -2122,8 +2122,8 @@ parse_vfp_reg_list (char **ccp, unsigned int *pbase, enum reg_list_els etype,
   int warned = 0;
   unsigned long mask = 0;
   int i;
-  bfd_boolean vpr_seen = FALSE;
-  bfd_boolean expect_vpr =
+  bool vpr_seen = false;
+  bool expect_vpr =
     (etype == REGLIST_VFP_S_VPR) || (etype == REGLIST_VFP_D_VPR);
 
   if (skip_past_char (&str, '{') == FAIL)
@@ -2171,7 +2171,7 @@ parse_vfp_reg_list (char **ccp, unsigned int *pbase, enum reg_list_els etype,
     }
 
   base_reg = max_regs;
-  *partial_match = FALSE;
+  *partial_match = false;
 
   do
     {
@@ -2188,7 +2188,7 @@ parse_vfp_reg_list (char **ccp, unsigned int *pbase, enum reg_list_els etype,
              && !ISALPHA (*(str + vpr_str_len))
              && !vpr_seen)
            {
-             vpr_seen = TRUE;
+             vpr_seen = true;
              str += vpr_str_len;
              if (count == 0)
                base_reg = 0; /* Canonicalize VPR only on d0 with 0 regs.  */
@@ -2215,7 +2215,7 @@ parse_vfp_reg_list (char **ccp, unsigned int *pbase, enum reg_list_els etype,
          return FAIL;
        }
 
-      *partial_match = TRUE;
+      *partial_match = true;
       if (vpr_seen)
        continue;
 
@@ -2325,28 +2325,28 @@ parse_vfp_reg_list (char **ccp, unsigned int *pbase, enum reg_list_els etype,
 
 /* True if two alias types are the same.  */
 
-static bfd_boolean
+static bool
 neon_alias_types_same (struct neon_typed_alias *a, struct neon_typed_alias *b)
 {
   if (!a && !b)
-    return TRUE;
+    return true;
 
   if (!a || !b)
-    return FALSE;
+    return false;
 
   if (a->defined != b->defined)
-    return FALSE;
+    return false;
 
   if ((a->defined & NTA_HASTYPE) != 0
       && (a->eltype.type != b->eltype.type
          || a->eltype.size != b->eltype.size))
-    return FALSE;
+    return false;
 
   if ((a->defined & NTA_HASINDEX) != 0
       && (a->index != b->index))
-    return FALSE;
+    return false;
 
-  return TRUE;
+  return true;
 }
 
 /* Parse element/structure lists for Neon VLD<n> and VST<n> instructions.
@@ -2580,7 +2580,7 @@ insert_reg_alias (char *str, unsigned number, int type)
   new_reg->name = name;
   new_reg->number = number;
   new_reg->type = type;
-  new_reg->builtin = FALSE;
+  new_reg->builtin = false;
   new_reg->neon = NULL;
 
   str_hash_insert (arm_reg_hsh, name, new_reg, 0);
@@ -2614,7 +2614,7 @@ insert_neon_reg_alias (char *str, int number, int type,
    If we find one, or if it looks sufficiently like one that we want to
    handle any error here, return TRUE.  Otherwise return FALSE.  */
 
-static bfd_boolean
+static bool
 create_register_alias (char * newname, char *p)
 {
   struct reg_entry *old;
@@ -2625,17 +2625,17 @@ create_register_alias (char * newname, char *p)
      collapsed to single spaces.  */
   oldname = p;
   if (strncmp (oldname, " .req ", 6) != 0)
-    return FALSE;
+    return false;
 
   oldname += 6;
   if (*oldname == '\0')
-    return FALSE;
+    return false;
 
   old = (struct reg_entry *) str_hash_find (arm_reg_hsh, oldname);
   if (!old)
     {
       as_warn (_("unknown register '%s' -- .req ignored"), oldname);
-      return TRUE;
+      return true;
     }
 
   /* If TC_CASE_SENSITIVE is defined, then newname already points to
@@ -2672,7 +2672,7 @@ create_register_alias (char * newname, char *p)
          if (insert_reg_alias (nbuf, old->number, old->type) == NULL)
            {
              free (nbuf);
-             return TRUE;
+             return true;
            }
        }
 
@@ -2684,7 +2684,7 @@ create_register_alias (char * newname, char *p)
     }
 
   free (nbuf);
-  return TRUE;
+  return true;
 }
 
 /* Create a Neon typed/indexed register alias using directives, e.g.:
@@ -2697,7 +2697,7 @@ create_register_alias (char * newname, char *p)
    specified directly, e.g.:
      vadd d0.s32, d1.s32, d2.s32  */
 
-static bfd_boolean
+static bool
 create_neon_reg_alias (char *newname, char *p)
 {
   enum arm_reg_type basetype;
@@ -2720,19 +2720,19 @@ create_neon_reg_alias (char *newname, char *p)
   else if (strncmp (p, " .qn ", 5) == 0)
     basetype = REG_TYPE_NQ;
   else
-    return FALSE;
+    return false;
 
   p += 5;
 
   if (*p == '\0')
-    return FALSE;
+    return false;
 
   basereg = arm_reg_parse_multi (&p);
 
   if (basereg && basereg->type != basetype)
     {
       as_bad (_("bad type for register"));
-      return FALSE;
+      return false;
     }
 
   if (basereg == NULL)
@@ -2743,7 +2743,7 @@ create_neon_reg_alias (char *newname, char *p)
       if (exp.X_op != O_constant)
        {
          as_bad (_("expression must be constant"));
-         return FALSE;
+         return false;
        }
       basereg = &mybasereg;
       basereg->number = (basetype == REG_TYPE_NQ) ? exp.X_add_number * 2
@@ -2760,14 +2760,14 @@ create_neon_reg_alias (char *newname, char *p)
       if (typeinfo.defined & NTA_HASTYPE)
        {
          as_bad (_("can't redefine the type of a register alias"));
-         return FALSE;
+         return false;
        }
 
       typeinfo.defined |= NTA_HASTYPE;
       if (ntype.elems != 1)
        {
          as_bad (_("you must specify a single type only"));
-         return FALSE;
+         return false;
        }
       typeinfo.eltype = ntype.el[0];
     }
@@ -2780,7 +2780,7 @@ create_neon_reg_alias (char *newname, char *p)
       if (typeinfo.defined & NTA_HASINDEX)
        {
          as_bad (_("can't redefine the index of a scalar alias"));
-         return FALSE;
+         return false;
        }
 
       my_get_expression (&exp, &p, GE_NO_PREFIX);
@@ -2788,7 +2788,7 @@ create_neon_reg_alias (char *newname, char *p)
       if (exp.X_op != O_constant)
        {
          as_bad (_("scalar index must be constant"));
-         return FALSE;
+         return false;
        }
 
       typeinfo.defined |= NTA_HASINDEX;
@@ -2797,7 +2797,7 @@ create_neon_reg_alias (char *newname, char *p)
       if (skip_past_char (&p, ']') == FAIL)
        {
          as_bad (_("expecting ]"));
-         return FALSE;
+         return false;
        }
     }
 
@@ -2833,7 +2833,7 @@ create_neon_reg_alias (char *newname, char *p)
                           typeinfo.defined != 0 ? &typeinfo : NULL);
 
   free (namebuf);
-  return TRUE;
+  return true;
 }
 
 /* Should never be called, as .req goes between the alias and the
@@ -3253,7 +3253,7 @@ s_thumb_func (int ignore ATTRIBUTE_UNUSED)
 
   /* The following label is the name/address of the start of a Thumb function.
      We need to know this for the interworking support.         */
-  label_is_thumb_function_name = TRUE;
+  label_is_thumb_function_name = true;
 }
 
 /* Perform a .set directive, but also mark the alias as
@@ -3358,9 +3358,9 @@ s_syntax (int unused ATTRIBUTE_UNUSED)
   delim = get_symbol_name (& name);
 
   if (!strcasecmp (name, "unified"))
-    unified_syntax = TRUE;
+    unified_syntax = true;
   else if (!strcasecmp (name, "divided"))
-    unified_syntax = FALSE;
+    unified_syntax = false;
   else
     {
       as_bad (_("unrecognized syntax mode \"%s\""), name);
@@ -3561,7 +3561,7 @@ add_to_lit_pool (unsigned int nbytes)
 #define LIT_ENTRY_SIZE_MASK 0xFF
   literal_pool * pool;
   unsigned int entry, pool_size = 0;
-  bfd_boolean padding_slot_p = FALSE;
+  bool padding_slot_p = false;
   unsigned imm1 = 0;
   unsigned imm2 = 0;
 
@@ -3716,10 +3716,10 @@ add_to_lit_pool (unsigned int nbytes)
   return SUCCESS;
 }
 
-bfd_boolean
+bool
 tc_start_label_without_colon (void)
 {
-  bfd_boolean ret = TRUE;
+  bool ret = true;
 
   if (codecomposer_syntax && asmfunc_state == WAITING_ASMFUNC_NAME)
     {
@@ -3731,7 +3731,7 @@ tc_start_label_without_colon (void)
       if (*label == '.')
        {
          as_bad (_("Invalid label '%s'"), label);
-         ret = FALSE;
+         ret = false;
        }
 
       asmfunc_debug (label);
@@ -3978,7 +3978,7 @@ thumb_insn_size (int opcode)
     return 0;
 }
 
-static bfd_boolean
+static bool
 emit_insn (expressionS *exp, int nbytes)
 {
   int size = 0;
@@ -4434,7 +4434,7 @@ s_arm_unwind_save_vfp_armv6 (void)
   valueT op;
   int num_vfpv3_regs = 0;
   int num_regs_below_16;
-  bfd_boolean partial_match;
+  bool partial_match;
 
   count = parse_vfp_reg_list (&input_line_pointer, &start, REGLIST_VFP_D,
                              &partial_match);
@@ -4484,7 +4484,7 @@ s_arm_unwind_save_vfp (void)
   int count;
   unsigned int reg;
   valueT op;
-  bfd_boolean partial_match;
+  bool partial_match;
 
   count = parse_vfp_reg_list (&input_line_pointer, &reg, REGLIST_VFP_D,
                              &partial_match);
@@ -4724,7 +4724,7 @@ s_arm_unwind_save (int arch_v6)
 {
   char *peek;
   struct reg_entry *reg;
-  bfd_boolean had_brace = FALSE;
+  bool had_brace = false;
 
   if (!unwind.proc_start)
     as_bad (MISSING_FNSTART);
@@ -4734,7 +4734,7 @@ s_arm_unwind_save (int arch_v6)
 
   if (*peek == '{')
     {
-      had_brace = TRUE;
+      had_brace = true;
       peek++;
     }
 
@@ -5185,7 +5185,7 @@ const pseudo_typeS md_pseudo_table[] =
 
 static int
 parse_immediate (char **str, int *val, int min, int max,
-                bfd_boolean prefix_opt)
+                bool prefix_opt)
 {
   expressionS exp;
 
@@ -5212,7 +5212,7 @@ parse_immediate (char **str, int *val, int min, int max,
 
 static int
 parse_big_immediate (char **str, int i, expressionS *in_exp,
-                    bfd_boolean allow_symbol_p)
+                    bool allow_symbol_p)
 {
   expressionS exp;
   expressionS *exp_p = in_exp ? in_exp : &exp;
@@ -5386,7 +5386,7 @@ is_quarter_float (unsigned imm)
 /* Detect the presence of a floating point or integer zero constant,
    i.e. #0.0 or #0.  */
 
-static bfd_boolean
+static bool
 parse_ifimm_zero (char **in)
 {
   int error_code;
@@ -5395,7 +5395,7 @@ parse_ifimm_zero (char **in)
     {
       /* In unified syntax, all prefixes are optional.  */
       if (!unified_syntax)
-       return FALSE;
+       return false;
     }
   else
     ++*in;
@@ -5404,9 +5404,9 @@ parse_ifimm_zero (char **in)
   if (strncmp (*in, "0x", 2) == 0)
     {
       int val;
-      if (parse_immediate (in, &val, 0, 0, TRUE) == FAIL)
-        return FALSE;
-      return TRUE;
+      if (parse_immediate (in, &val, 0, 0, true) == FAIL)
+        return false;
+      return true;
     }
 
   error_code = atof_generic (in, ".", EXP_CHARS,
@@ -5416,9 +5416,9 @@ parse_ifimm_zero (char **in)
       && generic_floating_point_number.sign == '+'
       && (generic_floating_point_number.low
           > generic_floating_point_number.leader))
-    return TRUE;
+    return true;
 
-  return FALSE;
+  return false;
 }
 
 /* Parse an 8-bit "quarter-precision" floating point number of the form:
@@ -5956,7 +5956,7 @@ parse_address_main (char **str, int i, int group_relocations,
            return PARSE_OPERAND_FAIL;
        }
       else if (parse_big_immediate (&p, i, &inst.relocs[0].exp,
-                                   /*allow_symbol_p=*/TRUE))
+                                   /*allow_symbol_p=*/true))
        return PARSE_OPERAND_FAIL;
 
       *str = p;
@@ -6144,7 +6144,7 @@ parse_address_main (char **str, int i, int group_relocations,
        {
          /* [Rn], {expr} - unindexed, with option */
          if (parse_immediate (&p, &inst.operands[i].imm,
-                              0, 255, TRUE) == FAIL)
+                              0, 255, true) == FAIL)
            return PARSE_OPERAND_FAIL;
 
          if (skip_past_char (&p, '}') == FAIL)
@@ -6294,20 +6294,20 @@ parse_half (char **str)
 /* Parse a PSR flag operand.  The value returned is FAIL on syntax error,
    or a bitmask suitable to be or-ed into the ARM msr instruction.  */
 static int
-parse_psr (char **str, bfd_boolean lhs)
+parse_psr (char **str, bool lhs)
 {
   char *p;
   unsigned long psr_field;
   const struct asm_psr *psr;
   char *start;
-  bfd_boolean is_apsr = FALSE;
-  bfd_boolean m_profile = ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_m);
+  bool is_apsr = false;
+  bool m_profile = ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_m);
 
   /* PR gas/12698:  If the user has specified -march=all then m_profile will
      be TRUE, but we want to ignore it in this case as we are building for any
      CPU type, including non-m variants.  */
   if (ARM_FEATURE_CORE_EQUAL (selected_cpu, arm_arch_any))
-    m_profile = FALSE;
+    m_profile = false;
 
   /* CPSR's and SPSR's can now be lowercase.  This is just a convenience
      feature for ease of use and backwards compatibility.  */
@@ -6330,7 +6330,7 @@ parse_psr (char **str, bfd_boolean lhs)
     {
       /* APSR[_<bits>] can be used as a synonym for CPSR[_<flags>] on ARMv7-A
         and ARMv7-R architecture CPUs.  */
-      is_apsr = TRUE;
+      is_apsr = true;
       psr_field = 0;
     }
   else if (m_profile)
@@ -6357,7 +6357,7 @@ parse_psr (char **str, bfd_boolean lhs)
       if (psr->field <= 3)
        {
          psr_field = psr->field;
-         is_apsr = TRUE;
+         is_apsr = true;
          goto check_suffix;
        }
 
@@ -6604,7 +6604,7 @@ parse_ror (char **str)
       return FAIL;
     }
 
-  if (parse_immediate (&s, &rot, 0, 24, FALSE) == FAIL)
+  if (parse_immediate (&s, &rot, 0, 24, false) == FAIL)
     return FAIL;
 
   switch (rot)
@@ -6907,7 +6907,7 @@ parse_neon_mov (char **str, int *which_operand)
             Case 10: VMOV.F32 <Sd>, #<imm>
             Case 11: VMOV.F64 <Dd>, #<imm>  */
        inst.operands[i].immisfloat = 1;
-      else if (parse_big_immediate (&ptr, i, NULL, /*allow_symbol_p=*/FALSE)
+      else if (parse_big_immediate (&ptr, i, NULL, /*allow_symbol_p=*/false)
               == SUCCESS)
          /* Case 2: VMOV<c><q>.<dt> <Qd>, #<imm>
             Case 3: VMOV<c><q>.<dt> <Dd>, #<imm>  */
@@ -7256,7 +7256,7 @@ enum operand_parse_code
    structure.  Returns SUCCESS or FAIL depending on whether the
    specified grammar matched.  */
 static int
-parse_operands (char *str, const unsigned int *pattern, bfd_boolean thumb)
+parse_operands (char *str, const unsigned int *pattern, bool thumb)
 {
   unsigned const int *upat = pattern;
   char *backtrack_pos = 0;
@@ -7265,7 +7265,7 @@ parse_operands (char *str, const unsigned int *pattern, bfd_boolean thumb)
   enum arm_reg_type rtype;
   parse_operand_result result;
   unsigned int op_parse_code;
-  bfd_boolean partial_match;
+  bool partial_match;
 
 #define po_char_or_fail(chr)                   \
   do                                           \
@@ -7537,7 +7537,7 @@ parse_operands (char *str, const unsigned int *pattern, bfd_boolean thumb)
            po_reg_or_goto (REG_TYPE_NDQ, try_imm0);
            break;
            try_imm0:
-           po_imm_or_fail (0, 0, TRUE);
+           po_imm_or_fail (0, 0, true);
          }
          break;
 
@@ -7651,7 +7651,7 @@ parse_operands (char *str, const unsigned int *pattern, bfd_boolean thumb)
            try_immbig:
            /* There's a possibility of getting a 64-bit immediate here, so
               we need special handling.  */
-           if (parse_big_immediate (&str, i, NULL, /*allow_symbol_p=*/FALSE)
+           if (parse_big_immediate (&str, i, NULL, /*allow_symbol_p=*/false)
                == FAIL)
              {
                inst.error = _("immediate value is out of range");
@@ -7672,7 +7672,7 @@ parse_operands (char *str, const unsigned int *pattern, bfd_boolean thumb)
            po_reg_or_goto (REG_TYPE_NDQ, try_shimm);
            break;
            try_shimm:
-           po_imm_or_fail (0, 63, TRUE);
+           po_imm_or_fail (0, 63, true);
          }
          break;
 
@@ -7691,37 +7691,37 @@ parse_operands (char *str, const unsigned int *pattern, bfd_boolean thumb)
          break;
 
          /* Immediates */
-       case OP_I7:      po_imm_or_fail (  0,      7, FALSE);   break;
-       case OP_I15:     po_imm_or_fail (  0,     15, FALSE);   break;
-       case OP_I16:     po_imm_or_fail (  1,     16, FALSE);   break;
-       case OP_I16z:    po_imm_or_fail (  0,     16, FALSE);   break;
-       case OP_I31:     po_imm_or_fail (  0,     31, FALSE);   break;
-       case OP_I32:     po_imm_or_fail (  1,     32, FALSE);   break;
-       case OP_I32z:    po_imm_or_fail (  0,     32, FALSE);   break;
-       case OP_I48_I64: po_imm1_or_imm2_or_fail (48, 64, FALSE); break;
-       case OP_I63s:    po_imm_or_fail (-64,     63, FALSE);   break;
-       case OP_I63:     po_imm_or_fail (  0,     63, FALSE);   break;
-       case OP_I64:     po_imm_or_fail (  1,     64, FALSE);   break;
-       case OP_I64z:    po_imm_or_fail (  0,     64, FALSE);   break;
-       case OP_I127:    po_imm_or_fail (  0,    127, FALSE);   break;
-       case OP_I255:    po_imm_or_fail (  0,    255, FALSE);   break;
-       case OP_I511:    po_imm_or_fail (  0,    511, FALSE);   break;
-       case OP_I4095:   po_imm_or_fail (  0,    4095, FALSE);  break;
-       case OP_I8191:   po_imm_or_fail (  0,    8191, FALSE);  break;
-       case OP_I4b:     po_imm_or_fail (  1,      4, TRUE);    break;
+       case OP_I7:      po_imm_or_fail (  0,      7, false);   break;
+       case OP_I15:     po_imm_or_fail (  0,     15, false);   break;
+       case OP_I16:     po_imm_or_fail (  1,     16, false);   break;
+       case OP_I16z:    po_imm_or_fail (  0,     16, false);   break;
+       case OP_I31:     po_imm_or_fail (  0,     31, false);   break;
+       case OP_I32:     po_imm_or_fail (  1,     32, false);   break;
+       case OP_I32z:    po_imm_or_fail (  0,     32, false);   break;
+       case OP_I48_I64: po_imm1_or_imm2_or_fail (48, 64, false); break;
+       case OP_I63s:    po_imm_or_fail (-64,     63, false);   break;
+       case OP_I63:     po_imm_or_fail (  0,     63, false);   break;
+       case OP_I64:     po_imm_or_fail (  1,     64, false);   break;
+       case OP_I64z:    po_imm_or_fail (  0,     64, false);   break;
+       case OP_I127:    po_imm_or_fail (  0,    127, false);   break;
+       case OP_I255:    po_imm_or_fail (  0,    255, false);   break;
+       case OP_I511:    po_imm_or_fail (  0,    511, false);   break;
+       case OP_I4095:   po_imm_or_fail (  0,    4095, false);  break;
+       case OP_I8191:   po_imm_or_fail (  0,    8191, false);  break;
+       case OP_I4b:     po_imm_or_fail (  1,      4, true);    break;
        case OP_oI7b:
-       case OP_I7b:     po_imm_or_fail (  0,      7, TRUE);    break;
-       case OP_I15b:    po_imm_or_fail (  0,     15, TRUE);    break;
+       case OP_I7b:     po_imm_or_fail (  0,      7, true);    break;
+       case OP_I15b:    po_imm_or_fail (  0,     15, true);    break;
        case OP_oI31b:
-       case OP_I31b:    po_imm_or_fail (  0,     31, TRUE);    break;
-       case OP_oI32b:   po_imm_or_fail (  1,     32, TRUE);    break;
-       case OP_oI32z:   po_imm_or_fail (  0,     32, TRUE);    break;
-       case OP_oIffffb: po_imm_or_fail (  0, 0xffff, TRUE);    break;
+       case OP_I31b:    po_imm_or_fail (  0,     31, true);    break;
+       case OP_oI32b:   po_imm_or_fail (  1,     32, true);    break;
+       case OP_oI32z:   po_imm_or_fail (  0,     32, true);    break;
+       case OP_oIffffb: po_imm_or_fail (  0, 0xffff, true);    break;
 
          /* Immediate variants */
        case OP_oI255c:
          po_char_or_fail ('{');
-         po_imm_or_fail (0, 255, TRUE);
+         po_imm_or_fail (0, 255, true);
          po_char_or_fail ('}');
          break;
 
@@ -7737,7 +7737,7 @@ parse_operands (char *str, const unsigned int *pattern, bfd_boolean thumb)
                s[-1] = '\0';
                inst.operands[i].writeback = 1;
              }
-           po_imm_or_fail (0, 31, TRUE);
+           po_imm_or_fail (0, 31, true);
            if (str == s - 1)
              str = s;
          }
@@ -7798,10 +7798,10 @@ parse_operands (char *str, const unsigned int *pattern, bfd_boolean thumb)
 
          /* Register or immediate.  */
        case OP_RRnpc_I0: po_reg_or_goto (REG_TYPE_RN, I0);   break;
-       I0:               po_imm_or_fail (0, 0, FALSE);       break;
+       I0:               po_imm_or_fail (0, 0, false);       break;
 
        case OP_RRnpcsp_I32: po_reg_or_goto (REG_TYPE_RN, I32); break;
-       I32:                 po_imm_or_fail (1, 32, FALSE);     break;
+       I32:                 po_imm_or_fail (1, 32, false);     break;
 
        case OP_RF_IF:    po_reg_or_goto (REG_TYPE_FN, IF);   break;
        IF:
@@ -7818,7 +7818,7 @@ parse_operands (char *str, const unsigned int *pattern, bfd_boolean thumb)
          break;
 
        case OP_RIWR_I32z: po_reg_or_goto (REG_TYPE_MMXWR, I32z); break;
-       I32z:             po_imm_or_fail (0, 32, FALSE);          break;
+       I32z:             po_imm_or_fail (0, 32, false);          break;
 
          /* Two kinds of register.  */
        case OP_RIWR_RIWC:
@@ -7861,7 +7861,7 @@ parse_operands (char *str, const unsigned int *pattern, bfd_boolean thumb)
        case OP_oBARRIER_I15:
          po_barrier_or_imm (str); break;
          immediate:
-         if (parse_immediate (&str, &val, 0, 15, TRUE) == FAIL)
+         if (parse_immediate (&str, &val, 0, 15, true) == FAIL)
            goto failure;
          break;
 
@@ -8424,7 +8424,7 @@ encode_arm_shifter_operand (int i)
 
 /* Subroutine of encode_arm_addr_mode_2 and encode_arm_addr_mode_3.  */
 static void
-encode_arm_addr_mode_common (int i, bfd_boolean is_t)
+encode_arm_addr_mode_common (int i, bool is_t)
 {
   /* PR 14260:
      Generate an error if the operand is not a register.  */
@@ -8470,9 +8470,9 @@ encode_arm_addr_mode_common (int i, bfd_boolean is_t)
    reject forms that cannot be used with a T instruction (i.e. not
    post-indexed).  */
 static void
-encode_arm_addr_mode_2 (int i, bfd_boolean is_t)
+encode_arm_addr_mode_2 (int i, bool is_t)
 {
-  const bfd_boolean is_pc = (inst.operands[i].reg == REG_PC);
+  const bool is_pc = (inst.operands[i].reg == REG_PC);
 
   encode_arm_addr_mode_common (i, is_t);
 
@@ -8500,7 +8500,7 @@ encode_arm_addr_mode_2 (int i, bfd_boolean is_t)
     {
       if (is_pc && !inst.relocs[0].pc_rel)
        {
-         const bfd_boolean is_load = ((inst.instruction & LOAD_BIT) != 0);
+         const bool is_load = ((inst.instruction & LOAD_BIT) != 0);
 
          /* If is_t is TRUE, it's called from do_ldstt.  ldrt/strt
             cannot use PC in addressing.
@@ -8531,7 +8531,7 @@ encode_arm_addr_mode_2 (int i, bfd_boolean is_t)
    forms that cannot be used with a T instruction (i.e. not
    post-indexed).  */
 static void
-encode_arm_addr_mode_3 (int i, bfd_boolean is_t)
+encode_arm_addr_mode_3 (int i, bool is_t)
 {
   if (inst.operands[i].immisreg && inst.operands[i].shifted)
     {
@@ -8764,7 +8764,7 @@ neon_cmode_for_move_imm (unsigned immlo, unsigned immhi, int float_p,
 /* Returns TRUE if double precision value V may be cast
    to single precision without loss of accuracy.  */
 
-static bfd_boolean
+static bool
 is_double_a_single (bfd_uint64_t v)
 {
   int exp = (v >> 52) & 0x7FF;
@@ -8820,18 +8820,18 @@ static void do_vfp_nsyn_opcode (const char *);
 /* inst.relocs[0].exp describes an "=expr" load pseudo-operation.
    Determine whether it can be performed with a move instruction; if
    it can, convert inst.instruction to that move instruction and
-   return TRUE; if it can't, convert inst.instruction to a literal-pool
+   return true; if it can't, convert inst.instruction to a literal-pool
    load and return FALSE.  If this is not a valid thing to do in the
    current context, set inst.error and return TRUE.
 
    inst.operands[i] describes the destination register.         */
 
-static bfd_boolean
-move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
+static bool
+move_or_literal_pool (int i, enum lit_type t, bool mode_3)
 {
   unsigned long tbit;
-  bfd_boolean thumb_p = (t == CONST_THUMB);
-  bfd_boolean arm_p   = (t == CONST_ARM);
+  bool thumb_p = (t == CONST_THUMB);
+  bool arm_p   = (t == CONST_ARM);
 
   if (thumb_p)
     tbit = (inst.instruction > 0xffff) ? THUMB2_LOAD_BIT : THUMB_LOAD_BIT;
@@ -8841,7 +8841,7 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
   if ((inst.instruction & tbit) == 0)
     {
       inst.error = _("invalid pseudo operation");
-      return TRUE;
+      return true;
     }
 
   if (inst.relocs[0].exp.X_op != O_constant
@@ -8849,7 +8849,7 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
       && inst.relocs[0].exp.X_op != O_big)
     {
       inst.error = _("constant expression expected");
-      return TRUE;
+      return true;
     }
 
   if (inst.relocs[0].exp.X_op == O_constant
@@ -8906,13 +8906,13 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
                  /* Check if on thumb2 it can be done with a mov.w, mvn or
                     movw instruction.  */
                  unsigned int newimm;
-                 bfd_boolean isNegated = FALSE;
+                 bool isNegated = false;
 
                  newimm = encode_thumb32_immediate (v);
                  if (newimm == (unsigned int) FAIL)
                    {
                      newimm = encode_thumb32_immediate (~v);
-                     isNegated = TRUE;
+                     isNegated = true;
                    }
 
                  /* The number can be loaded with a mov.w or mvn
@@ -8927,7 +8927,7 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
                      inst.instruction |= (newimm & 0x800) << 15;
                      inst.instruction |= (newimm & 0x700) << 4;
                      inst.instruction |= (newimm & 0x0ff);
-                     return TRUE;
+                     return true;
                    }
                  /* The number can be loaded with a movw instruction.  */
                  else if ((v & ~0xFFFF) == 0
@@ -8946,7 +8946,7 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
                          instruction size check, as otherwise GAS will reject
                          the use of this T32 instruction.  */
                      inst.size_req = 0;
-                     return TRUE;
+                     return true;
                    }
                }
            }
@@ -8960,7 +8960,7 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
                  inst.instruction &= LITERAL_MASK;
                  inst.instruction |= INST_IMMEDIATE | (OPCODE_MOV << DATA_OP_SHIFT);
                  inst.instruction |= value & 0xfff;
-                 return TRUE;
+                 return true;
                }
 
              value = encode_arm_immediate (~ v);
@@ -8970,7 +8970,7 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
                  inst.instruction &= LITERAL_MASK;
                  inst.instruction |= INST_IMMEDIATE | (OPCODE_MVN << DATA_OP_SHIFT);
                  inst.instruction |= value & 0xfff;
-                 return TRUE;
+                 return true;
                }
            }
          else if (t == CONST_VEC && ARM_CPU_HAS_FEATURE (cpu_variant, fpu_neon_ext_v1))
@@ -8983,14 +8983,14 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
                : inst.relocs[0].exp.X_unsigned
                ? 0
                : ((bfd_int64_t)((int) immlo)) >> 32;
-             int cmode = neon_cmode_for_move_imm (immlo, immhi, FALSE, &immbits,
+             int cmode = neon_cmode_for_move_imm (immlo, immhi, false, &immbits,
                                                   &op, 64, NT_invtype);
 
              if (cmode == FAIL)
                {
                  neon_invert_size (&immlo, &immhi, 64);
                  op = !op;
-                 cmode = neon_cmode_for_move_imm (immlo, immhi, FALSE, &immbits,
+                 cmode = neon_cmode_for_move_imm (immlo, immhi, false, &immbits,
                                                   &op, 64, NT_invtype);
                }
 
@@ -9008,7 +9008,7 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
                  else
                    inst.instruction |= (0xFU << 28) | (0x1 << 25);
                  neon_write_immbits (immbits);
-                 return TRUE;
+                 return true;
                }
            }
        }
@@ -9023,7 +9023,7 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
              inst.operands[1].imm =
                neon_qfloat_bits (v);
              do_vfp_nsyn_opcode ("fconsts");
-             return TRUE;
+             return true;
            }
 
          /* If our host does not support a 64-bit type then we cannot perform
@@ -9041,7 +9041,7 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
                  inst.operands[1].imm =
                    neon_qfloat_bits (double_to_single (v));
                  do_vfp_nsyn_opcode ("fconstd");
-                 return TRUE;
+                 return true;
                }
            }
 #endif
@@ -9050,7 +9050,7 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
 
   if (add_to_lit_pool ((!inst.operands[i].isvec
                        || inst.operands[i].issingle) ? 4 : 8) == FAIL)
-    return TRUE;
+    return true;
 
   inst.operands[1].reg = REG_PC;
   inst.operands[1].isreg = 1;
@@ -9061,7 +9061,7 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
                     : (mode_3
                        ? BFD_RELOC_ARM_HWLITERAL
                        : BFD_RELOC_ARM_LITERAL));
-  return FALSE;
+  return false;
 }
 
 /* inst.operands[i] was set up by parse_address.  Encode it into an
@@ -9083,7 +9083,7 @@ encode_arm_cp_address (int i, int wb_ok, int unind_ok, int reloc_override)
          inst.error = _("invalid co-processor operand");
          return FAIL;
        }
-      if (move_or_literal_pool (0, CONST_VEC, /*mode_3=*/FALSE))
+      if (move_or_literal_pool (0, CONST_VEC, /*mode_3=*/false))
        return SUCCESS;
     }
 
@@ -9197,21 +9197,21 @@ do_tt (void)
   inst.instruction |= inst.operands[1].reg << 16;
 }
 
-static bfd_boolean
+static bool
 check_obsolete (const arm_feature_set *feature, const char *msg)
 {
   if (ARM_CPU_IS_ANY (cpu_variant))
     {
       as_tsktsk ("%s", msg);
-      return TRUE;
+      return true;
     }
   else if (ARM_CPU_HAS_FEATURE (cpu_variant, *feature))
     {
       as_bad ("%s", msg);
-      return TRUE;
+      return true;
     }
 
-  return FALSE;
+  return false;
 }
 
 static void
@@ -9269,7 +9269,7 @@ static void
 do_rd_cpaddr (void)
 {
   inst.instruction |= inst.operands[0].reg << 12;
-  encode_arm_cp_address (1, TRUE, TRUE, 0);
+  encode_arm_cp_address (1, true, true, 0);
 }
 
 /* ARM instructions, in alphabetical order by function name (except
@@ -9483,7 +9483,7 @@ do_blx (void)
 static void
 do_bx (void)
 {
-  bfd_boolean want_reloc;
+  bool want_reloc;
 
   if (inst.operands[0].reg == REG_PC)
     as_tsktsk (_("use of r15 in bx in ARM mode is not really useful"));
@@ -9494,12 +9494,12 @@ do_bx (void)
   want_reloc = !ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v5);
   if (!ARM_FEATURE_ZERO (selected_object_arch)
       && !ARM_CPU_HAS_FEATURE (selected_object_arch, arm_ext_v5))
-      want_reloc = TRUE;
+      want_reloc = true;
 
 #ifdef OBJ_ELF
   if (EF_ARM_EABI_VERSION (meabi_flags) < EF_ARM_EABI_VER4)
 #endif
-    want_reloc = FALSE;
+    want_reloc = false;
 
   if (want_reloc)
     inst.relocs[0].type = BFD_RELOC_ARM_V4BX;
@@ -9805,7 +9805,7 @@ encode_ldmstm(int from_push_pop_mnem)
 static void
 do_ldmstm (void)
 {
-  encode_ldmstm (/*from_push_pop_mnem=*/FALSE);
+  encode_ldmstm (/*from_push_pop_mnem=*/false);
 }
 
 /* ARMv5TE load-consecutive (argument parse)
@@ -9847,7 +9847,7 @@ do_ldrd (void)
        as_warn (_("index register overlaps transfer register"));
     }
   inst.instruction |= inst.operands[0].reg << 12;
-  encode_arm_addr_mode_3 (2, /*is_t=*/FALSE);
+  encode_arm_addr_mode_3 (2, /*is_t=*/false);
 }
 
 static void
@@ -9915,9 +9915,9 @@ do_ldst (void)
 {
   inst.instruction |= inst.operands[0].reg << 12;
   if (!inst.operands[1].isreg)
-    if (move_or_literal_pool (0, CONST_ARM, /*mode_3=*/FALSE))
+    if (move_or_literal_pool (0, CONST_ARM, /*mode_3=*/false))
       return;
-  encode_arm_addr_mode_2 (1, /*is_t=*/FALSE);
+  encode_arm_addr_mode_2 (1, /*is_t=*/false);
   check_ldr_r15_aligned ();
 }
 
@@ -9937,7 +9937,7 @@ do_ldstt (void)
       inst.operands[1].writeback = 1;
     }
   inst.instruction |= inst.operands[0].reg << 12;
-  encode_arm_addr_mode_2 (1, /*is_t=*/TRUE);
+  encode_arm_addr_mode_2 (1, /*is_t=*/true);
 }
 
 /* Halfword and signed-byte load/store operations.  */
@@ -9948,9 +9948,9 @@ do_ldstv4 (void)
   constraint (inst.operands[0].reg == REG_PC, BAD_PC);
   inst.instruction |= inst.operands[0].reg << 12;
   if (!inst.operands[1].isreg)
-    if (move_or_literal_pool (0, CONST_ARM, /*mode_3=*/TRUE))
+    if (move_or_literal_pool (0, CONST_ARM, /*mode_3=*/true))
       return;
-  encode_arm_addr_mode_3 (1, /*is_t=*/FALSE);
+  encode_arm_addr_mode_3 (1, /*is_t=*/false);
 }
 
 static void
@@ -9969,7 +9969,7 @@ do_ldsttv4 (void)
       inst.operands[1].writeback = 1;
     }
   inst.instruction |= inst.operands[0].reg << 12;
-  encode_arm_addr_mode_3 (1, /*is_t=*/TRUE);
+  encode_arm_addr_mode_3 (1, /*is_t=*/true);
 }
 
 /* Co-processor register load/store.
@@ -9979,7 +9979,7 @@ do_lstc (void)
 {
   inst.instruction |= inst.operands[0].reg << 8;
   inst.instruction |= inst.operands[1].reg << 12;
-  encode_arm_cp_address (2, TRUE, TRUE, 0);
+  encode_arm_cp_address (2, true, true, 0);
 }
 
 static void
@@ -10012,7 +10012,7 @@ static void
 do_mov16 (void)
 {
   bfd_vma imm;
-  bfd_boolean top;
+  bool top;
 
   top = (inst.instruction & 0x00400000) != 0;
   constraint (top && inst.relocs[0].type == BFD_RELOC_ARM_MOVW,
@@ -10337,7 +10337,7 @@ do_pld (void)
              _("writeback used in preload instruction"));
   constraint (!inst.operands[0].preind,
              _("unindexed addressing used in preload instruction"));
-  encode_arm_addr_mode_2 (0, /*is_t=*/FALSE);
+  encode_arm_addr_mode_2 (0, /*is_t=*/false);
 }
 
 /* ARMv7: PLI <addr_mode>  */
@@ -10352,7 +10352,7 @@ do_pli (void)
              _("writeback used in preload instruction"));
   constraint (!inst.operands[0].preind,
              _("unindexed addressing used in preload instruction"));
-  encode_arm_addr_mode_2 (0, /*is_t=*/FALSE);
+  encode_arm_addr_mode_2 (0, /*is_t=*/false);
   inst.instruction &= ~PRE_INDEX;
 }
 
@@ -10366,7 +10366,7 @@ do_push_pop (void)
   inst.operands[0].isreg = 1;
   inst.operands[0].writeback = 1;
   inst.operands[0].reg = REG_SP;
-  encode_ldmstm (/*from_push_pop_mnem=*/TRUE);
+  encode_ldmstm (/*from_push_pop_mnem=*/true);
 }
 
 /* ARM V6 RFE (Return from Exception) loads the PC and CPSR from the
@@ -10773,14 +10773,14 @@ static void
 do_vfp_sp_ldst (void)
 {
   encode_arm_vfp_reg (inst.operands[0].reg, VFP_REG_Sd);
-  encode_arm_cp_address (1, FALSE, TRUE, 0);
+  encode_arm_cp_address (1, false, true, 0);
 }
 
 static void
 do_vfp_dp_ldst (void)
 {
   encode_arm_vfp_reg (inst.operands[0].reg, VFP_REG_Dd);
-  encode_arm_cp_address (1, FALSE, TRUE, 0);
+  encode_arm_cp_address (1, false, true, 0);
 }
 
 
@@ -11023,7 +11023,7 @@ do_fpa_ldmstm (void)
        }
     }
 
-  encode_arm_cp_address (2, TRUE, TRUE, 0);
+  encode_arm_cp_address (2, true, true, 0);
 }
 \f
 /* iWMMXt instructions: strictly in alphabetical order.         */
@@ -11101,7 +11101,7 @@ do_iwmmxt_wldstbh (void)
     reloc = BFD_RELOC_ARM_T32_CP_OFF_IMM_S2;
   else
     reloc = BFD_RELOC_ARM_CP_OFF_IMM_S2;
-  encode_arm_cp_address (1, TRUE, FALSE, reloc);
+  encode_arm_cp_address (1, true, false, reloc);
 }
 
 static void
@@ -11115,7 +11115,7 @@ do_iwmmxt_wldstw (void)
     }
 
   inst.instruction |= inst.operands[0].reg << 12;
-  encode_arm_cp_address (1, TRUE, TRUE, 0);
+  encode_arm_cp_address (1, true, true, 0);
 }
 
 static void
@@ -11138,7 +11138,7 @@ do_iwmmxt_wldstd (void)
       inst.instruction |= inst.operands[1].imm;
     }
   else
-    encode_arm_cp_address (1, TRUE, FALSE, 0);
+    encode_arm_cp_address (1, true, false, 0);
 }
 
 static void
@@ -11344,9 +11344,9 @@ encode_thumb32_shifted_operand (int i)
    reject PC in Rn.  */
 
 static void
-encode_thumb32_addr_mode (int i, bfd_boolean is_t, bfd_boolean is_d)
+encode_thumb32_addr_mode (int i, bool is_t, bool is_d)
 {
-  const bfd_boolean is_pc = (inst.operands[i].reg == REG_PC);
+  const bool is_pc = (inst.operands[i].reg == REG_PC);
 
   constraint (!inst.operands[i].isreg,
              _("Instruction does not support =N addresses"));
@@ -11583,8 +11583,8 @@ do_t_add_sub (void)
 
   if (unified_syntax)
     {
-      bfd_boolean flags;
-      bfd_boolean narrow;
+      bool flags;
+      bool narrow;
       int opcode;
 
       flags = (inst.instruction == T_MNEM_adds
@@ -11690,7 +11690,7 @@ do_t_add_sub (void)
          if (!inst.operands[2].shifted && inst.size_req != 4)
            {
              if (Rd > 7 || Rs > 7 || Rn > 7)
-               narrow = FALSE;
+               narrow = false;
 
              if (narrow)
                {
@@ -11865,7 +11865,7 @@ do_t_arit3 (void)
        }
       else
        {
-         bfd_boolean narrow;
+         bool narrow;
 
          /* See if we can do this with a 16-bit instruction.  */
          if (THUMB_SETS_FLAGS (inst.instruction))
@@ -11874,11 +11874,11 @@ do_t_arit3 (void)
            narrow = in_pred_block ();
 
          if (Rd > 7 || Rn > 7 || Rs > 7)
-           narrow = FALSE;
+           narrow = false;
          if (inst.operands[2].shifted)
-           narrow = FALSE;
+           narrow = false;
          if (inst.size_req == 4)
-           narrow = FALSE;
+           narrow = false;
 
          if (narrow
              && Rd == Rs)
@@ -11953,7 +11953,7 @@ do_t_arit3c (void)
        }
       else
        {
-         bfd_boolean narrow;
+         bool narrow;
 
          /* See if we can do this with a 16-bit instruction.  */
          if (THUMB_SETS_FLAGS (inst.instruction))
@@ -11962,11 +11962,11 @@ do_t_arit3c (void)
            narrow = in_pred_block ();
 
          if (Rd > 7 || Rn > 7 || Rs > 7)
-           narrow = FALSE;
+           narrow = false;
          if (inst.operands[2].shifted)
-           narrow = FALSE;
+           narrow = false;
          if (inst.size_req == 4)
-           narrow = FALSE;
+           narrow = false;
 
          if (narrow)
            {
@@ -12438,7 +12438,7 @@ do_t_it (void)
   set_pred_insn_type (IT_INSN);
   now_pred.mask = (inst.instruction & 0xf) | 0x10;
   now_pred.cc = cond;
-  now_pred.warn_deprecated = FALSE;
+  now_pred.warn_deprecated = false;
   now_pred.type = SCALAR_PRED;
 
   /* If the condition is a negative condition, invert the mask.  */
@@ -12476,10 +12476,10 @@ do_t_it (void)
 
 /* Helper function used for both push/pop and ldm/stm.  */
 static void
-encode_thumb2_multi (bfd_boolean do_io, int base, unsigned mask,
-                    bfd_boolean writeback)
+encode_thumb2_multi (bool do_io, int base, unsigned mask,
+                    bool writeback)
 {
-  bfd_boolean load, store;
+  bool load, store;
 
   gas_assert (base != -1 || !do_io);
   load = do_io && ((inst.instruction & (1 << 20)) != 0);
@@ -12553,10 +12553,10 @@ do_t_ldmstm (void)
 
   if (unified_syntax)
     {
-      bfd_boolean narrow;
+      bool narrow;
       unsigned mask;
 
-      narrow = FALSE;
+      narrow = false;
       /* See if we can use a 16-bit instruction.  */
       if (inst.instruction < 0xffff /* not ldmdb/stmdb */
          && inst.size_req != 4
@@ -12580,7 +12580,7 @@ do_t_ldmstm (void)
                  inst.instruction = THUMB_OP16 (inst.instruction);
                  inst.instruction |= inst.operands[0].reg << 8;
                  inst.instruction |= inst.operands[1].imm;
-                 narrow = TRUE;
+                 narrow = true;
                }
              else if ((inst.operands[1].imm & (inst.operands[1].imm-1)) == 0)
                {
@@ -12605,7 +12605,7 @@ do_t_ldmstm (void)
                  inst.instruction = THUMB_OP16 (opcode);
                  inst.instruction |= inst.operands[0].reg << 3;
                  inst.instruction |= (ffs (inst.operands[1].imm)-1);
-                 narrow = TRUE;
+                 narrow = true;
                }
            }
          else if (inst.operands[0] .reg == REG_SP)
@@ -12616,7 +12616,7 @@ do_t_ldmstm (void)
                        THUMB_OP16 (inst.instruction == T_MNEM_stmia
                                    ? T_MNEM_push : T_MNEM_pop);
                  inst.instruction |= inst.operands[1].imm;
-                 narrow = TRUE;
+                 narrow = true;
                }
              else if ((inst.operands[1].imm & (inst.operands[1].imm-1)) == 0)
                {
@@ -12624,7 +12624,7 @@ do_t_ldmstm (void)
                        THUMB_OP16 (inst.instruction == T_MNEM_stmia
                                    ? T_MNEM_str_sp : T_MNEM_ldr_sp);
                  inst.instruction |= ((ffs (inst.operands[1].imm)-1) << 8);
-                 narrow = TRUE;
+                 narrow = true;
                }
            }
        }
@@ -12634,7 +12634,7 @@ do_t_ldmstm (void)
          if (inst.instruction < 0xffff)
            inst.instruction = THUMB_OP32 (inst.instruction);
 
-         encode_thumb2_multi (TRUE /* do_io */, inst.operands[0].reg,
+         encode_thumb2_multi (true /* do_io */, inst.operands[0].reg,
                               inst.operands[1].imm,
                               inst.operands[0].writeback);
        }
@@ -12723,7 +12723,7 @@ do_t_ldst (void)
        {
          if (opcode <= 0xffff)
            inst.instruction = THUMB_OP32 (opcode);
-         if (move_or_literal_pool (0, CONST_THUMB, /*mode_3=*/FALSE))
+         if (move_or_literal_pool (0, CONST_THUMB, /*mode_3=*/false))
            return;
        }
       if (inst.operands[1].isreg
@@ -12808,7 +12808,7 @@ do_t_ldst (void)
 
       inst.instruction = THUMB_OP32 (opcode);
       inst.instruction |= inst.operands[0].reg << 12;
-      encode_thumb32_addr_mode (1, /*is_t=*/FALSE, /*is_d=*/FALSE);
+      encode_thumb32_addr_mode (1, /*is_t=*/false, /*is_d=*/false);
       check_ldr_r15_aligned ();
       return;
     }
@@ -12829,7 +12829,7 @@ do_t_ldst (void)
 
   inst.instruction = THUMB_OP16 (inst.instruction);
   if (!inst.operands[1].isreg)
-    if (move_or_literal_pool (0, CONST_THUMB, /*mode_3=*/FALSE))
+    if (move_or_literal_pool (0, CONST_THUMB, /*mode_3=*/false))
       return;
 
   constraint (!inst.operands[1].preind
@@ -12912,14 +12912,14 @@ do_t_ldstd (void)
 
   inst.instruction |= inst.operands[0].reg << 12;
   inst.instruction |= inst.operands[1].reg << 8;
-  encode_thumb32_addr_mode (2, /*is_t=*/FALSE, /*is_d=*/TRUE);
+  encode_thumb32_addr_mode (2, /*is_t=*/false, /*is_d=*/true);
 }
 
 static void
 do_t_ldstt (void)
 {
   inst.instruction |= inst.operands[0].reg << 12;
-  encode_thumb32_addr_mode (1, /*is_t=*/TRUE, /*is_d=*/FALSE);
+  encode_thumb32_addr_mode (1, /*is_t=*/true, /*is_d=*/false);
 }
 
 static void
@@ -12980,8 +12980,8 @@ do_t_mov_cmp (void)
       int r0off = (inst.instruction == T_MNEM_mov
                   || inst.instruction == T_MNEM_movs) ? 8 : 16;
       unsigned long opcode;
-      bfd_boolean narrow;
-      bfd_boolean low_regs;
+      bool narrow;
+      bool low_regs;
 
       low_regs = (Rn <= 7 && Rm <= 7);
       opcode = inst.instruction;
@@ -12991,7 +12991,7 @@ do_t_mov_cmp (void)
        narrow = opcode != T_MNEM_movs || low_regs;
       if (inst.size_req == 4
          || inst.operands[1].shifted)
-       narrow = FALSE;
+       narrow = false;
 
       /* MOVS PC, LR is encoded as SUBS PC, LR, #0.  */
       if (opcode == T_MNEM_movs && inst.operands[1].isreg
@@ -13090,7 +13090,7 @@ do_t_mov_cmp (void)
                   || inst.instruction == T_MNEM_movs))
        {
          /* Register shifts are encoded as separate shift instructions.  */
-         bfd_boolean flags = (inst.instruction == T_MNEM_movs);
+         bool flags = (inst.instruction == T_MNEM_movs);
 
          if (in_pred_block ())
            narrow = !flags;
@@ -13098,13 +13098,13 @@ do_t_mov_cmp (void)
            narrow = flags;
 
          if (inst.size_req == 4)
-           narrow = FALSE;
+           narrow = false;
 
          if (!low_regs || inst.operands[1].imm > 7)
-           narrow = FALSE;
+           narrow = false;
 
          if (Rn != Rm)
-           narrow = FALSE;
+           narrow = false;
 
          switch (inst.operands[1].shift_kind)
            {
@@ -13161,7 +13161,7 @@ do_t_mov_cmp (void)
                case SHIFT_LSL: inst.instruction = T_OPCODE_LSL_I; break;
                case SHIFT_LSR: inst.instruction = T_OPCODE_LSR_I; break;
                case SHIFT_ASR: inst.instruction = T_OPCODE_ASR_I; break;
-               default: narrow = FALSE; break;
+               default: narrow = false; break;
                }
            }
 
@@ -13269,7 +13269,7 @@ do_t_mov16 (void)
 {
   unsigned Rd;
   bfd_vma imm;
-  bfd_boolean top;
+  bool top;
 
   top = (inst.instruction & 0x00800000) != 0;
   if (inst.relocs[0].type == BFD_RELOC_ARM_MOVW)
@@ -13316,16 +13316,16 @@ do_t_mvn_tst (void)
     {
       int r0off = (inst.instruction == T_MNEM_mvn
                   || inst.instruction == T_MNEM_mvns) ? 8 : 16;
-      bfd_boolean narrow;
+      bool narrow;
 
       if (inst.size_req == 4
          || inst.instruction > 0xffff
          || inst.operands[1].shifted
          || Rn > 7 || Rm > 7)
-       narrow = FALSE;
+       narrow = false;
       else if (inst.instruction == T_MNEM_cmn
               || inst.instruction == T_MNEM_tst)
-       narrow = TRUE;
+       narrow = true;
       else if (THUMB_SETS_FLAGS (inst.instruction))
        narrow = !in_pred_block ();
       else
@@ -13408,7 +13408,7 @@ do_t_mrs (void)
          /* PR gas/12698:  The constraint is only applied for m_profile.
             If the user has specified -march=all, we want to ignore it as
             we are building for any CPU type, including non-m variants.  */
-         bfd_boolean m_profile =
+         bool m_profile =
            !ARM_FEATURE_CORE_EQUAL (selected_cpu, arm_arch_any);
          constraint ((flags != 0) && m_profile, _("selected processor does "
                                                   "not support requested special purpose register"));
@@ -13449,7 +13449,7 @@ do_t_msr (void)
       /* PR gas/12698:  The constraint is only applied for m_profile.
         If the user has specified -march=all, we want to ignore it as
         we are building for any CPU type, including non-m variants.  */
-      bfd_boolean m_profile =
+      bool m_profile =
        !ARM_FEATURE_CORE_EQUAL (selected_cpu, arm_arch_any);
       constraint (((ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v6_dsp)
           && (bits & ~(PSR_s | PSR_f)) != 0)
@@ -13475,7 +13475,7 @@ do_t_msr (void)
 static void
 do_t_mul (void)
 {
-  bfd_boolean narrow;
+  bool narrow;
   unsigned Rd, Rn, Rm;
 
   if (!inst.operands[2].present)
@@ -13492,7 +13492,7 @@ do_t_mul (void)
              && Rd != Rm)
          || Rn > 7
          || Rm > 7)
-       narrow = FALSE;
+       narrow = false;
       else if (inst.instruction == T_MNEM_muls)
        narrow = !in_pred_block ();
       else
@@ -13503,7 +13503,7 @@ do_t_mul (void)
       constraint (inst.instruction == T_MNEM_muls, BAD_THUMB32);
       constraint (Rn > 7 || Rm > 7,
                  BAD_HIREG);
-      narrow = TRUE;
+      narrow = true;
     }
 
   if (narrow)
@@ -13597,16 +13597,16 @@ do_t_neg (void)
 {
   if (unified_syntax)
     {
-      bfd_boolean narrow;
+      bool narrow;
 
       if (THUMB_SETS_FLAGS (inst.instruction))
        narrow = !in_pred_block ();
       else
        narrow = in_pred_block ();
       if (inst.operands[0].reg > 7 || inst.operands[1].reg > 7)
-       narrow = FALSE;
+       narrow = false;
       if (inst.size_req == 4)
-       narrow = FALSE;
+       narrow = false;
 
       if (!narrow)
        {
@@ -13716,7 +13716,7 @@ do_t_pld (void)
   if (inst.operands[0].immisreg)
     reject_bad_reg (inst.operands[0].imm);
 
-  encode_thumb32_addr_mode (0, /*is_t=*/FALSE, /*is_d=*/FALSE);
+  encode_thumb32_addr_mode (0, /*is_t=*/false, /*is_d=*/false);
 }
 
 static void
@@ -13743,7 +13743,7 @@ do_t_push_pop (void)
   else if (unified_syntax)
     {
       inst.instruction = THUMB_OP32 (inst.instruction);
-      encode_thumb2_multi (TRUE /* do_io */, 13, mask, TRUE);
+      encode_thumb2_multi (true /* do_io */, 13, mask, true);
     }
   else
     {
@@ -13756,7 +13756,7 @@ static void
 do_t_clrm (void)
 {
   if (unified_syntax)
-    encode_thumb2_multi (FALSE /* do_io */, -1, inst.operands[0].imm, FALSE);
+    encode_thumb2_multi (false /* do_io */, -1, inst.operands[0].imm, false);
   else
     {
       inst.error = _("invalid register list to push/pop instruction");
@@ -13861,7 +13861,7 @@ do_t_rsb (void)
   inst.instruction |= Rs << 16;
   if (!inst.operands[2].isreg)
     {
-      bfd_boolean narrow;
+      bool narrow;
 
       if ((inst.instruction & 0x00100000) != 0)
        narrow = !in_pred_block ();
@@ -13869,14 +13869,14 @@ do_t_rsb (void)
        narrow = in_pred_block ();
 
       if (Rd > 7 || Rs > 7)
-       narrow = FALSE;
+       narrow = false;
 
       if (inst.size_req == 4 || !unified_syntax)
-       narrow = FALSE;
+       narrow = false;
 
       if (inst.relocs[0].exp.X_op != O_constant
          || inst.relocs[0].exp.X_add_number != 0)
-       narrow = FALSE;
+       narrow = false;
 
       /* Turn rsb #0 into 16-bit neg.  We should probably do this via
         relaxation, but it doesn't seem worth the hassle.  */
@@ -13917,7 +13917,7 @@ do_t_shift (void)
 
   if (unified_syntax)
     {
-      bfd_boolean narrow;
+      bool narrow;
       int shift_kind;
 
       switch (inst.instruction)
@@ -13938,15 +13938,15 @@ do_t_shift (void)
       else
        narrow = in_pred_block ();
       if (inst.operands[0].reg > 7 || inst.operands[1].reg > 7)
-       narrow = FALSE;
+       narrow = false;
       if (!inst.operands[2].isreg && shift_kind == SHIFT_ROR)
-       narrow = FALSE;
+       narrow = false;
       if (inst.operands[2].isreg
          && (inst.operands[1].reg != inst.operands[0].reg
              || inst.operands[2].reg > 7))
-       narrow = FALSE;
+       narrow = false;
       if (inst.size_req == 4)
-       narrow = FALSE;
+       narrow = false;
 
       reject_bad_reg (inst.operands[0].reg);
       reject_bad_reg (inst.operands[1].reg);
@@ -14373,7 +14373,7 @@ do_t_branch_future (void)
   inst.instruction = THUMB_OP32 (inst.instruction);
   if (inst.operands[0].hasreloc == 0)
     {
-      if (v8_1_branch_value_check (inst.operands[0].imm, 5, FALSE) == FAIL)
+      if (v8_1_branch_value_check (inst.operands[0].imm, 5, false) == FAIL)
        as_bad (BAD_BRANCH_OFF);
 
       inst.instruction |= ((inst.operands[0].imm & 0x1f) >> 1) << 23;
@@ -14390,7 +14390,7 @@ do_t_branch_future (void)
        if (inst.operands[1].hasreloc == 0)
          {
            int val = inst.operands[1].imm;
-           if (v8_1_branch_value_check (inst.operands[1].imm, 17, TRUE) == FAIL)
+           if (v8_1_branch_value_check (inst.operands[1].imm, 17, true) == FAIL)
              as_bad (BAD_BRANCH_OFF);
 
            int immA = (val & 0x0001f000) >> 12;
@@ -14409,7 +14409,7 @@ do_t_branch_future (void)
        if (inst.operands[1].hasreloc == 0)
          {
            int val = inst.operands[1].imm;
-           if (v8_1_branch_value_check (inst.operands[1].imm, 19, TRUE) == FAIL)
+           if (v8_1_branch_value_check (inst.operands[1].imm, 19, true) == FAIL)
              as_bad (BAD_BRANCH_OFF);
 
            int immA = (val & 0x0007f000) >> 12;
@@ -14482,7 +14482,7 @@ v8_1_loop_reloc (int is_le)
       int value = inst.relocs[0].exp.X_add_number;
       value = (is_le) ? -value : value;
 
-      if (v8_1_branch_value_check (value, 12, FALSE) == FAIL)
+      if (v8_1_branch_value_check (value, 12, false) == FAIL)
        as_bad (BAD_BRANCH_OFF);
 
       int imml, immh;
@@ -16056,7 +16056,7 @@ do_mve_vpt (void)
     now_pred.cc = 0;
     now_pred.mask = ((inst.instruction & 0x00400000) >> 19)
                    | ((inst.instruction & 0xe000) >> 13);
-    now_pred.warn_deprecated = FALSE;
+    now_pred.warn_deprecated = false;
     now_pred.type = VECTOR_PRED;
     inst.is_neon = 1;
 }
@@ -16492,12 +16492,12 @@ do_t_loloop (void)
       if (!inst.operands[0].present)
        inst.instruction |= 1 << 21;
 
-      v8_1_loop_reloc (TRUE);
+      v8_1_loop_reloc (true);
       break;
 
     case T_MNEM_wls:
     case T_MNEM_wlstp:
-      v8_1_loop_reloc (FALSE);
+      v8_1_loop_reloc (false);
       /* fall through.  */
     case T_MNEM_dlstp:
     case T_MNEM_dls:
@@ -16864,7 +16864,7 @@ return SUCCESS;
    instruction.  CHECK contains th.  CHECK contains the set of bits to pass to
    vfp_or_neon_is_neon for the NEON specific checks.  */
 
-static bfd_boolean
+static bool
 check_simd_pred_availability (int fp, unsigned check)
 {
 if (inst.cond > COND_ALWAYS)
@@ -16872,7 +16872,7 @@ if (inst.cond > COND_ALWAYS)
     if (!ARM_CPU_HAS_FEATURE (cpu_variant, mve_ext))
       {
        inst.error = BAD_FPU;
-       return FALSE;
+       return false;
       }
     inst.pred_insn_type = INSIDE_VPT_INSN;
   }
@@ -16881,18 +16881,18 @@ else if (inst.cond < COND_ALWAYS)
     if (ARM_CPU_HAS_FEATURE (cpu_variant, mve_ext))
       inst.pred_insn_type = MVE_OUTSIDE_PRED_INSN;
     else if (vfp_or_neon_is_neon (check) == FAIL)
-      return FALSE;
+      return false;
   }
 else
   {
     if (!ARM_CPU_HAS_FEATURE (cpu_variant, fp ? mve_fp_ext : mve_ext)
        && vfp_or_neon_is_neon (check) == FAIL)
-      return FALSE;
+      return false;
 
     if (ARM_CPU_HAS_FEATURE (cpu_variant, mve_ext))
       inst.pred_insn_type = MVE_OUTSIDE_PRED_INSN;
   }
-return TRUE;
+return true;
 }
 
 /* Neon instruction encoders, in approximate order of appearance.  */
@@ -16900,7 +16900,7 @@ return TRUE;
 static void
 do_neon_dyadic_i_su (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH | NEON_CHECK_CC))
+  if (!check_simd_pred_availability (false, NEON_CHECK_ARCH | NEON_CHECK_CC))
    return;
 
   enum neon_shape rs;
@@ -16922,7 +16922,7 @@ do_neon_dyadic_i_su (void)
 static void
 do_neon_dyadic_i64_su (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_CC | NEON_CHECK_ARCH))
+  if (!check_simd_pred_availability (false, NEON_CHECK_CC | NEON_CHECK_ARCH))
     return;
   enum neon_shape rs;
   struct neon_type_el et;
@@ -16964,7 +16964,7 @@ neon_imm_shift (int write_ubit, int uval, int isquad, struct neon_type_el et,
 static void
 do_neon_shl (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH | NEON_CHECK_CC))
+  if (!check_simd_pred_availability (false, NEON_CHECK_ARCH | NEON_CHECK_CC))
    return;
 
   if (!inst.operands[2].isreg)
@@ -16986,7 +16986,7 @@ do_neon_shl (void)
       constraint (imm < 0 || (unsigned)imm >= et.size,
                  _("immediate out of range for shift"));
       NEON_ENCODE (IMMED, inst);
-      neon_imm_shift (FALSE, 0, neon_quad (rs), et, imm);
+      neon_imm_shift (false, 0, neon_quad (rs), et, imm);
     }
   else
     {
@@ -17044,7 +17044,7 @@ do_neon_shl (void)
 static void
 do_neon_qshl (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH | NEON_CHECK_CC))
+  if (!check_simd_pred_availability (false, NEON_CHECK_ARCH | NEON_CHECK_CC))
    return;
 
   if (!inst.operands[2].isreg)
@@ -17066,7 +17066,7 @@ do_neon_qshl (void)
       constraint (imm < 0 || (unsigned)imm >= et.size,
                  _("immediate out of range for shift"));
       NEON_ENCODE (IMMED, inst);
-      neon_imm_shift (TRUE, et.type == NT_unsigned, neon_quad (rs), et, imm);
+      neon_imm_shift (true, et.type == NT_unsigned, neon_quad (rs), et, imm);
     }
   else
     {
@@ -17118,7 +17118,7 @@ do_neon_qshl (void)
 static void
 do_neon_rshl (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH | NEON_CHECK_CC))
+  if (!check_simd_pred_availability (false, NEON_CHECK_ARCH | NEON_CHECK_CC))
    return;
 
   enum neon_shape rs;
@@ -17232,7 +17232,7 @@ do_neon_logic (void)
     {
       enum neon_shape rs = neon_select_shape (NS_DDD, NS_QQQ, NS_NULL);
       if (rs == NS_QQQ
-         && !check_simd_pred_availability (FALSE,
+         && !check_simd_pred_availability (false,
                                            NEON_CHECK_ARCH | NEON_CHECK_CC))
        return;
       else if (rs != NS_QQQ
@@ -17255,7 +17255,7 @@ do_neon_logic (void)
       /* Because neon_select_shape makes the second operand a copy of the first
         if the second operand is not present.  */
       if (rs == NS_QQI
-         && !check_simd_pred_availability (FALSE,
+         && !check_simd_pred_availability (false,
                                            NEON_CHECK_ARCH | NEON_CHECK_CC))
        return;
       else if (rs != NS_QQI
@@ -17801,19 +17801,19 @@ neon_compare (unsigned regtypes, unsigned immtypes, int invert)
 static void
 do_neon_cmp (void)
 {
-  neon_compare (N_SUF_32, N_S_32 | N_F_16_32, FALSE);
+  neon_compare (N_SUF_32, N_S_32 | N_F_16_32, false);
 }
 
 static void
 do_neon_cmp_inv (void)
 {
-  neon_compare (N_SUF_32, N_S_32 | N_F_16_32, TRUE);
+  neon_compare (N_SUF_32, N_S_32 | N_F_16_32, true);
 }
 
 static void
 do_neon_ceq (void)
 {
-  neon_compare (N_IF_32, N_IF_32, FALSE);
+  neon_compare (N_IF_32, N_IF_32, false);
 }
 
 /* For multiply instructions, we have the possibility of 16-bit or 32-bit
@@ -17886,7 +17886,7 @@ do_neon_mac_maybe_scalar (void)
   if (try_vfp_nsyn (3, do_vfp_nsyn_mla_mls) == SUCCESS)
     return;
 
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_CC | NEON_CHECK_ARCH))
+  if (!check_simd_pred_availability (false, NEON_CHECK_CC | NEON_CHECK_ARCH))
     return;
 
   if (inst.operands[2].isscalar)
@@ -17961,7 +17961,7 @@ do_neon_fmac (void)
       && try_vfp_nsyn (3, do_vfp_nsyn_fma_fms) == SUCCESS)
     return;
 
-  if (!check_simd_pred_availability (TRUE, NEON_CHECK_CC | NEON_CHECK_ARCH))
+  if (!check_simd_pred_availability (true, NEON_CHECK_CC | NEON_CHECK_ARCH))
     return;
 
   if (ARM_CPU_HAS_FEATURE (cpu_variant, mve_fp_ext))
@@ -18034,7 +18034,7 @@ do_neon_mul (void)
   if (try_vfp_nsyn (3, do_vfp_nsyn_mul) == SUCCESS)
     return;
 
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_CC | NEON_CHECK_ARCH))
+  if (!check_simd_pred_availability (false, NEON_CHECK_CC | NEON_CHECK_ARCH))
     return;
 
   if (inst.operands[2].isscalar)
@@ -18067,7 +18067,7 @@ do_neon_mul (void)
 static void
 do_neon_qdmulh (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH | NEON_CHECK_CC))
+  if (!check_simd_pred_availability (false, NEON_CHECK_ARCH | NEON_CHECK_CC))
    return;
 
   if (inst.operands[2].isscalar)
@@ -18493,7 +18493,7 @@ do_mve_vmaxv (void)
 static void
 do_neon_qrdmlah (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH | NEON_CHECK_CC))
+  if (!check_simd_pred_availability (false, NEON_CHECK_ARCH | NEON_CHECK_CC))
    return;
   if (!ARM_CPU_HAS_FEATURE (cpu_variant, mve_ext))
     {
@@ -18591,7 +18591,7 @@ do_neon_abs_neg (void)
 static void
 do_neon_sli (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH | NEON_CHECK_CC))
+  if (!check_simd_pred_availability (false, NEON_CHECK_ARCH | NEON_CHECK_CC))
     return;
 
   enum neon_shape rs;
@@ -18611,13 +18611,13 @@ do_neon_sli (void)
   int imm = inst.operands[2].imm;
   constraint (imm < 0 || (unsigned)imm >= et.size,
              _("immediate out of range for insert"));
-  neon_imm_shift (FALSE, 0, neon_quad (rs), et, imm);
+  neon_imm_shift (false, 0, neon_quad (rs), et, imm);
 }
 
 static void
 do_neon_sri (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH | NEON_CHECK_CC))
+  if (!check_simd_pred_availability (false, NEON_CHECK_ARCH | NEON_CHECK_CC))
     return;
 
   enum neon_shape rs;
@@ -18636,13 +18636,13 @@ do_neon_sri (void)
   int imm = inst.operands[2].imm;
   constraint (imm < 1 || (unsigned)imm > et.size,
              _("immediate out of range for insert"));
-  neon_imm_shift (FALSE, 0, neon_quad (rs), et, et.size - imm);
+  neon_imm_shift (false, 0, neon_quad (rs), et, et.size - imm);
 }
 
 static void
 do_neon_qshlu_imm (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH | NEON_CHECK_CC))
+  if (!check_simd_pred_availability (false, NEON_CHECK_ARCH | NEON_CHECK_CC))
     return;
 
   enum neon_shape rs;
@@ -18667,7 +18667,7 @@ do_neon_qshlu_imm (void)
      Unsigned types have OP set to 1.  */
   inst.instruction |= (et.type == NT_unsigned) << 8;
   /* The rest of the bits are the same as other immediate shifts.  */
-  neon_imm_shift (FALSE, 0, neon_quad (rs), et, imm);
+  neon_imm_shift (false, 0, neon_quad (rs), et, imm);
 }
 
 static void
@@ -18719,7 +18719,7 @@ do_neon_rshift_sat_narrow (void)
 
   constraint (imm < 1 || (unsigned)imm > et.size,
              _("immediate out of range"));
-  neon_imm_shift (TRUE, et.type == NT_unsigned, 0, et, et.size - imm);
+  neon_imm_shift (true, et.type == NT_unsigned, 0, et, et.size - imm);
 }
 
 static void
@@ -18749,7 +18749,7 @@ do_neon_rshift_sat_narrow_u (void)
   /* FIXME: The manual is kind of unclear about what value U should have in
      VQ{R}SHRUN instructions, but U=0, op=0 definitely encodes VRSHR, so it
      must be 1.  */
-  neon_imm_shift (TRUE, 1, 0, et, et.size - imm);
+  neon_imm_shift (true, 1, 0, et, et.size - imm);
 }
 
 static void
@@ -18783,7 +18783,7 @@ do_neon_rshift_narrow (void)
 
   constraint (imm < 1 || (unsigned)imm > et.size,
              _("immediate out of range for narrowing operation"));
-  neon_imm_shift (FALSE, 0, 0, et, et.size - imm);
+  neon_imm_shift (false, 0, 0, et, et.size - imm);
 }
 
 static void
@@ -18812,7 +18812,7 @@ do_neon_shll (void)
       et = neon_check_type (2, NS_QDI,
        N_EQK | N_DBL, N_SU_32 | N_KEY);
       NEON_ENCODE (IMMED, inst);
-      neon_imm_shift (TRUE, et.type == NT_unsigned, 0, et, imm);
+      neon_imm_shift (true, et.type == NT_unsigned, 0, et, imm);
     }
 }
 
@@ -19050,7 +19050,7 @@ do_vfp_nsyn_cvt_fpv8 (enum neon_cvt_flavour flavour,
   inst.instruction |= op << 7;
   inst.instruction |= rm << 16;
   inst.instruction |= 0xf0000000;
-  inst.is_neon = TRUE;
+  inst.is_neon = true;
 }
 
 static void
@@ -19126,7 +19126,7 @@ do_neon_cvt_1 (enum neon_cvt_mode mode)
              || flavour == neon_cvt_flavour_s32_f32
              || flavour == neon_cvt_flavour_u32_f32))
        {
-         if (!check_simd_pred_availability (TRUE,
+         if (!check_simd_pred_availability (true,
                                             NEON_CHECK_CC | NEON_CHECK_ARCH))
            return;
        }
@@ -19206,7 +19206,7 @@ do_neon_cvt_1 (enum neon_cvt_mode mode)
              || flavour == neon_cvt_flavour_s32_f32
              || flavour == neon_cvt_flavour_u32_f32))
        {
-         if (!check_simd_pred_availability (TRUE,
+         if (!check_simd_pred_availability (true,
                                             NEON_CHECK_CC | NEON_CHECK_ARCH8))
            return;
        }
@@ -19220,7 +19220,7 @@ do_neon_cvt_1 (enum neon_cvt_mode mode)
                   || flavour == neon_cvt_flavour_s32_f32
                   || flavour == neon_cvt_flavour_u32_f32))
        {
-         if (!check_simd_pred_availability (TRUE,
+         if (!check_simd_pred_availability (true,
                                             NEON_CHECK_CC | NEON_CHECK_ARCH))
            return;
        }
@@ -19230,7 +19230,7 @@ do_neon_cvt_1 (enum neon_cvt_mode mode)
        {
 
          NEON_ENCODE (FLOAT, inst);
-         if (!check_simd_pred_availability (TRUE,
+         if (!check_simd_pred_availability (true,
                                             NEON_CHECK_CC | NEON_CHECK_ARCH8))
            return;
 
@@ -19378,7 +19378,7 @@ do_neon_cvtm (void)
 }
 
 static void
-do_neon_cvttb_2 (bfd_boolean t, bfd_boolean to, bfd_boolean is_double)
+do_neon_cvttb_2 (bool t, bool to, bool is_double)
 {
   if (is_double)
     mark_feature_used (&fpu_vfp_ext_armv8);
@@ -19394,7 +19394,7 @@ do_neon_cvttb_2 (bfd_boolean t, bfd_boolean to, bfd_boolean is_double)
 }
 
 static void
-do_neon_cvttb_1 (bfd_boolean t)
+do_neon_cvttb_1 (bool t)
 {
   enum neon_shape rs = neon_select_shape (NS_HF, NS_HD, NS_FH, NS_FF, NS_FD,
                                          NS_DF, NS_DH, NS_QQ, NS_QQI, NS_NULL);
@@ -19404,7 +19404,7 @@ do_neon_cvttb_1 (bfd_boolean t)
   else if (rs == NS_QQ || rs == NS_QQI)
     {
       int single_to_half = 0;
-      if (!check_simd_pred_availability (TRUE, NEON_CHECK_ARCH))
+      if (!check_simd_pred_availability (true, NEON_CHECK_ARCH))
        return;
 
       enum neon_cvt_flavour flavour = get_neon_cvt_flavour (rs);
@@ -19445,12 +19445,12 @@ do_neon_cvttb_1 (bfd_boolean t)
   else if (neon_check_type (2, rs, N_F16, N_F32 | N_VFP).type != NT_invtype)
     {
       inst.error = NULL;
-      do_neon_cvttb_2 (t, /*to=*/TRUE, /*is_double=*/FALSE);
+      do_neon_cvttb_2 (t, /*to=*/true, /*is_double=*/false);
     }
   else if (neon_check_type (2, rs, N_F32 | N_VFP, N_F16).type != NT_invtype)
     {
       inst.error = NULL;
-      do_neon_cvttb_2 (t, /*to=*/FALSE, /*is_double=*/FALSE);
+      do_neon_cvttb_2 (t, /*to=*/false, /*is_double=*/false);
     }
   else if (neon_check_type (2, rs, N_F16, N_F64 | N_VFP).type != NT_invtype)
     {
@@ -19460,7 +19460,7 @@ do_neon_cvttb_1 (bfd_boolean t)
                  _(BAD_FPU));
 
       inst.error = NULL;
-      do_neon_cvttb_2 (t, /*to=*/TRUE, /*is_double=*/TRUE);
+      do_neon_cvttb_2 (t, /*to=*/true, /*is_double=*/true);
     }
   else if (neon_check_type (2, rs, N_F64 | N_VFP, N_F16).type != NT_invtype)
     {
@@ -19470,7 +19470,7 @@ do_neon_cvttb_1 (bfd_boolean t)
                  _(BAD_FPU));
 
       inst.error = NULL;
-      do_neon_cvttb_2 (t, /*to=*/FALSE, /*is_double=*/TRUE);
+      do_neon_cvttb_2 (t, /*to=*/false, /*is_double=*/true);
     }
   else if (neon_check_type (2, rs, N_BF16 | N_VFP, N_F32).type != NT_invtype)
     {
@@ -19478,7 +19478,7 @@ do_neon_cvttb_1 (bfd_boolean t)
       inst.error = NULL;
       inst.instruction |= (1 << 8);
       inst.instruction &= ~(1 << 9);
-      do_neon_cvttb_2 (t, /*to=*/TRUE, /*is_double=*/FALSE);
+      do_neon_cvttb_2 (t, /*to=*/true, /*is_double=*/false);
     }
   else
     return;
@@ -19487,14 +19487,14 @@ do_neon_cvttb_1 (bfd_boolean t)
 static void
 do_neon_cvtb (void)
 {
-  do_neon_cvttb_1 (FALSE);
+  do_neon_cvttb_1 (false);
 }
 
 
 static void
 do_neon_cvtt (void)
 {
-  do_neon_cvttb_1 (TRUE);
+  do_neon_cvttb_1 (true);
 }
 
 static void
@@ -19552,7 +19552,7 @@ neon_move_immediate (void)
 static void
 do_neon_mvn (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_CC | NEON_CHECK_ARCH))
+  if (!check_simd_pred_availability (false, NEON_CHECK_CC | NEON_CHECK_ARCH))
     return;
 
   if (inst.operands[1].isreg)
@@ -19894,7 +19894,7 @@ do_neon_ext (void)
 static void
 do_neon_rev (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH | NEON_CHECK_CC))
+  if (!check_simd_pred_availability (false, NEON_CHECK_ARCH | NEON_CHECK_CC))
    return;
 
   enum neon_shape rs;
@@ -19959,7 +19959,7 @@ do_neon_dup (void)
        N_8 | N_16 | N_32 | N_KEY, N_EQK);
       if (rs == NS_QR)
        {
-         if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH))
+         if (!check_simd_pred_availability (false, NEON_CHECK_ARCH))
            return;
        }
       else
@@ -20131,7 +20131,7 @@ do_neon_mov (void)
 
     case NS_QQ:  /* case 0/1.  */
       {
-       if (!check_simd_pred_availability (FALSE,
+       if (!check_simd_pred_availability (false,
                                           NEON_CHECK_CC | NEON_CHECK_ARCH))
          return;
        /* The architecture manual I have doesn't explicitly state which
@@ -20162,7 +20162,7 @@ do_neon_mov (void)
       /* fall through.  */
 
     case NS_QI:  /* case 2/3.  */
-      if (!check_simd_pred_availability (FALSE,
+      if (!check_simd_pred_availability (false,
                                         NEON_CHECK_CC | NEON_CHECK_ARCH))
        return;
       inst.instruction = 0x0800010;
@@ -20468,7 +20468,7 @@ do_mve_movl (void)
 static void
 do_neon_rshift_round_imm (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH | NEON_CHECK_CC))
+  if (!check_simd_pred_availability (false, NEON_CHECK_ARCH | NEON_CHECK_CC))
    return;
 
   enum neon_shape rs;
@@ -20496,7 +20496,7 @@ do_neon_rshift_round_imm (void)
 
   constraint (imm < 1 || (unsigned)imm > et.size,
              _("immediate out of range for shift"));
-  neon_imm_shift (TRUE, et.type == NT_unsigned, neon_quad (rs), et,
+  neon_imm_shift (true, et.type == NT_unsigned, neon_quad (rs), et,
                  et.size - imm);
 }
 
@@ -20565,7 +20565,7 @@ do_neon_zip_uzp (void)
 static void
 do_neon_sat_abs_neg (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_CC | NEON_CHECK_ARCH))
+  if (!check_simd_pred_availability (false, NEON_CHECK_CC | NEON_CHECK_ARCH))
     return;
 
   enum neon_shape rs;
@@ -20601,7 +20601,7 @@ do_neon_recip_est (void)
 static void
 do_neon_cls (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH | NEON_CHECK_CC))
+  if (!check_simd_pred_availability (false, NEON_CHECK_ARCH | NEON_CHECK_CC))
     return;
 
   enum neon_shape rs;
@@ -20618,7 +20618,7 @@ do_neon_cls (void)
 static void
 do_neon_clz (void)
 {
-  if (!check_simd_pred_availability (FALSE, NEON_CHECK_ARCH | NEON_CHECK_CC))
+  if (!check_simd_pred_availability (false, NEON_CHECK_ARCH | NEON_CHECK_CC))
     return;
 
   enum neon_shape rs;
@@ -20791,7 +20791,7 @@ static void
 do_t_vldr_vstr_sysreg (void)
 {
   int fp_vldr_bitno = 20, sysreg_vldr_bitno = 20;
-  bfd_boolean is_vldr = ((inst.instruction & (1 << fp_vldr_bitno)) != 0);
+  bool is_vldr = ((inst.instruction & (1 << fp_vldr_bitno)) != 0);
 
   /* Use of PC is UNPREDICTABLE.  */
   if (inst.operands[1].reg == REG_PC)
@@ -20809,7 +20809,7 @@ do_t_vldr_vstr_sysreg (void)
   inst.instruction = 0xec000f80;
   if (is_vldr)
     inst.instruction |= 1 << sysreg_vldr_bitno;
-  encode_arm_cp_address (1, TRUE, FALSE, BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM);
+  encode_arm_cp_address (1, true, false, BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM);
   inst.instruction |= (inst.operands[0].imm & 0x7) << 13;
   inst.instruction |= (inst.operands[0].imm & 0x8) << 19;
 }
@@ -20817,7 +20817,7 @@ do_t_vldr_vstr_sysreg (void)
 static void
 do_vldr_vstr (void)
 {
-  bfd_boolean sysreg_op = !inst.operands[0].isreg;
+  bool sysreg_op = !inst.operands[0].isreg;
 
   /* VLDR/VSTR (System Register).  */
   if (sysreg_op)
@@ -21220,7 +21220,7 @@ do_vmaxnm (void)
   if (try_vfp_nsyn (3, do_vfp_nsyn_fpv8) == SUCCESS)
     return;
 
-  if (!check_simd_pred_availability (TRUE, NEON_CHECK_CC | NEON_CHECK_ARCH8))
+  if (!check_simd_pred_availability (true, NEON_CHECK_CC | NEON_CHECK_ARCH8))
     return;
 
   neon_dyadic_misc (NT_untyped, N_F_16_32, 0);
@@ -21284,7 +21284,7 @@ do_vrint_1 (enum neon_cvt_mode mode)
       if (et.type == NT_invtype)
        return;
 
-      if (!check_simd_pred_availability (TRUE,
+      if (!check_simd_pred_availability (true,
                                         NEON_CHECK_CC | NEON_CHECK_ARCH8))
        return;
 
@@ -21388,7 +21388,7 @@ do_vcmla (void)
              _("immediate out of range"));
   rot /= 90;
 
-  if (!check_simd_pred_availability (TRUE,
+  if (!check_simd_pred_availability (true,
                                     NEON_CHECK_ARCH8 | NEON_CHECK_CC))
     return;
 
@@ -21644,7 +21644,7 @@ static void
 check_cde_operand (size_t index, int is_dual)
 {
   unsigned Rx = inst.operands[index].reg;
-  bfd_boolean isvec = inst.operands[index].isvec;
+  bool isvec = inst.operands[index].isvec;
   if (is_dual == 0 && thumb_mode)
     constraint (
                !((Rx <= 14 && Rx != 13) || (Rx == REG_PC && isvec)),
@@ -21654,7 +21654,7 @@ check_cde_operand (size_t index, int is_dual)
       _("Register must be an even register between r0-r10."));
 }
 
-static bfd_boolean
+static bool
 cde_coproc_enabled (unsigned coproc)
 {
   switch (coproc)
@@ -21667,7 +21667,7 @@ cde_coproc_enabled (unsigned coproc)
     case 5: return mark_feature_used (&arm_ext_cde5);
     case 6: return mark_feature_used (&arm_ext_cde6);
     case 7: return mark_feature_used (&arm_ext_cde7);
-    default: return FALSE;
+    default: return false;
   }
 }
 
@@ -21683,7 +21683,7 @@ cde_handle_coproc (void)
 #undef cde_coproc_pos
 
 static void
-cxn_handle_predication (bfd_boolean is_accum)
+cxn_handle_predication (bool is_accum)
 {
   if (is_accum && conditional_insn ())
     set_pred_insn_type (INSIDE_IT_INSN);
@@ -21697,7 +21697,7 @@ cxn_handle_predication (bfd_boolean is_accum)
 }
 
 static void
-do_custom_instruction_1 (int is_dual, bfd_boolean is_accum)
+do_custom_instruction_1 (int is_dual, bool is_accum)
 {
 
   constraint (!mark_feature_used (&arm_ext_cde), _(BAD_CDE));
@@ -21728,7 +21728,7 @@ do_custom_instruction_1 (int is_dual, bfd_boolean is_accum)
 }
 
 static void
-do_custom_instruction_2 (int is_dual, bfd_boolean is_accum)
+do_custom_instruction_2 (int is_dual, bool is_accum)
 {
 
   constraint (!mark_feature_used (&arm_ext_cde), _(BAD_CDE));
@@ -21767,7 +21767,7 @@ do_custom_instruction_2 (int is_dual, bfd_boolean is_accum)
 }
 
 static void
-do_custom_instruction_3 (int is_dual, bfd_boolean is_accum)
+do_custom_instruction_3 (int is_dual, bool is_accum)
 {
 
   constraint (!mark_feature_used (&arm_ext_cde), _(BAD_CDE));
@@ -22773,8 +22773,8 @@ new_automatic_it_block (int cond)
   now_pred.block_length = 1;
   mapping_state (MAP_THUMB);
   now_pred.insn = output_it_inst (cond, now_pred.mask, NULL);
-  now_pred.warn_deprecated = FALSE;
-  now_pred.insn_cond = TRUE;
+  now_pred.warn_deprecated = false;
+  now_pred.insn_cond = true;
 }
 
 /* Close an automatic IT block.
@@ -22913,7 +22913,7 @@ static int
 handle_pred_state (void)
 {
   now_pred.state_handled = 1;
-  now_pred.insn_cond = FALSE;
+  now_pred.insn_cond = false;
 
   switch (now_pred.state)
     {
@@ -23043,7 +23043,7 @@ handle_pred_state (void)
            }
          else
            {
-             now_pred.insn_cond = TRUE;
+             now_pred.insn_cond = true;
              now_pred_add_mask (inst.cond);
            }
 
@@ -23056,7 +23056,7 @@ handle_pred_state (void)
          /* Fallthrough.  */
        case NEUTRAL_IT_INSN:
          now_pred.block_length++;
-         now_pred.insn_cond = TRUE;
+         now_pred.insn_cond = true;
 
          if (now_pred.block_length > 4)
            force_automatic_it_block_close ();
@@ -23091,7 +23091,7 @@ handle_pred_state (void)
            now_pred.mask &= 0x1f;
            is_last = now_pred.mask == 0x10;
          }
-       now_pred.insn_cond = TRUE;
+       now_pred.insn_cond = true;
 
        switch (inst.pred_insn_type)
          {
@@ -23318,7 +23318,7 @@ it_fsm_post_encode (void)
        {
          as_tsktsk (_("IT blocks containing 32-bit Thumb instructions are "
                     "performance deprecated in ARMv8-A and ARMv8-R"));
-         now_pred.warn_deprecated = TRUE;
+         now_pred.warn_deprecated = true;
        }
       else
        {
@@ -23332,7 +23332,7 @@ it_fsm_post_encode (void)
                               "instructions of the following class are "
                               "performance deprecated in ARMv8-A and "
                               "ARMv8-R: %s"), p->description);
-                 now_pred.warn_deprecated = TRUE;
+                 now_pred.warn_deprecated = true;
                  break;
                }
 
@@ -23345,7 +23345,7 @@ it_fsm_post_encode (void)
          as_tsktsk (_("IT blocks containing more than one conditional "
                     "instruction are performance deprecated in ARMv8-A and "
                     "ARMv8-R"));
-         now_pred.warn_deprecated = TRUE;
+         now_pred.warn_deprecated = true;
        }
     }
 
@@ -23381,7 +23381,7 @@ in_pred_block (void)
    t32_insn_ok, OPCODE enabled by v6t2 extension bit do not need to be listed
    here, hence the "known" in the function name.  */
 
-static bfd_boolean
+static bool
 known_t32_only_insn (const struct asm_opcode *opcode)
 {
   /* Original Thumb-1 wide instruction.  */
@@ -23389,49 +23389,49 @@ known_t32_only_insn (const struct asm_opcode *opcode)
       || opcode->tencode == do_t_branch23
       || ARM_CPU_HAS_FEATURE (*opcode->tvariant, arm_ext_msr)
       || ARM_CPU_HAS_FEATURE (*opcode->tvariant, arm_ext_barrier))
-    return TRUE;
+    return true;
 
   /* Wide-only instruction added to ARMv8-M Baseline.  */
   if (ARM_CPU_HAS_FEATURE (*opcode->tvariant, arm_ext_v8m_m_only)
       || ARM_CPU_HAS_FEATURE (*opcode->tvariant, arm_ext_atomics)
       || ARM_CPU_HAS_FEATURE (*opcode->tvariant, arm_ext_v6t2_v8m)
       || ARM_CPU_HAS_FEATURE (*opcode->tvariant, arm_ext_div))
-    return TRUE;
+    return true;
 
-  return FALSE;
+  return false;
 }
 
 /* Whether wide instruction variant can be used if available for a valid OPCODE
    in ARCH.  */
 
-static bfd_boolean
+static bool
 t32_insn_ok (arm_feature_set arch, const struct asm_opcode *opcode)
 {
   if (known_t32_only_insn (opcode))
-    return TRUE;
+    return true;
 
   /* Instruction with narrow and wide encoding added to ARMv8-M.  Availability
      of variant T3 of B.W is checked in do_t_branch.  */
   if (ARM_CPU_HAS_FEATURE (arch, arm_ext_v8m)
       && opcode->tencode == do_t_branch)
-    return TRUE;
+    return true;
 
   /* MOV accepts T1/T3 encodings under Baseline, T3 encoding is 32bit.  */
   if (ARM_CPU_HAS_FEATURE (arch, arm_ext_v8m)
       && opcode->tencode == do_t_mov_cmp
       /* Make sure CMP instruction is not affected.  */
       && opcode->aencode == do_mov)
-    return TRUE;
+    return true;
 
   /* Wide instruction variants of all instructions with narrow *and* wide
      variants become available with ARMv6t2.  Other opcodes are either
      narrow-only or wide-only and are thus available if OPCODE is valid.  */
   if (ARM_CPU_HAS_FEATURE (arch, arm_ext_v6t2))
-    return TRUE;
+    return true;
 
   /* OPCODE with narrow only instruction variant or wide variant not
      available.  */
-  return FALSE;
+  return false;
 }
 
 void
@@ -23525,7 +23525,7 @@ md_assemble (char *str)
 
       inst.instruction = opcode->tvalue;
 
-      if (!parse_operands (p, opcode->operands, /*thumb=*/TRUE))
+      if (!parse_operands (p, opcode->operands, /*thumb=*/true))
        {
          /* Prepare the pred_insn_type for those encodings that don't set
             it.  */
@@ -23574,7 +23574,7 @@ md_assemble (char *str)
     }
   else if (ARM_CPU_HAS_FEATURE (cpu_variant, arm_ext_v1))
     {
-      bfd_boolean is_bx;
+      bool is_bx;
 
       /* bx is allowed on v5 cores, and sometimes on v4 cores.  */
       is_bx = (opcode->aencode == do_bx);
@@ -23599,7 +23599,7 @@ md_assemble (char *str)
       else
        inst.instruction |= inst.cond << 28;
       inst.size = INSN_SIZE;
-      if (!parse_operands (p, opcode->operands, /*thumb=*/FALSE))
+      if (!parse_operands (p, opcode->operands, /*thumb=*/false))
        {
          it_fsm_pre_encode ();
          opcode->aencode ();
@@ -23718,13 +23718,13 @@ arm_frob_label (symbolS * sym)
 
       THUMB_SET_FUNC (sym, 1);
 
-      label_is_thumb_function_name = FALSE;
+      label_is_thumb_function_name = false;
     }
 
   dwarf2_emit_label (sym);
 }
 
-bfd_boolean
+bool
 arm_data_in_code (void)
 {
   if (thumb_mode && ! strncmp (input_line_pointer + 1, "data:", 5))
@@ -23732,10 +23732,10 @@ arm_data_in_code (void)
       *input_line_pointer = '/';
       input_line_pointer += 5;
       *input_line_pointer = 0;
-      return TRUE;
+      return true;
     }
 
-  return FALSE;
+  return false;
 }
 
 char *
@@ -23755,7 +23755,7 @@ arm_canonicalize_symbol_name (char * name)
    should appear in both upper and lowercase variants. Some registers
    also have mixed-case names. */
 
-#define REGDEF(s,n,t) { #s, n, REG_TYPE_##t, TRUE, 0 }
+#define REGDEF(s,n,t) { #s, n, REG_TYPE_##t, true, 0 }
 #define REGNUM(p,n,t) REGDEF(p##n, n, t)
 #define REGNUM2(p,n,t) REGDEF(p##n, 2 * n, t)
 #define REGSET(p,t) \
@@ -27056,27 +27056,27 @@ relax_addsub (fragS *fragp, asection *sec)
 
 /* Return TRUE iff the definition of symbol S could be pre-empted
    (overridden) at link or load time.  */
-static bfd_boolean
+static bool
 symbol_preemptible (symbolS *s)
 {
   /* Weak symbols can always be pre-empted.  */
   if (S_IS_WEAK (s))
-    return TRUE;
+    return true;
 
   /* Non-global symbols cannot be pre-empted. */
   if (! S_IS_EXTERNAL (s))
-    return FALSE;
+    return false;
 
 #ifdef OBJ_ELF
   /* In ELF, a global symbol can be marked protected, or private.  In that
      case it can't be pre-empted (other definitions in the same link unit
      would violate the ODR).  */
   if (ELF_ST_VISIBILITY (S_GET_OTHER (s)) > STV_DEFAULT)
-    return FALSE;
+    return false;
 #endif
 
   /* Other global symbols might be pre-empted.  */
-  return TRUE;
+  return true;
 }
 
 /* Return the size of a relaxable branch instruction.  BITS is the
@@ -27373,7 +27373,7 @@ arm_init_frag (fragS * fragP, int max_chars ATTRIBUTE_UNUSED)
 void
 arm_init_frag (fragS * fragP, int max_chars)
 {
-  bfd_boolean frag_thumb_mode;
+  bool frag_thumb_mode;
 
   /* If the current ARM vs THUMB mode has not already
      been recorded into this frag then do so now.  */
@@ -27899,7 +27899,7 @@ md_pcrel_from_section (fixS * fixP, segT seg)
     case BFD_RELOC_THUMB_PCREL_BRANCH23:
       if (fixP->fx_addsy
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && ARM_IS_FUNC (fixP->fx_addsy)
          && ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v5t))
        base = fixP->fx_where + fixP->fx_frag->fr_address;
@@ -27910,7 +27910,7 @@ md_pcrel_from_section (fixS * fixP, segT seg)
     case BFD_RELOC_THUMB_PCREL_BLX:
       if (fixP->fx_addsy
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && THUMB_IS_FUNC (fixP->fx_addsy)
          && ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v5t))
        base = fixP->fx_where + fixP->fx_frag->fr_address;
@@ -27921,7 +27921,7 @@ md_pcrel_from_section (fixS * fixP, segT seg)
     case BFD_RELOC_ARM_PCREL_BLX:
       if (fixP->fx_addsy
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && ARM_IS_FUNC (fixP->fx_addsy)
          && ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v5t))
        base = fixP->fx_where + fixP->fx_frag->fr_address;
@@ -27930,7 +27930,7 @@ md_pcrel_from_section (fixS * fixP, segT seg)
     case BFD_RELOC_ARM_PCREL_CALL:
       if (fixP->fx_addsy
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && THUMB_IS_FUNC (fixP->fx_addsy)
          && ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v5t))
        base = fixP->fx_where + fixP->fx_frag->fr_address;
@@ -27974,9 +27974,9 @@ md_pcrel_from_section (fixS * fixP, segT seg)
     }
 }
 
-static bfd_boolean flag_warn_syms = TRUE;
+static bool flag_warn_syms = true;
 
-bfd_boolean
+bool
 arm_tc_equal_in_insn (int c ATTRIBUTE_UNUSED, char * name)
 {
   /* PR 18347 - Warn if the user attempts to create a symbol with the same
@@ -28019,7 +28019,7 @@ arm_tc_equal_in_insn (int c ATTRIBUTE_UNUSED, char * name)
        free (nbuf);
     }
 
-  return FALSE;
+  return false;
 }
 
 /* Under ELF we need to default _GLOBAL_OFFSET_TABLE.
@@ -28278,7 +28278,7 @@ get_thumb32_insn (char * buf)
    a constant.  Prevent this and force a relocation when the first symbols
    is a thumb function.  */
 
-bfd_boolean
+bool
 arm_optimize_expr (expressionS *l, operatorT op, expressionS *r)
 {
   if (op == O_subtract
@@ -28289,11 +28289,11 @@ arm_optimize_expr (expressionS *l, operatorT op, expressionS *r)
       l->X_op = O_subtract;
       l->X_op_symbol = r->X_add_symbol;
       l->X_add_number -= r->X_add_number;
-      return TRUE;
+      return true;
     }
 
   /* Process as normal.  */
-  return FALSE;
+  return false;
 }
 
 /* Encode Thumb2 unconditional branches and calls. The encoding
@@ -28860,7 +28860,7 @@ md_apply_fix (fixS *    fixP,
 
       if (ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v5t)
          && fixP->fx_addsy
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
          && THUMB_IS_FUNC (fixP->fx_addsy))
        /* Flip the bl to blx. This is a simple flip
@@ -28880,7 +28880,7 @@ md_apply_fix (fixS *    fixP,
     case BFD_RELOC_ARM_PCREL_JUMP:
       if (ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v5t)
          && fixP->fx_addsy
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
          && THUMB_IS_FUNC (fixP->fx_addsy))
        {
@@ -28904,7 +28904,7 @@ md_apply_fix (fixS *    fixP,
       temp = 1;
       if (ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v5t)
          && fixP->fx_addsy
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
          && ARM_IS_FUNC (fixP->fx_addsy))
        {
@@ -29009,7 +29009,7 @@ md_apply_fix (fixS *    fixP,
     case BFD_RELOC_THUMB_PCREL_BRANCH20:
       if (fixP->fx_addsy
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && ARM_IS_FUNC (fixP->fx_addsy)
          && ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v5t))
        {
@@ -29046,7 +29046,7 @@ md_apply_fix (fixS *    fixP,
         about it.  */
 
       if (fixP->fx_addsy
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
          && THUMB_IS_FUNC (fixP->fx_addsy))
        {
@@ -29069,7 +29069,7 @@ md_apply_fix (fixS *    fixP,
         is converted to a blx.  */
       if (fixP->fx_addsy
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && ARM_IS_FUNC (fixP->fx_addsy)
          && ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v5t))
        {
@@ -29565,7 +29565,7 @@ md_apply_fix (fixS *    fixP,
       gas_assert (!fixP->fx_done);
       {
        bfd_vma insn;
-       bfd_boolean is_mov;
+       bool is_mov;
        bfd_vma encoded_addend = value;
 
        /* Check that addend can be encoded in instruction.  */
@@ -29792,14 +29792,14 @@ md_apply_fix (fixS *  fixP,
     case BFD_RELOC_THUMB_PCREL_BRANCH5:
       if (fixP->fx_addsy
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && ARM_IS_FUNC (fixP->fx_addsy)
          && ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v8_1m_main))
        {
          /* Force a relocation for a branch 5 bits wide.  */
          fixP->fx_done = 0;
        }
-      if (v8_1_branch_value_check (value, 5, FALSE) == FAIL)
+      if (v8_1_branch_value_check (value, 5, false) == FAIL)
        as_bad_where (fixP->fx_file, fixP->fx_line,
                      BAD_BRANCH_OFF);
 
@@ -29816,7 +29816,7 @@ md_apply_fix (fixS *    fixP,
     case BFD_RELOC_THUMB_PCREL_BFCSEL:
       if (fixP->fx_addsy
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && ARM_IS_FUNC (fixP->fx_addsy)
          && ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v8_1m_main))
        {
@@ -29849,7 +29849,7 @@ md_apply_fix (fixS *    fixP,
     case BFD_RELOC_ARM_THUMB_BF17:
       if (fixP->fx_addsy
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && ARM_IS_FUNC (fixP->fx_addsy)
          && ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v8_1m_main))
        {
@@ -29857,7 +29857,7 @@ md_apply_fix (fixS *    fixP,
          fixP->fx_done = 0;
        }
 
-      if (v8_1_branch_value_check (value, 17, TRUE) == FAIL)
+      if (v8_1_branch_value_check (value, 17, true) == FAIL)
        as_bad_where (fixP->fx_file, fixP->fx_line,
                      BAD_BRANCH_OFF);
 
@@ -29882,7 +29882,7 @@ md_apply_fix (fixS *    fixP,
     case BFD_RELOC_ARM_THUMB_BF19:
       if (fixP->fx_addsy
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && ARM_IS_FUNC (fixP->fx_addsy)
          && ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v8_1m_main))
        {
@@ -29890,7 +29890,7 @@ md_apply_fix (fixS *    fixP,
          fixP->fx_done = 0;
        }
 
-      if (v8_1_branch_value_check (value, 19, TRUE) == FAIL)
+      if (v8_1_branch_value_check (value, 19, true) == FAIL)
        as_bad_where (fixP->fx_file, fixP->fx_line,
                      BAD_BRANCH_OFF);
 
@@ -29915,7 +29915,7 @@ md_apply_fix (fixS *    fixP,
     case BFD_RELOC_ARM_THUMB_BF13:
       if (fixP->fx_addsy
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && ARM_IS_FUNC (fixP->fx_addsy)
          && ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v8_1m_main))
        {
@@ -29923,7 +29923,7 @@ md_apply_fix (fixS *    fixP,
          fixP->fx_done = 0;
        }
 
-      if (v8_1_branch_value_check (value, 13, TRUE) == FAIL)
+      if (v8_1_branch_value_check (value, 13, true) == FAIL)
        as_bad_where (fixP->fx_file, fixP->fx_line,
                      BAD_BRANCH_OFF);
 
@@ -29948,7 +29948,7 @@ md_apply_fix (fixS *    fixP,
     case BFD_RELOC_ARM_THUMB_LOOP12:
       if (fixP->fx_addsy
          && (S_GET_SEGMENT (fixP->fx_addsy) == seg)
-         && !S_FORCE_RELOC (fixP->fx_addsy, TRUE)
+         && !S_FORCE_RELOC (fixP->fx_addsy, true)
          && ARM_IS_FUNC (fixP->fx_addsy)
          && ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v8_1m_main))
        {
@@ -29963,7 +29963,7 @@ md_apply_fix (fixS *    fixP,
          || ((insn & 0xffffffff) == 0xf01fc001))
        value = -value;
 
-      if (v8_1_branch_value_check (value, 12, FALSE) == FAIL)
+      if (v8_1_branch_value_check (value, 12, false) == FAIL)
        as_bad_where (fixP->fx_file, fixP->fx_line,
                      BAD_BRANCH_OFF);
       if (fixP->fx_done || !seg->use_rela_p)
@@ -30425,7 +30425,7 @@ arm_force_relocation (struct fix * fixp)
    addresses also ought to have their bottom bit set (assuming that
    they reside in Thumb code), but at the moment they will not.         */
 
-bfd_boolean
+bool
 arm_fix_adjustable (fixS * fixP)
 {
   if (fixP->fx_addsy == NULL)
@@ -30433,16 +30433,16 @@ arm_fix_adjustable (fixS * fixP)
 
   /* Preserve relocations against symbols with function type.  */
   if (symbol_get_bfdsym (fixP->fx_addsy)->flags & BSF_FUNCTION)
-    return FALSE;
+    return false;
 
   if (THUMB_IS_FUNC (fixP->fx_addsy)
       && fixP->fx_subsy == NULL)
-    return FALSE;
+    return false;
 
   /* We need the symbol name for the VTABLE entries.  */
   if (  fixP->fx_r_type == BFD_RELOC_VTABLE_INHERIT
       || fixP->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
-    return FALSE;
+    return false;
 
   /* Don't allow symbols to be discarded on GOT related relocs.         */
   if (fixP->fx_r_type == BFD_RELOC_ARM_PLT32
@@ -30462,13 +30462,13 @@ arm_fix_adjustable (fixS * fixP)
       || fixP->fx_r_type == BFD_RELOC_ARM_TLS_DESCSEQ
       || fixP->fx_r_type == BFD_RELOC_ARM_THM_TLS_DESCSEQ
       || fixP->fx_r_type == BFD_RELOC_ARM_TARGET2)
-    return FALSE;
+    return false;
 
   /* Similarly for group relocations.  */
   if ((fixP->fx_r_type >= BFD_RELOC_ARM_ALU_PC_G0_NC
        && fixP->fx_r_type <= BFD_RELOC_ARM_LDC_SB_G2)
       || fixP->fx_r_type == BFD_RELOC_ARM_LDR_PC_G0)
-    return FALSE;
+    return false;
 
   /* MOVW/MOVT REL relocations have limited offsets, so keep the symbols.  */
   if (fixP->fx_r_type == BFD_RELOC_ARM_MOVW
@@ -30479,15 +30479,15 @@ arm_fix_adjustable (fixS * fixP)
       || fixP->fx_r_type == BFD_RELOC_ARM_THUMB_MOVT
       || fixP->fx_r_type == BFD_RELOC_ARM_THUMB_MOVW_PCREL
       || fixP->fx_r_type == BFD_RELOC_ARM_THUMB_MOVT_PCREL)
-    return FALSE;
+    return false;
 
   /* BFD_RELOC_ARM_THUMB_ALU_ABS_Gx_NC relocations have VERY limited
      offsets, so keep these symbols.  */
   if (fixP->fx_r_type >= BFD_RELOC_ARM_THUMB_ALU_ABS_G0_NC
       && fixP->fx_r_type <= BFD_RELOC_ARM_THUMB_ALU_ABS_G3_NC)
-    return FALSE;
+    return false;
 
-  return TRUE;
+  return true;
 }
 #endif /* defined (OBJ_ELF) || defined (OBJ_COFF) */
 
@@ -31095,8 +31095,8 @@ struct arm_option_table arm_opts[] =
    " in ARMv8-A and ARMv8-R"), &warn_on_restrict_it, 1, NULL},
   {"mno-warn-restrict-it", NULL, &warn_on_restrict_it, 0, NULL},
 
-  {"mwarn-syms", N_("warn about symbols that match instruction names [default]"), (int *) (& flag_warn_syms), TRUE, NULL},
-  {"mno-warn-syms", N_("disable warnings about symobls that match instructions"), (int *) (& flag_warn_syms), FALSE, NULL},
+  {"mwarn-syms", N_("warn about symbols that match instruction names [default]"), (int *) (& flag_warn_syms), true, NULL},
+  {"mno-warn-syms", N_("disable warnings about symobls that match instructions"), (int *) (& flag_warn_syms), false, NULL},
   {NULL, NULL, NULL, 0, NULL}
 };
 
@@ -32173,13 +32173,13 @@ static const struct arm_option_value_table arm_eabis[] =
 
 struct arm_long_option_table
 {
-  const char * option;                 /* Substring to match.  */
-  const char * help;                   /* Help information.  */
-  bfd_boolean (*func) (const char *subopt);    /* Function to decode sub-option.  */
-  const char * deprecated;             /* If non-null, print this message.  */
+  const char *option;                  /* Substring to match.  */
+  const char *help;                    /* Help information.  */
+  bool (*func) (const char *subopt);   /* Function to decode sub-option.  */
+  const char *deprecated;              /* If non-null, print this message.  */
 };
 
-static bfd_boolean
+static bool
 arm_parse_extension (const char *str, const arm_feature_set *opt_set,
                     arm_feature_set *ext_set,
                     const struct arm_ext_table *ext_table)
@@ -32202,7 +32202,7 @@ arm_parse_extension (const char *str, const arm_feature_set *opt_set,
       if (*str != '+')
        {
          as_bad (_("invalid architectural extension"));
-         return FALSE;
+         return false;
        }
 
       str++;
@@ -32235,14 +32235,14 @@ arm_parse_extension (const char *str, const arm_feature_set *opt_set,
            {
              as_bad (_("must specify extensions to add before specifying "
                        "those to remove"));
-             return FALSE;
+             return false;
            }
        }
 
       if (len == 0)
        {
          as_bad (_("missing architectural extension"));
-         return FALSE;
+         return false;
        }
 
       gas_assert (adding_value != -1);
@@ -32251,7 +32251,7 @@ arm_parse_extension (const char *str, const arm_feature_set *opt_set,
       if (ext_table != NULL)
        {
          const struct arm_ext_table * ext_opt = ext_table;
-         bfd_boolean found = FALSE;
+         bool found = false;
          for (; ext_opt->name != NULL; ext_opt++)
            if (ext_opt->name_len == len
                && strncmp (ext_opt->name, str, len) == 0)
@@ -32273,7 +32273,7 @@ arm_parse_extension (const char *str, const arm_feature_set *opt_set,
                        continue;
                    ARM_CLEAR_FEATURE (*ext_set, *ext_set, ext_opt->clear);
                  }
-               found = TRUE;
+               found = true;
                break;
              }
          if (found)
@@ -32301,7 +32301,7 @@ arm_parse_extension (const char *str, const arm_feature_set *opt_set,
            if (i == nb_allowed_archs)
              {
                as_bad (_("extension does not apply to the base architecture"));
-               return FALSE;
+               return false;
              }
 
            /* Add or remove the extension.  */
@@ -32332,7 +32332,7 @@ arm_parse_extension (const char *str, const arm_feature_set *opt_set,
            as_bad (_("architectural extensions must be specified in "
                      "alphabetical order"));
 
-         return FALSE;
+         return false;
        }
       else
        {
@@ -32344,10 +32344,10 @@ arm_parse_extension (const char *str, const arm_feature_set *opt_set,
       str = ext;
     };
 
-  return TRUE;
+  return true;
 }
 
-static bfd_boolean
+static bool
 arm_parse_fp16_opt (const char *str)
 {
   if (strcasecmp (str, "ieee") == 0)
@@ -32357,13 +32357,13 @@ arm_parse_fp16_opt (const char *str)
   else
     {
       as_bad (_("unrecognised float16 format \"%s\""), str);
-      return FALSE;
+      return false;
     }
 
-  return TRUE;
+  return true;
 }
 
-static bfd_boolean
+static bool
 arm_parse_cpu (const char *str)
 {
   const struct arm_cpu_option_table *opt;
@@ -32378,7 +32378,7 @@ arm_parse_cpu (const char *str)
   if (len == 0)
     {
       as_bad (_("missing cpu name `%s'"), str);
-      return FALSE;
+      return false;
     }
 
   for (opt = arm_cpus; opt->name != NULL; opt++)
@@ -32409,14 +32409,14 @@ arm_parse_cpu (const char *str)
        if (ext != NULL)
          return arm_parse_extension (ext, mcpu_cpu_opt, mcpu_ext_opt, NULL);
 
-       return TRUE;
+       return true;
       }
 
   as_bad (_("unknown cpu `%s'"), str);
-  return FALSE;
+  return false;
 }
 
-static bfd_boolean
+static bool
 arm_parse_arch (const char *str)
 {
   const struct arm_arch_option_table *opt;
@@ -32431,7 +32431,7 @@ arm_parse_arch (const char *str)
   if (len == 0)
     {
       as_bad (_("missing architecture name `%s'"), str);
-      return FALSE;
+      return false;
     }
 
   for (opt = arm_archs; opt->name != NULL; opt++)
@@ -32449,14 +32449,14 @@ arm_parse_arch (const char *str)
          return arm_parse_extension (ext, march_cpu_opt, march_ext_opt,
                                      opt->ext_table);
 
-       return TRUE;
+       return true;
       }
 
   as_bad (_("unknown architecture `%s'\n"), str);
-  return FALSE;
+  return false;
 }
 
-static bfd_boolean
+static bool
 arm_parse_fpu (const char * str)
 {
   const struct arm_option_fpu_value_table * opt;
@@ -32465,14 +32465,14 @@ arm_parse_fpu (const char * str)
     if (streq (opt->name, str))
       {
        mfpu_opt = &opt->value;
-       return TRUE;
+       return true;
       }
 
   as_bad (_("unknown floating point format `%s'\n"), str);
-  return FALSE;
+  return false;
 }
 
-static bfd_boolean
+static bool
 arm_parse_float_abi (const char * str)
 {
   const struct arm_option_value_table * opt;
@@ -32481,15 +32481,15 @@ arm_parse_float_abi (const char * str)
     if (streq (opt->name, str))
       {
        mfloat_abi_opt = opt->value;
-       return TRUE;
+       return true;
       }
 
   as_bad (_("unknown floating point abi `%s'\n"), str);
-  return FALSE;
+  return false;
 }
 
 #ifdef OBJ_ELF
-static bfd_boolean
+static bool
 arm_parse_eabi (const char * str)
 {
   const struct arm_option_value_table *opt;
@@ -32498,17 +32498,17 @@ arm_parse_eabi (const char * str)
     if (streq (opt->name, str))
       {
        meabi_flags = opt->value;
-       return TRUE;
+       return true;
       }
   as_bad (_("unknown EABI `%s'\n"), str);
-  return FALSE;
+  return false;
 }
 #endif
 
-static bfd_boolean
+static bool
 arm_parse_it_mode (const char * str)
 {
-  bfd_boolean ret = TRUE;
+  bool ret = true;
 
   if (streq ("arm", str))
     implicit_it_mode = IMPLICIT_IT_MODE_ARM;
@@ -32522,19 +32522,19 @@ arm_parse_it_mode (const char * str)
     {
       as_bad (_("unknown implicit IT mode `%s', should be "\
                "arm, thumb, always, or never."), str);
-      ret = FALSE;
+      ret = false;
     }
 
   return ret;
 }
 
-static bfd_boolean
+static bool
 arm_ccs_mode (const char * unused ATTRIBUTE_UNUSED)
 {
-  codecomposer_syntax = TRUE;
+  codecomposer_syntax = true;
   arm_comment_chars[0] = ';';
   arm_line_separator_chars[0] = 0;
-  return TRUE;
+  return true;
 }
 
 struct arm_long_option_table arm_long_opts[] =
@@ -32586,12 +32586,12 @@ md_parse_option (int c, const char * arg)
 #endif
 
     case OPTION_FIX_V4BX:
-      fix_v4bx = TRUE;
+      fix_v4bx = true;
       break;
 
 #ifdef OBJ_ELF
     case OPTION_FDPIC:
-      arm_fdpic = TRUE;
+      arm_fdpic = true;
       break;
 #endif /* OBJ_ELF */
 
@@ -32789,7 +32789,7 @@ aeabi_set_attribute_string (int tag, const char *value)
 /* Return whether features in the *NEEDED feature set are available via
    extensions for the architecture whose feature set is *ARCH_FSET.  */
 
-static bfd_boolean
+static bool
 have_ext_for_needed_feat_p (const arm_feature_set *arch_fset,
                            const arm_feature_set *needed)
 {
@@ -33514,7 +33514,7 @@ arm_apply_sym_value (struct fix * fixP, segT this_seg)
         will always be generated for it, so applying the symbol value now
         will result in a double offset being stored in the relocation.  */
       && (S_GET_SEGMENT (fixP->fx_addsy) == this_seg)
-      && !S_FORCE_RELOC (fixP->fx_addsy, TRUE))
+      && !S_FORCE_RELOC (fixP->fx_addsy, true))
     {
       switch (fixP->fx_r_type)
        {