summaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-17 20:44:10 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-17 20:44:10 +0000
commit7dd5e78f772f55f8eca4d242fa8cabce1eaeff50 (patch)
tree3d74be0649ef589d515a0e04062b5e30115e5b80 /gcc/java
parent7d1898d9b959cd870bab208722fbb5f0a67a7598 (diff)
downloadgcc-7dd5e78f772f55f8eca4d242fa8cabce1eaeff50.tar.gz
gcc/java:
* class.c (make_class_data): Always emit JV_STATE_PRELOADING for class' initial state. libjava: * java/lang/Class.h (_Jv_IsBinaryCompatibilityABI): Declare as friend. * include/jvm.h (_Jv_IsBinaryCompatibilityABI): New function. * testsuite/libjava.lang/bclink.java: New file. * testsuite/libjava.lang/bclink.out: New file. * link.cc (print_class_loaded): Changed ABI test to look at various _syms fields. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103225 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/class.c10
2 files changed, 8 insertions, 7 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 07dfc5b54dc..0ecfd8f8098 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-16 Tom Tromey <tromey@redhat.com>
+
+ * class.c (make_class_data): Always emit JV_STATE_PRELOADING for
+ class' initial state.
+
2005-08-16 Ranjit Mathew <rmathew@hotmail.com>
PR java/22113
diff --git a/gcc/java/class.c b/gcc/java/class.c
index 21945eb7fe3..a089112276e 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -1860,13 +1860,9 @@ make_class_data (tree type)
PUSH_FIELD_VALUE (cons, "loader", null_pointer_node);
PUSH_FIELD_VALUE (cons, "interface_count",
build_int_cst (NULL_TREE, interface_len));
- PUSH_FIELD_VALUE
- (cons, "state",
- convert (byte_type_node,
- build_int_cst (NULL_TREE,
- flag_indirect_dispatch
- ? JV_STATE_PRELOADING
- : JV_STATE_COMPILED)));
+ PUSH_FIELD_VALUE (cons, "state",
+ convert (byte_type_node,
+ build_int_cst (NULL_TREE, JV_STATE_PRELOADING)));
PUSH_FIELD_VALUE (cons, "thread", null_pointer_node);
PUSH_FIELD_VALUE (cons, "depth", integer_zero_node);