+2017-03-10 David Malcolm <dmalcolm@redhat.com>
+
+ 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.
+
2017-03-10 David Malcolm <dmalcolm@redhat.com>
PR translation/79923
+2017-03-10 David Malcolm <dmalcolm@redhat.com>
+
+ PR translation/79848
+ * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
+ "%qs".
+
2017-03-10 David Malcolm <dmalcolm@redhat.com>
PR c/79921
{
/* We expected a char but found an extended string type. */
if (is_objc_sref)
- error ("found a %<%s%> reference but the format argument should"
+ error ("found a %qs reference but the format argument should"
" be a string", format_name (gcc_objc_string_format_type));
else
error ("found a %qT but the format argument should be a string",
/* We expect a string object type as the format arg. */
if (is_char_ref)
{
- error ("format argument should be a %<%s%> reference but"
+ error ("format argument should be a %qs reference but"
" a string was found", format_name (expected_format_type));
*no_add_attrs = true;
return false;
return true;
else
{
- error ("format argument should be a %<%s%> reference",
+ error ("format argument should be a %qs reference",
format_name (expected_format_type));
*no_add_attrs = true;
return false;
+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
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)
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)
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;
}
+2017-03-10 David Malcolm <dmalcolm@redhat.com>
+
+ PR translation/79848
+ * decl.c (grokfndecl): Simplify uses of "%<%s%>" to "%qs".
+
2017-03-10 Jason Merrill <jason@redhat.com>
PR c++/79960 - alias templates and partial ordering
if (long_long_unsigned_p)
{
if (cpp_interpret_int_suffix (parse_in, suffix, strlen (suffix)))
- warning (0, "integer suffix %<%s%>"
+ warning (0, "integer suffix %qs"
" shadowed by implementation", suffix);
}
else if (long_double_p)
{
if (cpp_interpret_float_suffix (parse_in, suffix, strlen (suffix)))
- warning (0, "floating point suffix %<%s%>"
+ warning (0, "floating point suffix %qs"
" shadowed by implementation", suffix);
}
}
headers because glibc uses them. */;
else if (name)
pedwarn (input_location, OPT_Wpedantic,
- "ISO C++ forbids flexible array member %<%s%>", name);
+ "ISO C++ forbids flexible array member %qs", name);
else
pedwarn (input_location, OPT_Wpedantic,
"ISO C++ forbids flexible array members");
if (name1 && name2 && strcmp (name1, name2))
{
inform (loc_t1,
- "type name %<%s%> should match type name %<%s%>",
+ "type name %qs should match type name %qs",
name1, name2);
if (loc_t2_useful)
inform (loc_t2,
warning_at (DECL_SOURCE_LOCATION (decl),
option,
known_finite
- ? _("function might be candidate for attribute %<%s%>")
- : _("function might be candidate for attribute %<%s%>"
- " if it is known to return normally"), attrib_name);
+ ? G_("function might be candidate for attribute %qs")
+ : G_("function might be candidate for attribute %qs"
+ " if it is known to return normally"), attrib_name);
return warned_about;
}