decl.c (java_init_decl_processing): Fix types of _Jv_MonitorEnter...
authorTom Tromey <tromey@redhat.com>
Fri, 1 Apr 2005 17:18:39 +0000 (17:18 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 1 Apr 2005 17:18:39 +0000 (17:18 +0000)
* decl.c (java_init_decl_processing): Fix types of
_Jv_MonitorEnter, _Jv_MonitorExit, _Jv_AllocObject,
_Jv_AllocObjectNoFinalizer, _Jv_Throw, _Jv_NewPrimArray,
_Jv_JNI_PopSystemFrame, _Jv_divI, _Jv_remI, _Jv_divJ, _Jv_remJ.

From-SVN: r97409

gcc/java/ChangeLog
gcc/java/decl.c

index 3b11a3e7c9ba50ca984a57c4043a76bdd9f00f1e..773a5fce30ce1f97afbe6f954fc1d49f7446c9d5 100644 (file)
@@ -1,3 +1,10 @@
+2005-04-01  Tom Tromey  <tromey@redhat.com>
+
+       * decl.c (java_init_decl_processing): Fix types of
+       _Jv_MonitorEnter, _Jv_MonitorExit, _Jv_AllocObject,
+       _Jv_AllocObjectNoFinalizer, _Jv_Throw, _Jv_NewPrimArray,
+       _Jv_JNI_PopSystemFrame, _Jv_divI, _Jv_remI, _Jv_divJ, _Jv_remJ.
+
 2005-03-31  Jan Hubicka  <jh@suse.cz>
 
        * Make-lang.in (class.o, decl.o): Depend on cgraph.h.
index d462f269640c37cf18bbccecb304b160175858de..197c391e27c071a753b1214eb845bffb759b82ce 100644 (file)
@@ -999,8 +999,7 @@ java_init_decl_processing (void)
 
   endlink = end_params_node = tree_cons (NULL_TREE, void_type_node, NULL_TREE);
 
-  t = tree_cons (NULL_TREE, class_ptr_type,
-                tree_cons (NULL_TREE, int_type_node, endlink));
+  t = tree_cons (NULL_TREE, class_ptr_type, endlink);
   alloc_object_node = builtin_function ("_Jv_AllocObject",
                                        build_function_type (ptr_type_node, t),
                                        0, NOT_BUILT_IN, NULL, NULL_TREE);
@@ -1018,31 +1017,33 @@ java_init_decl_processing (void)
                                          0, NOT_BUILT_IN, NULL, NULL_TREE);
 
   throw_node = builtin_function ("_Jv_Throw",
-                                build_function_type (ptr_type_node, t),
+                                build_function_type (void_type_node, t),
                                 0, NOT_BUILT_IN, NULL, NULL_TREE);
   /* Mark throw_nodes as `noreturn' functions with side effects.  */
   TREE_THIS_VOLATILE (throw_node) = 1;
   TREE_SIDE_EFFECTS (throw_node) = 1;
 
-  t = build_function_type (int_type_node, endlink);
+  t = build_function_type (void_type_node, tree_cons (NULL_TREE, ptr_type_node,
+                                                     endlink));
   soft_monitorenter_node 
     = builtin_function ("_Jv_MonitorEnter", t, 0, NOT_BUILT_IN,
                        NULL, NULL_TREE);
   soft_monitorexit_node 
     = builtin_function ("_Jv_MonitorExit", t, 0, NOT_BUILT_IN,
                        NULL, NULL_TREE);
-  
-  t = tree_cons (NULL_TREE, int_type_node, 
+
+  t = tree_cons (NULL_TREE, ptr_type_node, 
                 tree_cons (NULL_TREE, int_type_node, endlink));
   soft_newarray_node
       = builtin_function ("_Jv_NewPrimArray",
-                         build_function_type(ptr_type_node, t),
+                         build_function_type (ptr_type_node, t),
                          0, NOT_BUILT_IN, NULL, NULL_TREE);
   DECL_IS_MALLOC (soft_newarray_node) = 1;
 
   t = tree_cons (NULL_TREE, int_type_node,
                 tree_cons (NULL_TREE, class_ptr_type,
-                           tree_cons (NULL_TREE, object_ptr_type_node, endlink)));
+                           tree_cons (NULL_TREE, object_ptr_type_node,
+                                      endlink)));
   soft_anewarray_node
       = builtin_function ("_Jv_NewObjectArray",
                          build_function_type (ptr_type_node, t),
@@ -1128,9 +1129,11 @@ java_init_decl_processing (void)
                        0, NOT_BUILT_IN, NULL, NULL_TREE);
   soft_jnipopsystemframe_node
     = builtin_function ("_Jv_JNI_PopSystemFrame",
-                       build_function_type (ptr_type_node, t),
+                       build_function_type (void_type_node, t),
                        0, NOT_BUILT_IN, NULL, NULL_TREE);
 
+  t = tree_cons (NULL_TREE, int_type_node,
+                tree_cons (NULL_TREE, int_type_node, endlink));
   soft_idiv_node
     = builtin_function ("_Jv_divI",
                        build_function_type (int_type_node, t),
@@ -1141,6 +1144,8 @@ java_init_decl_processing (void)
                        build_function_type (int_type_node, t),
                        0, NOT_BUILT_IN, NULL, NULL_TREE);
 
+  t = tree_cons (NULL_TREE, long_type_node,
+                tree_cons (NULL_TREE, long_type_node, endlink));
   soft_ldiv_node
     = builtin_function ("_Jv_divJ",
                        build_function_type (long_type_node, t),