diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-25 19:21:27 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-25 19:21:27 +0000 |
commit | 1228f0d864ed9d07979b9b936e310ad68467b5be (patch) | |
tree | e11758241a48589de283764322a42a688c5bb539 /gcc/except.h | |
parent | e4ba8dedac8c5cbe675bcabd5bf5a2e9dc4345ef (diff) | |
download | gcc-1228f0d864ed9d07979b9b936e310ad68467b5be.tar.gz |
* except.h (eh_status): Adjust documentation for x_protect_list.
(begin_protect_partials): New function.
* except.c (enqueue_eh_entry): Fix formatting.
(get_first_handler): Add consistency check.
(add_partial_entry): Adjust usage of protect_list.
(emit_cleanup_handler): Save and restore ehqueue.
(expand_start_all_catch): Add comment.
(begin_protect_partials): New function.
(end_protect_partials): Adjust usage of protect_list.
(init_eh_for_function): Use xcalloc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30667 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/except.h')
-rw-r--r-- | gcc/except.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/except.h b/gcc/except.h index eafeaa942cd..6f15ff04a09 100644 --- a/gcc/except.h +++ b/gcc/except.h @@ -125,9 +125,10 @@ struct eh_status normal control flow out of a handler (instead of, say, returning to the caller of the current function or exiting the program). */ struct label_node *x_caught_return_label_stack; - /* A TREE_CHAINed list of handlers for regions that are not yet - closed. The TREE_VALUE of each entry contains the handler for the - corresponding entry on the ehstack. */ + /* A stack (TREE_LIST) of lists of handlers. The TREE_VALUE of each + node is itself a TREE_CHAINed list of handlers for regions that + are not yet closed. The TREE_VALUE of each entry contains the + handler for the corresponding entry on the ehstack. */ union tree_node *x_protect_list; /* The EH context. Nonzero if the function has already fetched a pointer to the EH context for exception handling. */ @@ -368,6 +369,11 @@ extern void expand_start_all_catch PROTO((void)); extern void expand_end_all_catch PROTO((void)); +/* Begin a region that will contain entries created with + add_partial_entry. */ + +extern void begin_protect_partials PROTO((void)); + #ifdef TREE_CODE /* Create a new exception region and add the handler for the region onto a list. These regions will be ended (and their handlers |