diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2003-07-25 10:27:43 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2003-07-25 10:27:43 +0000 |
commit | cd47580517bf12a070ba8b5e76043d9df813acc6 (patch) | |
tree | bd914c5fecb0645c91a2bb36077ad261dfaf5a60 /gcc/java/expr.c | |
parent | e710066d27bdcc5165a1feef691e11b90e8f5a1f (diff) | |
download | gcc-cd47580517bf12a070ba8b5e76043d9df813acc6.zip gcc-cd47580517bf12a070ba8b5e76043d9df813acc6.tar.gz gcc-cd47580517bf12a070ba8b5e76043d9df813acc6.tar.bz2 |
objc-act.c (objc_check_decl): Don't use xxx_with_decl.
* objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
(objc_declare_class): Likewise.
(error_with_ivar): Likewise.
(start_class): Likewise.
(warn_with_method): Likewise.
java/
* expr.c (expand_java_field_op): Don't use xxx_with_decl
(expand_java_field_op): Likewise.
* class.c (layout_class_method): Likewise
(emit_register_classes): Likewise.
* decl.c (pushdecl): Likewise.
(poplevel): Likewise.
(force_poplevels): Likewise.
(give_name_to_locals): Likewise.
* check-init.c (check_for_initialization): Likewise.
From-SVN: r69780
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r-- | gcc/java/expr.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 5cf855c..7710008 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -2334,20 +2334,22 @@ expand_java_field_op (int is_static, int is_putting, int field_ref_index) if (FIELD_FINAL (field_decl)) { if (DECL_CONTEXT (field_decl) != current_class) - error_with_decl (field_decl, - "assignment to final field `%s' not in field's class"); + error ("%Hassignment to final field '%D' not in field's class", + &DECL_SOURCE_LOCATION (field_decl), field_decl); else if (FIELD_STATIC (field_decl)) { if (!DECL_CLINIT_P (current_function_decl)) - warning_with_decl (field_decl, - "assignment to final static field `%s' not in class initializer"); + warning ("assignment to final static field `%s' not in " + "class initializer", + &DECL_SOURCE_LOCATION (field_decl), field_decl); } else { tree cfndecl_name = DECL_NAME (current_function_decl); if (! DECL_CONSTRUCTOR_P (current_function_decl) && !ID_FINIT_P (cfndecl_name)) - warning_with_decl (field_decl, "assignment to final field `%s' not in constructor"); + warning ("%Hassignment to final field '%D' not in constructor", + &DECL_SOURCE_LOCATION (field_decl), field_decl); } } expand_assignment (field_ref, new_value, 0); |