From 2f6f187a86652b0a1d8bac2eda09e25b515c2f46 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Sat, 11 Mar 2017 01:57:11 +0000 Subject: Simplify uses of "%<%s%>" to "%qs" (PR translation/79848) gcc/c-family/ChangeLog: PR translation/79848 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to "%qs". gcc/c/ChangeLog: PR translation/79848 * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to "%qs". * c-parser.c (c_parser_oacc_shape_clause): Likewise. gcc/cp/ChangeLog: PR translation/79848 * decl.c (grokfndecl): Simplify uses of "%<%s%>" to "%qs". gcc/ChangeLog: PR translation/79848 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to "%qs". * ipa-pure-const.c (suggest_attribute): Likewise. Convert _ to G_ to avoid double translation. From-SVN: r246068 --- gcc/c/ChangeLog | 7 +++++++ gcc/c/c-decl.c | 16 ++++++++-------- gcc/c/c-parser.c | 2 +- 3 files changed, 16 insertions(+), 9 deletions(-) (limited to 'gcc/c') diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index c461c6d..df4f65d 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,10 @@ +2017-03-10 David Malcolm + + PR translation/79848 + * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to + "%qs". + * c-parser.c (c_parser_oacc_shape_clause): Likewise. + 2017-03-09 Marek Polacek PR sanitizer/79757 diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index 130ffa6..0f10208 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -10517,37 +10517,37 @@ declspecs_add_type (location_t loc, struct c_declspecs *specs, str = "_Decimal128"; if (specs->long_long_p) error_at (loc, - ("both % and %<%s%> in " + ("both % and %qs in " "declaration specifiers"), str); if (specs->long_p) error_at (loc, - ("both % and %<%s%> in " + ("both % and %qs in " "declaration specifiers"), str); else if (specs->short_p) error_at (loc, - ("both % and %<%s%> in " + ("both % and %qs in " "declaration specifiers"), str); else if (specs->signed_p) error_at (loc, - ("both % and %<%s%> in " + ("both % and %qs in " "declaration specifiers"), str); else if (specs->unsigned_p) error_at (loc, - ("both % and %<%s%> in " + ("both % and %qs in " "declaration specifiers"), str); else if (specs->complex_p) error_at (loc, - ("both % and %<%s%> in " + ("both % and %qs in " "declaration specifiers"), str); else if (specs->saturating_p) error_at (loc, - ("both %<_Sat%> and %<%s%> in " + ("both %<_Sat%> and %qs in " "declaration specifiers"), str); else if (i == RID_DFLOAT32) @@ -10575,7 +10575,7 @@ declspecs_add_type (location_t loc, struct c_declspecs *specs, str = "_Accum"; if (specs->complex_p) error_at (loc, - ("both % and %<%s%> in " + ("both % and %qs in " "declaration specifiers"), str); else if (i == RID_FRACT) diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index 1394f18..46883e2 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -11820,7 +11820,7 @@ c_parser_oacc_shape_clause (c_parser *parser, omp_clause_code kind, if (c == boolean_true_node) { warning_at (loc, 0, - "%<%s%> value must be positive", str); + "%qs value must be positive", str); expr = integer_one_node; } -- cgit v1.1