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/check-init.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/check-init.c')
-rw-r--r-- | gcc/java/check-init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/check-init.c b/gcc/java/check-init.c index 82b14b5..c2272a8 100644 --- a/gcc/java/check-init.c +++ b/gcc/java/check-init.c @@ -977,7 +977,8 @@ check_for_initialization (tree body, tree mdecl) if (index >= 0 && ! ASSIGNED_P (before, index)) { if (! is_finit_method) - error_with_decl (decl, "final field '%s' may not have been initialized"); + error ("%Hfinal field '%D' may not have been initialized", + &DECL_SOURCE_LOCATION (decl), decl); } else if (is_finit_method) DECL_FIELD_FINAL_IUD (decl) = 1; |