From 6eb422f0cf9e4a577b59241b311539249dd04388 Mon Sep 17 00:00:00 2001 From: Dominik Vogt Date: Fri, 29 Jan 2016 10:17:03 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ 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 + * 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 + 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; } -- 2.7.4