aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>2000-08-17 21:50:48 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>2000-08-17 14:50:48 -0700
commit25bdcbc5242faed11b2f58c72c64cb2b0165d681 (patch)
treed6762210ff12f7bb57f95f7b1fd99819031fa631 /gcc/java/expr.c
parent1492cacbf99161cbd34d92ae575b5e2de9a63fe7 (diff)
downloadgcc-25bdcbc5242faed11b2f58c72c64cb2b0165d681.zip
gcc-25bdcbc5242faed11b2f58c72c64cb2b0165d681.tar.gz
gcc-25bdcbc5242faed11b2f58c72c64cb2b0165d681.tar.bz2
decl.c (finit_leg_identifier_node): New global.
2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com> * decl.c (finit_leg_identifier_node): New global. (init_decl_processing): Use `finit$' to initialize finit_identifier_node. Use `$finit$' to initialize finit_leg_identifier_node. * expr.c (expand_java_field_op): Use ID_FINIT_P. * java-tree.h (finit_identifier_node): Changed attached comment. (finit_leg_identifier_node): New declaration. (ID_FINIT_P): Take finit_identifier_node and finit_leg_identifier_node into account. This is a backward compatibility hack. (http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00664.html See also the matching Java run-time patch: http://sources.redhat.com/ml/java-discuss/2000-08/msg00031.html) From-SVN: r35768
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r--gcc/java/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index af59e63..e3e5f8e 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -2210,7 +2210,7 @@ expand_java_field_op (is_static, is_putting, field_ref_index)
{
tree cfndecl_name = DECL_NAME (current_function_decl);
if (! DECL_CONSTRUCTOR_P (current_function_decl)
- && (cfndecl_name != finit_identifier_node))
+ && !ID_FINIT_P (cfndecl_name))
error_with_decl (field_decl, "assignment to final field `%s' not in constructor");
}
}