diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2000-08-17 21:50:48 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-08-17 14:50:48 -0700 |
commit | 25bdcbc5242faed11b2f58c72c64cb2b0165d681 (patch) | |
tree | d6762210ff12f7bb57f95f7b1fd99819031fa631 /gcc/java/java-tree.h | |
parent | 1492cacbf99161cbd34d92ae575b5e2de9a63fe7 (diff) | |
download | gcc-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/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 7d2d74f..a609820 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): */ |