Commit 1684f874 by Anthony Green Committed by Anthony Green

> * decl.c (init_decl_processing): Mark throw_node as a noreturn > function with side effects.

  >     * decl.c (init_decl_processing): Mark throw_node as a noreturn
  >     function with side effects.
  >     (init_decl_processing): Mark all memory allocating DECLs with
  >     DECL_IS_MALLOC.

From-SVN: r30845
parent 2756c3d8
1999-12-5 Anthony Green <green@cygnus.com>
* decl.c (init_decl_processing): Mark throw_node as a noreturn
function with side effects.
(init_decl_processing): Mark all memory allocating DECLs with
DECL_IS_MALLOC.
Wed Dec 1 04:25:06 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> Wed Dec 1 04:25:06 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* except.c (expand_end_java_handler): Call * except.c (expand_end_java_handler): Call
......
...@@ -699,6 +699,7 @@ init_decl_processing () ...@@ -699,6 +699,7 @@ init_decl_processing ()
alloc_object_node = builtin_function ("_Jv_AllocObject", alloc_object_node = builtin_function ("_Jv_AllocObject",
build_function_type (ptr_type_node, t), build_function_type (ptr_type_node, t),
0, NOT_BUILT_IN, NULL_PTR); 0, NOT_BUILT_IN, NULL_PTR);
DECL_IS_MALLOC (alloc_object_node) = 1;
soft_initclass_node = builtin_function ("_Jv_InitClass", soft_initclass_node = builtin_function ("_Jv_InitClass",
build_function_type (void_type_node, build_function_type (void_type_node,
t), t),
...@@ -708,6 +709,9 @@ init_decl_processing () ...@@ -708,6 +709,9 @@ init_decl_processing ()
throw_node = builtin_function ("_Jv_Throw", throw_node = builtin_function ("_Jv_Throw",
build_function_type (ptr_type_node, t), build_function_type (ptr_type_node, t),
0, NOT_BUILT_IN, NULL_PTR); 0, NOT_BUILT_IN, NULL_PTR);
/* Mark throw_node as a `noreturn' function 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 (int_type_node, endlink);
soft_monitorenter_node soft_monitorenter_node
= builtin_function ("_Jv_MonitorEnter", t, 0, NOT_BUILT_IN, = builtin_function ("_Jv_MonitorEnter", t, 0, NOT_BUILT_IN,
...@@ -722,6 +726,7 @@ init_decl_processing () ...@@ -722,6 +726,7 @@ init_decl_processing ()
= builtin_function ("_Jv_NewArray", = builtin_function ("_Jv_NewArray",
build_function_type(ptr_type_node, t), build_function_type(ptr_type_node, t),
0, NOT_BUILT_IN, NULL_PTR); 0, NOT_BUILT_IN, NULL_PTR);
DECL_IS_MALLOC (soft_newarray_node) = 1;
t = tree_cons (NULL_TREE, int_type_node, t = tree_cons (NULL_TREE, int_type_node,
tree_cons (NULL_TREE, class_ptr_type, tree_cons (NULL_TREE, class_ptr_type,
...@@ -730,6 +735,7 @@ init_decl_processing () ...@@ -730,6 +735,7 @@ init_decl_processing ()
= builtin_function ("_Jv_NewObjectArray", = builtin_function ("_Jv_NewObjectArray",
build_function_type (ptr_type_node, t), build_function_type (ptr_type_node, t),
0, NOT_BUILT_IN, NULL_PTR); 0, NOT_BUILT_IN, NULL_PTR);
DECL_IS_MALLOC (soft_anewarray_node) = 1;
t = tree_cons (NULL_TREE, ptr_type_node, t = tree_cons (NULL_TREE, ptr_type_node,
tree_cons (NULL_TREE, int_type_node, endlink)); tree_cons (NULL_TREE, int_type_node, endlink));
...@@ -737,12 +743,15 @@ init_decl_processing () ...@@ -737,12 +743,15 @@ init_decl_processing ()
= builtin_function ("_Jv_NewMultiArray", = builtin_function ("_Jv_NewMultiArray",
build_function_type (ptr_type_node, t), build_function_type (ptr_type_node, t),
0, NOT_BUILT_IN, NULL_PTR); 0, NOT_BUILT_IN, NULL_PTR);
DECL_IS_MALLOC (soft_multianewarray_node) = 1;
t = build_function_type (void_type_node, t = build_function_type (void_type_node,
tree_cons (NULL_TREE, int_type_node, endlink)); tree_cons (NULL_TREE, int_type_node, endlink));
soft_badarrayindex_node soft_badarrayindex_node
= builtin_function ("_Jv_ThrowBadArrayIndex", t, = builtin_function ("_Jv_ThrowBadArrayIndex", t,
0, NOT_BUILT_IN, NULL_PTR); 0, NOT_BUILT_IN, NULL_PTR);
/* Mark soft_badarrayindex_node as a `noreturn' function with side
effects. */
TREE_THIS_VOLATILE (soft_badarrayindex_node) = 1; TREE_THIS_VOLATILE (soft_badarrayindex_node) = 1;
TREE_SIDE_EFFECTS (soft_badarrayindex_node) = 1; TREE_SIDE_EFFECTS (soft_badarrayindex_node) = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment