aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
authorRanjit Mathew <rmathew@hotmail.com>2004-10-15 18:43:10 +0000
committerRanjit Mathew <rmathew@gcc.gnu.org>2004-10-15 18:43:10 +0000
commita1402da35c57aa1c074bfc50b20a2a3135ff2987 (patch)
tree2a09c6df4e237628631d8886fb56b90f7e8897d8 /gcc/java/expr.c
parente68a07e8d547b03b769527365a40721d4d9298c6 (diff)
downloadgcc-a1402da35c57aa1c074bfc50b20a2a3135ff2987.zip
gcc-a1402da35c57aa1c074bfc50b20a2a3135ff2987.tar.gz
gcc-a1402da35c57aa1c074bfc50b20a2a3135ff2987.tar.bz2
parse.y (parse_warning_context): Remove ATTRIBUTE_PRINTF_2 and rename parameter 'msg' to 'msgid' in function...
* parse.y (parse_warning_context): Remove ATTRIBUTE_PRINTF_2 and rename parameter 'msg' to 'msgid' in function declaration. (issue_warning_error_from_context): Likewise. (yyerror): Rename parameter 'msg' to 'msgid'. (all over): Use new quoting style for diagnostics. * check-init.c: Use %<, %> and %q for quoting in diagnostics, if possible, else convert `foo' to 'foo'. * class.c: Likewise. * decl.c: Likewise. * expr.c: Likewise. * jcf-io.c: Likewise. * jcf-parse.c: Likewise. * lang.c: Likewise. * lex.c: Likewise. * parse.h: Likewise. From-SVN: r89110
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r--gcc/java/expr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 3d878b5..1372715 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -1486,7 +1486,7 @@ lookup_field (tree *typep, tree name)
{
tree i1 = DECL_CONTEXT (save_field);
tree i2 = DECL_CONTEXT (field);
- error ("reference `%s' is ambiguous: appears in interface `%s' and interface `%s'",
+ error ("reference %qs is ambiguous: appears in interface %qs and interface %qs",
IDENTIFIER_POINTER (name),
IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (i1))),
IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (i2))));
@@ -1514,7 +1514,7 @@ build_field_ref (tree self_value, tree self_class, tree name)
tree field_decl = lookup_field (&base_class, name);
if (field_decl == NULL_TREE)
{
- error ("field `%s' not found", IDENTIFIER_POINTER (name));
+ error ("field %qs not found", IDENTIFIER_POINTER (name));
return error_mark_node;
}
if (self_value == NULL_TREE)
@@ -2428,7 +2428,7 @@ expand_java_field_op (int is_static, int is_putting, int field_ref_index)
else if (FIELD_STATIC (field_decl))
{
if (!DECL_CLINIT_P (current_function_decl))
- warning ("%Jassignment to final static field `%D' not in "
+ warning ("%Jassignment to final static field %qD not in "
"class initializer",
field_decl, field_decl);
}