diff options
Diffstat (limited to 'gas/config/tc-v850.c')
-rw-r--r-- | gas/config/tc-v850.c | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c index d93dfc6..496fd9b 100644 --- a/gas/config/tc-v850.c +++ b/gas/config/tc-v850.c @@ -28,8 +28,8 @@ #define SEXT16(x) ((((x) & 0xffff) ^ (~0x7fff)) + 0x8000) /* Set to TRUE if we want to be pedantic about signed overflows. */ -static bfd_boolean warn_signed_overflows = FALSE; -static bfd_boolean warn_unsigned_overflows = FALSE; +static bool warn_signed_overflows = false; +static bool warn_unsigned_overflows = false; /* Non-zero if floating point insns are not being used. */ static signed int soft_float = -1; @@ -942,7 +942,7 @@ static int reg_name_search (const struct reg_name *regs, int regcount, const char *name, - bfd_boolean accept_numbers) + bool accept_numbers) { int middle, low, high; int cmp; @@ -995,7 +995,7 @@ reg_name_search (const struct reg_name *regs, Input_line_pointer->(next non-blank) char after operand, or is in its original state. */ -static bfd_boolean +static bool register_name (expressionS *expressionP) { int reg_number; @@ -1008,7 +1008,7 @@ register_name (expressionS *expressionP) c = get_symbol_name (&name); reg_number = reg_name_search (pre_defined_registers, REG_NAME_CNT, - name, FALSE); + name, false); /* Put back the delimiting char. */ (void) restore_line_pointer (c); @@ -1022,7 +1022,7 @@ register_name (expressionS *expressionP) expressionP->X_op = O_register; expressionP->X_add_number = reg_number; - return TRUE; + return true; } /* Reset the line as if we had not done anything. */ @@ -1030,7 +1030,7 @@ register_name (expressionS *expressionP) expressionP->X_op = O_illegal; - return FALSE; + return false; } /* Summary of system_register_name(). @@ -1045,9 +1045,9 @@ register_name (expressionS *expressionP) Input_line_pointer->(next non-blank) char after operand, or is in its original state. */ -static bfd_boolean +static bool system_register_name (expressionS *expressionP, - bfd_boolean accept_numbers) + bool accept_numbers) { int reg_number; char *name; @@ -1084,7 +1084,7 @@ system_register_name (expressionS *expressionP, expressionP->X_op = O_register; expressionP->X_add_number = reg_number; - return TRUE; + return true; } /* Reset the line as if we had not done anything. */ @@ -1092,7 +1092,7 @@ system_register_name (expressionS *expressionP, expressionP->X_op = O_illegal; - return FALSE; + return false; } /* Summary of cc_name(). @@ -1105,9 +1105,9 @@ system_register_name (expressionS *expressionP, Input_line_pointer->(next non-blank) char after operand, or is in its original state. */ -static bfd_boolean +static bool cc_name (expressionS *expressionP, - bfd_boolean accept_numbers) + bool accept_numbers) { int reg_number; char *name; @@ -1143,7 +1143,7 @@ cc_name (expressionS *expressionP, expressionP->X_op = O_constant; expressionP->X_add_number = reg_number; - return TRUE; + return true; } /* Reset the line as if we had not done anything. */ @@ -1152,12 +1152,12 @@ cc_name (expressionS *expressionP, expressionP->X_op = O_illegal; expressionP->X_add_number = 0; - return FALSE; + return false; } -static bfd_boolean +static bool float_cc_name (expressionS *expressionP, - bfd_boolean accept_numbers) + bool accept_numbers) { int reg_number; char *name; @@ -1193,7 +1193,7 @@ float_cc_name (expressionS *expressionP, expressionP->X_op = O_constant; expressionP->X_add_number = reg_number; - return TRUE; + return true; } /* Reset the line as if we had not done anything. */ @@ -1202,12 +1202,12 @@ float_cc_name (expressionS *expressionP, expressionP->X_op = O_illegal; expressionP->X_add_number = 0; - return FALSE; + return false; } -static bfd_boolean +static bool cacheop_name (expressionS * expressionP, - bfd_boolean accept_numbers) + bool accept_numbers) { int reg_number; char *name; @@ -1241,7 +1241,7 @@ cacheop_name (expressionS * expressionP, expressionP->X_op = O_constant; expressionP->X_add_number = reg_number; - return TRUE; + return true; } /* Reset the line as if we had not done anything. */ @@ -1250,12 +1250,12 @@ cacheop_name (expressionS * expressionP, expressionP->X_op = O_illegal; expressionP->X_add_number = 0; - return FALSE; + return false; } -static bfd_boolean +static bool prefop_name (expressionS * expressionP, - bfd_boolean accept_numbers) + bool accept_numbers) { int reg_number; char *name; @@ -1289,7 +1289,7 @@ prefop_name (expressionS * expressionP, expressionP->X_op = O_constant; expressionP->X_add_number = reg_number; - return TRUE; + return true; } /* Reset the line as if we had not done anything. */ @@ -1298,10 +1298,10 @@ prefop_name (expressionS * expressionP, expressionP->X_op = O_illegal; expressionP->X_add_number = 0; - return FALSE; + return false; } -static bfd_boolean +static bool vector_register_name (expressionS *expressionP) { int reg_number; @@ -1314,7 +1314,7 @@ vector_register_name (expressionS *expressionP) c = get_symbol_name (&name); reg_number = reg_name_search (vector_registers, VREG_NAME_CNT, - name, FALSE); + name, false); /* Put back the delimiting char. */ (void) restore_line_pointer (c); @@ -1328,7 +1328,7 @@ vector_register_name (expressionS *expressionP) expressionP->X_op = O_register; expressionP->X_add_number = reg_number; - return TRUE; + return true; } /* Reset the line as if we had not done anything. */ @@ -1336,7 +1336,7 @@ vector_register_name (expressionS *expressionP) expressionP->X_op = O_illegal; - return FALSE; + return false; } static void @@ -1452,7 +1452,7 @@ parse_register_list (unsigned long *insn, if (i == 32) return _("illegal register included in list"); } - else if (system_register_name (&exp, TRUE)) + else if (system_register_name (&exp, true)) { if (regs == type1_regs) { @@ -1532,7 +1532,7 @@ struct option md_longopts[] = size_t md_longopts_size = sizeof (md_longopts); -static bfd_boolean v850_data_8 = FALSE; +static bool v850_data_8 = false; void md_show_usage (FILE *stream) @@ -1580,10 +1580,10 @@ md_parse_option (int c, const char *arg) } if (strcmp (arg, "warn-signed-overflow") == 0) - warn_signed_overflows = TRUE; + warn_signed_overflows = true; else if (strcmp (arg, "warn-unsigned-overflow") == 0) - warn_unsigned_overflows = TRUE; + warn_unsigned_overflows = true; else if (strcmp (arg, "v850") == 0) { @@ -1646,12 +1646,12 @@ md_parse_option (int c, const char *arg) } else if (strcmp (arg, "8byte-align") == 0) { - v850_data_8 = TRUE; + v850_data_8 = true; v850_e_flags |= EF_RH850_DATA_ALIGN8; } else if (strcmp (arg, "4byte-align") == 0) { - v850_data_8 = FALSE; + v850_data_8 = false; v850_e_flags &= ~ EF_RH850_DATA_ALIGN8; } else if (strcmp (arg, "soft-float") == 0) @@ -1673,7 +1673,7 @@ md_undefined_symbol (char *name ATTRIBUTE_UNUSED) const char * md_atof (int type, char *litp, int *sizep) { - return ieee_md_atof (type, litp, sizep, FALSE); + return ieee_md_atof (type, litp, sizep, false); } /* Very gross. */ @@ -2141,13 +2141,13 @@ handle_tdaoff (const struct v850_operand *operand, const char **errmsg) static bfd_reloc_code_real_type v850_reloc_prefix (const struct v850_operand *operand, const char **errmsg) { - bfd_boolean paren_skipped = FALSE; + bool paren_skipped = false; /* Skip leading opening parenthesis. */ if (*input_line_pointer == '(') { ++input_line_pointer; - paren_skipped = TRUE; + paren_skipped = true; } #define CHECK_(name, reloc) \ @@ -2303,7 +2303,7 @@ md_assemble (char *str) char *f = NULL; int i; int match; - bfd_boolean extra_data_after_insn = FALSE; + bool extra_data_after_insn = false; unsigned extra_data_len = 0; unsigned long extra_data = 0; char *saved_input_line_pointer; @@ -2371,7 +2371,7 @@ md_assemble (char *str) next_opindex = 0; insn = opcode->opcode; extra_data_len = 0; - extra_data_after_insn = FALSE; + extra_data_after_insn = false; input_line_pointer = str = start_of_operands; @@ -2497,7 +2497,7 @@ md_assemble (char *str) if (operand->flags & V850E_IMMEDIATE32) { - extra_data_after_insn = TRUE; + extra_data_after_insn = true; extra_data_len = 4; extra_data = 0; } @@ -2508,7 +2508,7 @@ md_assemble (char *str) errmsg = _("immediate operand is too large"); goto error; } - extra_data_after_insn = TRUE; + extra_data_after_insn = true; extra_data_len = 2; extra_data = 0; } @@ -2529,7 +2529,7 @@ md_assemble (char *str) goto error; } - extra_data_after_insn = TRUE; + extra_data_after_insn = true; extra_data_len = 2; extra_data = 0; } @@ -2568,7 +2568,7 @@ md_assemble (char *str) if (operand->flags & V850E_IMMEDIATE32) { - extra_data_after_insn = TRUE; + extra_data_after_insn = true; extra_data_len = 4; extra_data = 0; } @@ -2579,7 +2579,7 @@ md_assemble (char *str) errmsg = _("immediate operand is too large"); goto error; } - extra_data_after_insn = TRUE; + extra_data_after_insn = true; extra_data_len = 2; extra_data = 0; } @@ -2600,7 +2600,7 @@ md_assemble (char *str) goto error; } - extra_data_after_insn = TRUE; + extra_data_after_insn = true; extra_data_len = 2; extra_data = 0; } @@ -2664,7 +2664,7 @@ md_assemble (char *str) break; } - extra_data_after_insn = TRUE; + extra_data_after_insn = true; extra_data_len = 2; extra_data = ex.X_add_number; } @@ -2697,7 +2697,7 @@ md_assemble (char *str) fixups[fc].reloc = operand->default_reloc; ++fc; - extra_data_after_insn = TRUE; + extra_data_after_insn = true; extra_data_len = 2; extra_data = 0; } @@ -2738,7 +2738,7 @@ md_assemble (char *str) break; } - extra_data_after_insn = TRUE; + extra_data_after_insn = true; extra_data_len = 4; extra_data = ex.X_add_number; } @@ -2776,7 +2776,7 @@ md_assemble (char *str) } else if ((operand->flags & V850_OPERAND_SRG) != 0) { - if (!system_register_name (&ex, TRUE)) + if (!system_register_name (&ex, true)) { errmsg = _("invalid system register name"); } @@ -2807,7 +2807,7 @@ md_assemble (char *str) } else if ((operand->flags & V850_OPERAND_CC) != 0) { - if (!cc_name (&ex, TRUE)) + if (!cc_name (&ex, true)) { errmsg = _("invalid condition code name"); } @@ -2820,19 +2820,19 @@ md_assemble (char *str) } else if ((operand->flags & V850_OPERAND_FLOAT_CC) != 0) { - if (!float_cc_name (&ex, TRUE)) + if (!float_cc_name (&ex, true)) { errmsg = _("invalid condition code name"); } } else if ((operand->flags & V850_OPERAND_CACHEOP) != 0) { - if (!cacheop_name (&ex, TRUE)) + if (!cacheop_name (&ex, true)) errmsg = _("invalid cache operation name"); } else if ((operand->flags & V850_OPERAND_PREFOP) != 0) { - if (!prefop_name (&ex, TRUE)) + if (!prefop_name (&ex, true)) errmsg = _("invalid pref operation name"); } else if ((operand->flags & V850_OPERAND_VREG) != 0) @@ -2889,17 +2889,17 @@ md_assemble (char *str) &symbol_rootP, &symbol_lastP); } } - else if (system_register_name (&ex, FALSE) + else if (system_register_name (&ex, false) && (operand->flags & V850_OPERAND_SRG) == 0) { errmsg = _("syntax error: system register not expected"); } - else if (cc_name (&ex, FALSE) + else if (cc_name (&ex, false) && (operand->flags & V850_OPERAND_CC) == 0) { errmsg = _("syntax error: condition code not expected"); } - else if (float_cc_name (&ex, FALSE) + else if (float_cc_name (&ex, false) && (operand->flags & V850_OPERAND_FLOAT_CC) == 0) { errmsg = _("syntax error: condition code not expected"); @@ -3236,7 +3236,7 @@ md_assemble (char *str) f = frag_more (extra_data_len); md_number_to_chars (f, extra_data, extra_data_len); - extra_data_after_insn = FALSE; + extra_data_after_insn = false; } } @@ -3691,7 +3691,7 @@ cons_fix_new_v850 (fragS *frag, fix_new (frag, where, size, NULL, 0, 0, r); } -bfd_boolean +bool v850_fix_adjustable (fixS *fixP) { if (fixP->fx_addsy == NULL) |