summaryrefslogtreecommitdiffstats
path: root/gcc/java/java-tree.h
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-05 22:59:12 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-05 22:59:12 +0000
commite13cfff747e14437b9de062aaf10800b0db49c2d (patch)
tree9d4743d71e75362eb9798fa906a94ca8f810cf3f /gcc/java/java-tree.h
parent5992d3b437cb787cb3a25d485973e75dbebf4e86 (diff)
downloadppe42-gcc-e13cfff747e14437b9de062aaf10800b0db49c2d.tar.gz
ppe42-gcc-e13cfff747e14437b9de062aaf10800b0db49c2d.zip
2001-04-04 Alexandre Petit-Bianco <apbianco@redhat.com>
* java-tree.h (struct lang_decl): New macro `DECL_FIXED_CONSTRUCTOR_P.' New field `fixed_ctor.' * parse.y (build_instance_initializer): New function. (add_instance_initializer): Use it. (java_fix_constructors): Set `current_class' before fix pass. (fix_constructors): Just return if already fixed. Move `super()' invokation ahead. Use `build_instance_initializer.' Fixes PR java/1315. (http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00343.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41129 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/java-tree.h')
-rw-r--r--gcc/java/java-tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h
index 95cd99c9f9c..0163b49d09d 100644
--- a/gcc/java/java-tree.h
+++ b/gcc/java/java-tree.h
@@ -715,6 +715,7 @@ struct lang_identifier
/* True if DECL initializes all its finals */
#define DECL_FUNCTION_ALL_FINAL_INITIALIZED(DECL) \
(DECL_LANG_SPECIFIC(DECL)->init_final)
+#define DECL_FIXED_CONSTRUCTOR_P(DECL) (DECL_LANG_SPECIFIC(DECL)->fixed_ctor)
/* True when DECL aliases an outer context local variable. */
#define FIELD_LOCAL_ALIAS(DECL) DECL_LANG_FLAG_6 (DECL)
@@ -864,6 +865,7 @@ struct lang_decl
int native : 1; /* Nonzero if this is a native method */
int synthetic_ctor : 1; /* Nonzero if this is a synthetic ctor */
int init_final : 1; /* Nonzero all finals are initialized */
+ int fixed_ctor : 1;
};
/* init_test_table hash table entry structure. */
OpenPOWER on IntegriCloud