diff options
| author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-29 18:43:25 +0000 |
|---|---|---|
| committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-29 18:43:25 +0000 |
| commit | f53ce661177e4d4d44f53bd236857c26e5de43a3 (patch) | |
| tree | 158742ad984de1e20c807a73f81b51044ae5edee /gcc/java/builtins.c | |
| parent | 5e507a76a292330204dfdcb2590dbaa0fab300ae (diff) | |
| download | ppe42-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/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 f4a8efb2a1b..dcfff1c1ef5 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 (); } |

