aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/decl.c23
2 files changed, 11 insertions, 17 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index ef8e919..35460f5 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-25 Roger Sayle <roger@eyesopen.com>
+
+ * java/decl.c (java_init_decl_processing): Get soft_fmod_node from
+ built_in_decls[BUILT_IN_FMOD] rather than define it ourselves.
+
2003-02-23 Tom Tromey <tromey@redhat.com>
* lang-options.h: Added -Wdeprecated.
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index 05f80ea..70d6e59 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -885,22 +885,6 @@ java_init_decl_processing (void)
build_function_type (ptr_type_node, t),
0, NOT_BUILT_IN, NULL, NULL_TREE);
- t = tree_cons (NULL_TREE, double_type_node,
- tree_cons (NULL_TREE, double_type_node, endlink));
- soft_fmod_node
- = builtin_function ("__builtin_fmod",
- build_function_type (double_type_node, t),
- BUILT_IN_FMOD, BUILT_IN_NORMAL, "fmod", NULL_TREE);
-
-#if 0
- t = tree_cons (NULL_TREE, float_type_node,
- tree_cons (NULL_TREE, float_type_node, endlink));
- soft_fmodf_node
- = builtin_function ("__builtin_fmodf",
- build_function_type (float_type_node, t),
- BUILT_IN_FMOD, BUILT_IN_NORMAL, "fmodf", NULL_TREE);
-#endif
-
soft_idiv_node
= builtin_function ("_Jv_divI",
build_function_type (int_type_node, t),
@@ -928,8 +912,13 @@ java_init_decl_processing (void)
lang_eh_runtime_type = prepare_eh_table_type;
init_jcf_parse ();
-
+
initialize_builtins ();
+
+ soft_fmod_node = built_in_decls[BUILT_IN_FMOD];
+#if 0
+ soft_fmodf_node = built_in_decls[BUILT_IN_FMODF];
+#endif
}