diff options
author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-17 21:50:48 +0000 |
---|---|---|
committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-17 21:50:48 +0000 |
commit | f01bd317b59c3707306f3b59600baba7c5a05561 (patch) | |
tree | d6762210ff12f7bb57f95f7b1fd99819031fa631 /gcc/java/java-tree.h | |
parent | b729fb0bd4a5d7eb8a896d73eb510edd3fc7bbe5 (diff) | |
download | gcc-f01bd317b59c3707306f3b59600baba7c5a05561.tar.gz |
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)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35768 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/java-tree.h')
-rw-r--r-- | gcc/java/java-tree.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index 7d2d74fa0bc..a6098200dd1 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -253,7 +253,8 @@ extern tree double_array_vtable; extern tree TYPE_identifier_node; /* "TYPE" */ extern tree init_identifier_node; /* "<init>" */ extern tree clinit_identifier_node; /* "<clinit>" */ -extern tree finit_identifier_node; /* "$finit$" */ +extern tree finit_identifier_node; /* "finit$" */ +extern tree finit_leg_identifier_node; /* "$finit$" */ extern tree void_signature_node; /* "()V" */ extern tree length_identifier_node; /* "length" */ extern tree this_identifier_node; /* "this" */ @@ -821,7 +822,12 @@ struct rtx_def * java_lang_expand_expr PARAMS ((tree, rtx, enum machine_mode, /* Predicates on method identifiers. Kept close to other macros using them */ #define ID_INIT_P(ID) ((ID) == init_identifier_node) -#define ID_FINIT_P(ID) ((ID) == finit_identifier_node) +/* Match ID to either `$finit$' or `finit$', so that `$finit$' + continues to be recognized as an equivalent to `finit$' which is + now the prefered name used for the field initialization special + method. */ +#define ID_FINIT_P(ID) ((ID) == finit_identifier_node \ + || (ID) == finit_leg_identifier_node) #define ID_CLINIT_P(ID) ((ID) == clinit_identifier_node) /* Access flags etc for a variable/field (a FIELD_DECL): */ |