return set;
}
-static int
+static bool
aarch64_parse_features (const char *str, const aarch64_feature_set **opt_p,
bool ext_only)
{
{
/* No extensions, so just set the virtual feature bits and return. */
*ext_set = aarch64_update_virtual_dependencies (*ext_set);
- return 1;
+ return true;
}
/* We insist on extensions being added before being removed. We achieve
if (*str != '+')
{
as_bad (_("invalid architectural extension"));
- return 0;
+ return false;
}
ext = strchr (++str, '+');
if (optlen == 0)
{
as_bad (_("missing architectural extension"));
- return 0;
+ return false;
}
gas_assert (adding_value != -1);
if (opt->name == NULL)
{
as_bad (_("unknown architectural extension `%s'"), str);
- return 0;
+ return false;
}
str = ext;
AARCH64_MERGE_FEATURE_SETS (*ext_set, *ext_set, sve_sve2);
*ext_set = aarch64_update_virtual_dependencies (*ext_set);
- return 1;
+ return true;
}
-static int
+static bool
aarch64_parse_cpu (const char *str)
{
const struct aarch64_cpu_option_table *opt;
if (optlen == 0)
{
as_bad (_("missing cpu name `%s'"), str);
- return 0;
+ return false;
}
for (opt = aarch64_cpus; opt->name != NULL; opt++)
}
as_bad (_("unknown cpu `%s'"), str);
- return 0;
+ return false;
}
-static int
+static bool
aarch64_parse_arch (const char *str)
{
const struct aarch64_arch_option_table *opt;
if (optlen == 0)
{
as_bad (_("missing architecture name `%s'"), str);
- return 0;
+ return false;
}
for (opt = aarch64_archs; opt->name != NULL; opt++)
}
as_bad (_("unknown architecture `%s'"), str);
- return 0;
+ return false;
}
/* ABIs. */
#endif
};
-static int
+static bool
aarch64_parse_abi (const char *str)
{
unsigned int i;
if (str[0] == '\0')
{
as_bad (_("missing abi name `%s'"), str);
- return 0;
+ return false;
}
for (i = 0; i < ARRAY_SIZE (aarch64_abis); i++)
if (strcmp (str, aarch64_abis[i].name) == 0)
{
aarch64_abi = aarch64_abis[i].value;
- return 1;
+ return true;
}
as_bad (_("unknown abi `%s'"), str);
- return 0;
+ return false;
}
struct aarch64_long_option_table
{
const char *option; /* Substring to match. */
const char *help; /* Help information. */
- int (*func) (const char *subopt); /* Function to decode sub-option. */
+ bool (*func) (const char *subopt); /* Function to decode sub-option. */
char *deprecated; /* If non-null, print this message. */
};