S/390: Use %qs in error messages.
gcc/ChangeLog * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format declaration name with %qs and print it in both error messages. Also fix indentation. From-SVN: r232973
This commit is contained in:
parent
647ffdb76f
commit
6eb422f0cf
@ -1,3 +1,9 @@
|
|||||||
|
2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
* config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
|
||||||
|
declaration name with %qs and print it in both error messages.
|
||||||
|
Also fix indentation.
|
||||||
|
|
||||||
2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
|
2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
|
||||||
|
|
||||||
PR other/69006
|
PR other/69006
|
||||||
|
@ -904,13 +904,14 @@ s390_resolve_overloaded_builtin (location_t loc,
|
|||||||
|
|
||||||
if (last_match_type == INT_MAX)
|
if (last_match_type == INT_MAX)
|
||||||
{
|
{
|
||||||
error_at (loc, "invalid parameter combination for intrinsic");
|
error_at (loc, "invalid parameter combination for intrinsic %qs",
|
||||||
|
IDENTIFIER_POINTER (DECL_NAME (ob_fndecl)));
|
||||||
return error_mark_node;
|
return error_mark_node;
|
||||||
}
|
}
|
||||||
else if (num_matches > 1)
|
else if (num_matches > 1)
|
||||||
{
|
{
|
||||||
error_at (loc, "ambiguous overload for intrinsic: %s",
|
error_at (loc, "ambiguous overload for intrinsic %qs",
|
||||||
IDENTIFIER_POINTER (DECL_NAME (ob_fndecl)));
|
IDENTIFIER_POINTER (DECL_NAME (ob_fndecl)));
|
||||||
return error_mark_node;
|
return error_mark_node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user