diff options
author | Dominik Vogt <vogt@linux.vnet.ibm.com> | 2016-01-29 10:17:03 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2016-01-29 10:17:03 +0000 |
commit | 6eb422f0cf9e4a577b59241b311539249dd04388 (patch) | |
tree | 909a5bd9b1fcf6f7dec6187de063f290f0ad5bbf | |
parent | 647ffdb76f168630115caeb76c91bdcc5ff607ae (diff) | |
download | gcc-6eb422f0cf9e4a577b59241b311539249dd04388.zip gcc-6eb422f0cf9e4a577b59241b311539249dd04388.tar.gz gcc-6eb422f0cf9e4a577b59241b311539249dd04388.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/s390/s390-c.c | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 45b99e0..268dd61 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 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 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove trailing blank line from error message. diff --git a/gcc/config/s390/s390-c.c b/gcc/config/s390/s390-c.c index 2b6e405..cd3584b 100644 --- a/gcc/config/s390/s390-c.c +++ b/gcc/config/s390/s390-c.c @@ -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; } |