aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/decl.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@cygnus.com>1999-12-10 16:06:23 +0000
committerAndrew Haley <aph@gcc.gnu.org>1999-12-10 16:06:23 +0000
commit8bbb23b7aca142d7a8ccf9350c7d4d6845e25f5f (patch)
tree47d721442246f0cf2bfbddf397cdc82c91b72932 /gcc/java/decl.c
parent22d37998107dd5a2afa93861e790275b98c90dd7 (diff)
downloadgcc-8bbb23b7aca142d7a8ccf9350c7d4d6845e25f5f.zip
gcc-8bbb23b7aca142d7a8ccf9350c7d4d6845e25f5f.tar.gz
gcc-8bbb23b7aca142d7a8ccf9350c7d4d6845e25f5f.tar.bz2
parse.h (BUILD_THROW): Add support for sjlj-exceptions.
1999-11-17 Andrew Haley <aph@cygnus.com> * parse.h (BUILD_THROW): Add support for sjlj-exceptions. decl.c (init_decl_processing): Add _Jv_Sjlj_Throw. expr.c (build_java_athrow): Add support for sjlj-exceptions. java-tree.h: Ditto. jcf-write.c: Ditto. From-SVN: r30859
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r--gcc/java/decl.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index 4d6ecbd..85b64e5 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -337,7 +337,7 @@ tree soft_newarray_node;
tree soft_anewarray_node;
tree soft_multianewarray_node;
tree soft_badarrayindex_node;
-tree throw_node;
+tree throw_node [2];
tree soft_checkarraystore_node;
tree soft_monitorenter_node;
tree soft_monitorexit_node;
@@ -706,12 +706,18 @@ init_decl_processing ()
0, NOT_BUILT_IN,
NULL_PTR);
t = tree_cons (NULL_TREE, ptr_type_node, endlink);
- throw_node = builtin_function ("_Jv_Throw",
- build_function_type (ptr_type_node, t),
- 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;
+ throw_node[0] = builtin_function ("_Jv_Throw",
+ build_function_type (ptr_type_node, t),
+ 0, NOT_BUILT_IN, NULL_PTR);
+ /* Mark throw_nodes as `noreturn' functions with side effects. */
+ TREE_THIS_VOLATILE (throw_node[0]) = 1;
+ TREE_SIDE_EFFECTS (throw_node[0]) = 1;
+ t = tree_cons (NULL_TREE, ptr_type_node, endlink);
+ throw_node[1] = builtin_function ("_Jv_Sjlj_Throw",
+ build_function_type (ptr_type_node, t),
+ 0, NOT_BUILT_IN, NULL_PTR);
+ TREE_THIS_VOLATILE (throw_node[1]) = 1;
+ TREE_SIDE_EFFECTS (throw_node[1]) = 1;
t = build_function_type (int_type_node, endlink);
soft_monitorenter_node
= builtin_function ("_Jv_MonitorEnter", t, 0, NOT_BUILT_IN,