summaryrefslogtreecommitdiffstats
path: root/gcc/java/decl.c
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-29 18:43:25 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-29 18:43:25 +0000
commitf53ce661177e4d4d44f53bd236857c26e5de43a3 (patch)
tree158742ad984de1e20c807a73f81b51044ae5edee /gcc/java/decl.c
parent5e507a76a292330204dfdcb2590dbaa0fab300ae (diff)
downloadppe42-gcc-f53ce661177e4d4d44f53bd236857c26e5de43a3.tar.gz
ppe42-gcc-f53ce661177e4d4d44f53bd236857c26e5de43a3.zip
2005-04-28 Andrew Haley <aph@redhat.com>
PR java/19285 * java-tree.h (soft_resolvepoolentry_node): New. (alloc_constant_fieldref): Declare. * expr.c (expand_java_field_op): Don't call class_init for accesses to static fields with indirect dispatch. * builtins.c (initialize_builtins): Add "__builtin_expect". * decl.c (soft_resolvepoolentry_node): New variable. (java_init_decl_processing): Create a decl for "_Jv_ResolvePoolEntry". * class.c (build_fieldref_cache_entry): New function. (build_static_field_ref): Rewrite for indirect dispatch. * constants.c (find_name_and_type_constant_tree): New function. (alloc_constant_fieldref): Likewise. (build_constants_constructor): Handle CONSTANT_Fieldref and CONSTANT_NameAndType. PR java/21115 * expr.c (force_evaluation_order): Convert outgoing args smaller than integer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99010 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r--gcc/java/decl.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index 2feac350417..204a674b175 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -104,6 +104,9 @@ static int uniq;
static GTY(()) tree pending_local_decls;
+/* The decl for "_Jv_ResolvePoolEntry". */
+tree soft_resolvepoolentry_node;
+
#if defined(DEBUG_JAVA_BINDING_LEVELS)
int binding_depth = 0;
int is_class_level = 0;
@@ -1015,7 +1018,13 @@ java_init_decl_processing (void)
build_function_type (void_type_node,
t),
0, NOT_BUILT_IN, NULL, NULL_TREE);
-
+ t = tree_cons (NULL_TREE, class_ptr_type,
+ tree_cons (NULL_TREE, int_type_node, endlink));
+ soft_resolvepoolentry_node
+ = builtin_function ("_Jv_ResolvePoolEntry",
+ build_function_type (ptr_type_node, t),
+ 0,NOT_BUILT_IN, NULL, NULL_TREE);
+ DECL_IS_PURE (soft_resolvepoolentry_node) = 1;
throw_node = builtin_function ("_Jv_Throw",
build_function_type (void_type_node, t),
0, NOT_BUILT_IN, NULL, NULL_TREE);
OpenPOWER on IntegriCloud