diff options
Diffstat (limited to 'gcc/c')
-rw-r--r-- | gcc/c/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/c/c-decl.c | 16 | ||||
-rw-r--r-- | gcc/c/c-parser.c | 2 |
3 files changed, 16 insertions, 9 deletions
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 <dmalcolm@redhat.com> + + 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 <polacek@redhat.com> 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 %<long long%> and %<%s%> in " + ("both %<long long%> and %qs in " "declaration specifiers"), str); if (specs->long_p) error_at (loc, - ("both %<long%> and %<%s%> in " + ("both %<long%> and %qs in " "declaration specifiers"), str); else if (specs->short_p) error_at (loc, - ("both %<short%> and %<%s%> in " + ("both %<short%> and %qs in " "declaration specifiers"), str); else if (specs->signed_p) error_at (loc, - ("both %<signed%> and %<%s%> in " + ("both %<signed%> and %qs in " "declaration specifiers"), str); else if (specs->unsigned_p) error_at (loc, - ("both %<unsigned%> and %<%s%> in " + ("both %<unsigned%> and %qs in " "declaration specifiers"), str); else if (specs->complex_p) error_at (loc, - ("both %<complex%> and %<%s%> in " + ("both %<complex%> 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 %<complex%> and %<%s%> in " + ("both %<complex%> 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; } |