diff options
author | Tom Tromey <tromey@cygnus.com> | 1999-05-18 15:03:26 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-05-18 15:03:26 +0000 |
commit | 5a9e5c6fb6c140bd80a2986f1d537a250a62ea59 (patch) | |
tree | 009368cd560c748736b8a935a20c33d9fefb97c8 /gcc/java/java-except.h | |
parent | c64f913e0035db3d4a4137405b768d2f50c30eea (diff) | |
download | gcc-5a9e5c6fb6c140bd80a2986f1d537a250a62ea59.zip gcc-5a9e5c6fb6c140bd80a2986f1d537a250a62ea59.tar.gz gcc-5a9e5c6fb6c140bd80a2986f1d537a250a62ea59.tar.bz2 |
java-except.h (struct eh_range): Removed unused `next' member.
* java-except.h (struct eh_range): Removed unused `next' member.
* verify.c (verify_jvm_instructions): Call check_nested_ranges
after adding all exception handlers. Sort exception ranges in
order of start PC.
(struct pc_index): New structure.
(start_pc_cmp): New function.
* except.c (add_handler): Return `void'. Don't call link_handler;
instead construct an ordinary linked list and do range
coalescing.
(check_nested_ranges): New function.
(link_handler): Changed interface to allow merging of eh_ranges.
Split overlapping ranges. Return `void'.
From-SVN: r26995
Diffstat (limited to 'gcc/java/java-except.h')
-rw-r--r-- | gcc/java/java-except.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/java/java-except.h b/gcc/java/java-except.h index cdc123d..07b3feb 100644 --- a/gcc/java/java-except.h +++ b/gcc/java/java-except.h @@ -47,11 +47,6 @@ struct eh_range /* The next child of outer, in address order. */ struct eh_range *next_sibling; - -#if 0 - /* Next handler, sorted by ascending start_pc then descending end_pc. */ - tree next; -#endif }; /* A dummy range that represents the entire method. */ @@ -69,6 +64,8 @@ extern void maybe_start_try PROTO ((int)); extern void maybe_end_try PROTO ((int)); -extern int add_handler PROTO ((int, int, tree, tree)); +extern void add_handler PROTO ((int, int, tree, tree)); + +extern void handle_nested_ranges PROTO ((void)); extern void expand_resume_after_catch PROTO ((void)); |