/* We ended with a comma, print something. */
if (!(*specs))
{
- error ("%s string ill-formed\n", option_name);
+ error ("%qs string ill-formed", option_name);
return 0;
}
int n = sscanf (tune_string, "%d", &width);
if (n == EOF)
{
- error ("invalid format for sve_width");
+ error ("invalid format for %<sve_width%>");
return;
}
switch (width)
case SVE_2048:
break;
default:
- error ("invalid sve_width value: %d", width);
+ error ("invalid %<sve_width%> value: %d", width);
}
tune->sve_width = (enum aarch64_sve_vector_bits_enum) width;
}
if (opts->x_aarch64_stack_protector_guard_reg_str)
{
if (strlen (opts->x_aarch64_stack_protector_guard_reg_str) > 100)
- error ("specify a system register with a small string length.");
+ error ("specify a system register with a small string length");
}
if (opts->x_aarch64_stack_protector_guard_offset_str)
inform (input_location, "valid arguments are: %s;"
" did you mean %qs?", s, hint);
else
- inform (input_location, "valid arguments are: %s;", s);
+ inform (input_location, "valid arguments are: %s", s);
XDELETEVEC (s);
}
temp |= SLS_RETBR;
else if (strcmp (str, "none") == 0 || strcmp (str, "all") == 0)
{
- error ("%<%s%> must be by itself for %<-mharden-sls=%>", str);
+ error ("%qs must be by itself for %<-mharden-sls=%>", str);
break;
}
else
error ("missing name in %<target(\"arch=\")%> pragma or attribute");
break;
case AARCH64_PARSE_INVALID_ARG:
- error ("invalid name (\"%s\") in %<target(\"arch=\")%> pragma or attribute", str);
+ error ("invalid name (%qs) in %<target(\"arch=\")%> pragma or attribute", str);
aarch64_print_hint_for_arch (str);
break;
case AARCH64_PARSE_INVALID_FEATURE:
- error ("invalid feature modifier %s of value (\"%s\") in "
+ error ("invalid feature modifier %s of value (%qs) in "
"%<target()%> pragma or attribute", invalid_extension.c_str (), str);
aarch64_print_hint_for_extensions (invalid_extension);
break;
error ("missing name in %<target(\"cpu=\")%> pragma or attribute");
break;
case AARCH64_PARSE_INVALID_ARG:
- error ("invalid name (\"%s\") in %<target(\"cpu=\")%> pragma or attribute", str);
+ error ("invalid name (%qs) in %<target(\"cpu=\")%> pragma or attribute", str);
aarch64_print_hint_for_core (str);
break;
case AARCH64_PARSE_INVALID_FEATURE:
- error ("invalid feature modifier %s of value (\"%s\") in "
+ error ("invalid feature modifier %s of value (%qs) in "
"%<target()%> pragma or attribute", invalid_extension.c_str (), str);
aarch64_print_hint_for_extensions (invalid_extension);
break;
" attribute");
break;
case AARCH64_PARSE_INVALID_ARG:
- error ("invalid protection type (\"%s\") in %<target(\"branch-protection"
+ error ("invalid protection type (%qs) in %<target(\"branch-protection"
"=\")%> pragma or attribute", err_str);
break;
case AARCH64_PARSE_OK:
switch (parse_res)
{
case AARCH64_PARSE_INVALID_ARG:
- error ("invalid name (\"%s\") in %<target(\"tune=\")%> pragma or attribute", str);
+ error ("invalid name (%qs) in %<target(\"tune=\")%> pragma or attribute", str);
aarch64_print_hint_for_core (str);
break;
default:
break;
case AARCH64_PARSE_INVALID_FEATURE:
- error ("invalid feature modifier %s of value (\"%s\") in "
+ error ("invalid feature modifier %s of value (%qs) in "
"%<target()%> pragma or attribute", invalid_extension.c_str (), str);
break;