aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1998-10-30 00:35:32 +0000
committerTom Tromey <tromey@gcc.gnu.org>1998-10-30 00:35:32 +0000
commit9cfceb60cded797ae431d53e30b279afb161d3c1 (patch)
tree299473034cd88f8a96a4600141440dc773f50ce1 /gcc/java/class.c
parent8b83b2a74d04968a5cc09150acd6f442d044f91d (diff)
downloadgcc-9cfceb60cded797ae431d53e30b279afb161d3c1.zip
gcc-9cfceb60cded797ae431d53e30b279afb161d3c1.tar.gz
gcc-9cfceb60cded797ae431d53e30b279afb161d3c1.tar.bz2
class.c (make_class_data): Renamed fields: nmethods to method_count, method_count to dtable_method_count.
* class.c (make_class_data): Renamed fields: nmethods to method_count, method_count to dtable_method_count. Always set `state' field to 0. * decl.c (init_decl_processing): Likewise. From-SVN: r23449
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index 4a382b9..d0fb94b 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -1089,8 +1089,8 @@ make_class_data (type)
PUSH_FIELD_VALUE (cons, "constants", constant_pool_constructor);
PUSH_FIELD_VALUE (cons, "methods",
build1 (ADDR_EXPR, method_ptr_type_node, methods_decl));
- PUSH_FIELD_VALUE (cons, "nmethods", build_int_2 (method_count, 0));
- PUSH_FIELD_VALUE (cons, "method_count", TYPE_NVIRTUALS (type));
+ PUSH_FIELD_VALUE (cons, "method_count", build_int_2 (method_count, 0));
+ PUSH_FIELD_VALUE (cons, "dtable_method_count", TYPE_NVIRTUALS (type));
PUSH_FIELD_VALUE (cons, "fields",
fields_decl == NULL_TREE ? null_pointer_node
: build1 (ADDR_EXPR, field_ptr_type_node, fields_decl));
@@ -1105,9 +1105,7 @@ make_class_data (type)
PUSH_FIELD_VALUE (cons, "interfaces", interfaces);
PUSH_FIELD_VALUE (cons, "loader", null_pointer_node);
PUSH_FIELD_VALUE (cons, "interface_count", build_int_2 (interface_len, 0));
- PUSH_FIELD_VALUE (cons, "state",
- flag_assume_compiled ? integer_four_node
- : integer_two_node);
+ PUSH_FIELD_VALUE (cons, "state", integer_zero_node);
PUSH_FIELD_VALUE (cons, "thread", null_pointer_node);