diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-19 16:04:10 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-19 16:04:10 +0000 |
commit | 483c9a9d5781a1999bb66b43ebe3b0a814da797d (patch) | |
tree | 0416c1ff3b56daf1ff3a14bd481b259133e60841 /gcc/java/java-tree.h | |
parent | 7b842db5ca374847b457598cad403e7bb840f55e (diff) | |
download | gcc-483c9a9d5781a1999bb66b43ebe3b0a814da797d.tar.gz |
* java-tree.h: Added init state enum.
* decl.c (emit_init_test_initialization): Initialize class
initialization check variable by looking at class' state.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34022 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/java-tree.h')
-rw-r--r-- | gcc/java/java-tree.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index a27b6b06048..2b77434201b 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -1165,4 +1165,25 @@ extern int java_error_count; \ return; \ } +/* These are the possible values for the `state' field of the class + structure. This must be kept in sync with libgcj. */ +enum +{ + JV_STATE_NOTHING = 0, /* Set by compiler. */ + + JV_STATE_PRELOADING = 1, /* Can do _Jv_FindClass. */ + JV_STATE_LOADING = 3, /* Has super installed. */ + JV_STATE_LOADED = 5, /* Is complete. */ + + JV_STATE_COMPILED = 6, /* This was a compiled class. */ + + JV_STATE_PREPARED = 7, /* Layout & static init done. */ + JV_STATE_LINKED = 9, /* Strings interned. */ + + JV_STATE_IN_PROGRESS = 10, /* <Clinit> running. */ + JV_STATE_DONE = 12, + + JV_STATE_ERROR = 14 /* must be last. */ +}; + #undef DEBUG_JAVA_BINDING_LEVELS |