diff options
| author | rmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-15 18:43:10 +0000 |
|---|---|---|
| committer | rmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-15 18:43:10 +0000 |
| commit | e9ff100d28c2212bcba20417d62187a6cc51d65e (patch) | |
| tree | 2a09c6df4e237628631d8886fb56b90f7e8897d8 /gcc/java/expr.c | |
| parent | a51af15b2dc9503a22d9ab9e8996bcc1ff90897e (diff) | |
| download | ppe42-gcc-e9ff100d28c2212bcba20417d62187a6cc51d65e.tar.gz ppe42-gcc-e9ff100d28c2212bcba20417d62187a6cc51d65e.zip | |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89110 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/expr.c')
| -rw-r--r-- | gcc/java/expr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 3d878b523cf..13727151967 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); } |

