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:
Dominik Vogt 2016-01-29 10:17:03 +00:00 committed by Andreas Krebbel
parent 647ffdb76f
commit 6eb422f0cf
2 changed files with 10 additions and 3 deletions

View File

@ -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>
PR other/69006

View File

@ -904,13 +904,14 @@ s390_resolve_overloaded_builtin (location_t loc,
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;
}
else if (num_matches > 1)
{
error_at (loc, "ambiguous overload for intrinsic: %s",
IDENTIFIER_POINTER (DECL_NAME (ob_fndecl)));
error_at (loc, "ambiguous overload for intrinsic %qs",
IDENTIFIER_POINTER (DECL_NAME (ob_fndecl)));
return error_mark_node;
}