aboutsummaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@cygnus.com>1998-06-09 13:28:26 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>1998-06-09 13:28:26 +0000
commit0d3453dfb69f5c4d090cd03a85b6595f3e995743 (patch)
tree812a5e7bcb5c0cb69417d69ff0d7b7245fc40a0e /gcc/except.c
parent3398f47f04de7dd2154fd8565c45d815e173975e (diff)
downloadgcc-0d3453dfb69f5c4d090cd03a85b6595f3e995743.zip
gcc-0d3453dfb69f5c4d090cd03a85b6595f3e995743.tar.gz
gcc-0d3453dfb69f5c4d090cd03a85b6595f3e995743.tar.bz2
Minor tweaks.
* except.c (expand_start_catch): Rename to start_catch_handler. (expand_end_catch): Delete function. (expand_end_all_catch): Remove catch status that expand_end_catch use to do. * except.h (expand_start_catch): Rename prototype. (expand_end_catch): Delete prototype. * semantics.c (finish_try_block): Rename expand_start_catch, and delete expand_end_catch. * parse.y (function_try_block): Rename expand_start_catch, and delete expand_end_catch. * except.c (expand_end_eh_spec): Rename expand_start_catch, and delete expand_end_catch. From-SVN: r20379
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/gcc/except.c b/gcc/except.c
index b3cb9cd..708fba9 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -1511,7 +1511,7 @@ expand_start_try_stmts ()
/* Called to begin a catch clause. The parameter is the object which
will be passed to the runtime type check routine. */
void
-expand_start_catch (rtime)
+start_catch_handler (rtime)
tree rtime;
{
rtx handler_label = catchstack.top->entry->exception_handler_label;
@@ -1529,16 +1529,6 @@ expand_start_catch (rtime)
add_new_handler (eh_region_entry, get_new_handler (handler_label, rtime));
}
-/* End a catch clause by dequeuing the current region */
-
-void
-expand_end_catch ()
-{
- struct eh_entry *entry;
- entry = pop_eh_entry (&catchstack);
- free (entry);
-}
-
/* Generate RTL for the start of a group of catch clauses.
It is responsible for starting a new instruction sequence for the
@@ -1641,10 +1631,15 @@ void
expand_end_all_catch ()
{
rtx new_catch_clause, outer_context = NULL_RTX;
+ struct eh_entry *entry;
if (! doing_eh (1))
return;
+ /* Dequeue the current catch clause region. */
+ entry = pop_eh_entry (&catchstack);
+ free (entry);
+
if (! exceptions_via_longjmp)
{
outer_context = ehstack.top->entry->outer_context;