Fix wording for: attribute ‘-xyz’ argument ‘target’ is unknown
gcc/ChangeLog: * config/i386/i386-options.cc (ix86_valid_target_attribute_inner_p): Change subject and object in the error message. * config/s390/s390.cc (s390_valid_target_attribute_inner_p): Likewise.
This commit is contained in:
parent
0415470c8d
commit
9db03cd0ca
@ -1201,7 +1201,7 @@ ix86_valid_target_attribute_inner_p (tree fndecl, tree args, char *p_strings[],
|
||||
if (opt == N_OPTS)
|
||||
{
|
||||
error_at (loc, "attribute %qs argument %qs is unknown",
|
||||
orig_p, attr_name);
|
||||
attr_name, orig_p);
|
||||
ret = false;
|
||||
}
|
||||
|
||||
|
@ -15903,7 +15903,7 @@ s390_valid_target_attribute_inner_p (tree args,
|
||||
/* Process the option. */
|
||||
if (!found)
|
||||
{
|
||||
error ("attribute %qs argument %<target%> is unknown", orig_p);
|
||||
error ("attribute %<target%> argument %qs is unknown", orig_p);
|
||||
return false;
|
||||
}
|
||||
else if (attrs[i].only_as_pragma && !force_pragma)
|
||||
@ -15953,7 +15953,7 @@ s390_valid_target_attribute_inner_p (tree args,
|
||||
}
|
||||
else
|
||||
{
|
||||
error ("attribute %qs argument %<target%> is unknown", orig_p);
|
||||
error ("attribute %<target%> argument %qs is unknown", orig_p);
|
||||
ret = false;
|
||||
}
|
||||
}
|
||||
@ -15970,7 +15970,7 @@ s390_valid_target_attribute_inner_p (tree args,
|
||||
global_dc);
|
||||
else
|
||||
{
|
||||
error ("attribute %qs argument %<target%> is unknown", orig_p);
|
||||
error ("attribute %<target%> argument %qs is unknown", orig_p);
|
||||
ret = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user