diff options
author | Andrew Haley <aph@redhat.com> | 2005-04-29 18:43:25 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2005-04-29 18:43:25 +0000 |
commit | 2c80f015490c820ec71549975d6276b41ed9ae4c (patch) | |
tree | 158742ad984de1e20c807a73f81b51044ae5edee /gcc/java/builtins.c | |
parent | a68b179c86764d41292502567a7b1252f4e57eae (diff) | |
download | gcc-2c80f015490c820ec71549975d6276b41ed9ae4c.zip gcc-2c80f015490c820ec71549975d6276b41ed9ae4c.tar.gz gcc-2c80f015490c820ec71549975d6276b41ed9ae4c.tar.bz2 |
re PR java/19285 (Interfaces not initialized by static field access)
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.
From-SVN: r99010
Diffstat (limited to 'gcc/java/builtins.c')
-rw-r--r-- | gcc/java/builtins.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/java/builtins.c b/gcc/java/builtins.c index f4a8efb..dcfff1c 100644 --- a/gcc/java/builtins.c +++ b/gcc/java/builtins.c @@ -161,6 +161,7 @@ initialize_builtins (void) { tree double_ftype_double, double_ftype_double_double; tree float_ftype_float, float_ftype_float_float; + tree boolean_ftype_boolean_boolean; tree t; int i; @@ -216,7 +217,14 @@ initialize_builtins (void) double_ftype_double, "_ZN4java4lang4Math4sqrtEd"); define_builtin (BUILT_IN_TAN, "__builtin_tan", double_ftype_double, "_ZN4java4lang4Math3tanEd"); - + + t = tree_cons (NULL_TREE, boolean_type_node, end_params_node); + t = tree_cons (NULL_TREE, boolean_type_node, t); + boolean_ftype_boolean_boolean = build_function_type (boolean_type_node, t); + define_builtin (BUILT_IN_EXPECT, "__builtin_expect", + boolean_ftype_boolean_boolean, + "__builtin_expect"); + build_common_builtin_nodes (); } |