aboutsummaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-11-17 17:33:57 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-11-17 12:33:57 -0500
commit572202a718776c8d1a7d7f467652a2faff940c6c (patch)
treee261e44560d70ac49d4a875324ea54d394781d6a /gcc/except.c
parentc03dcc62e6aff5f82cc927a541d7b44fc1f2f988 (diff)
downloadgcc-572202a718776c8d1a7d7f467652a2faff940c6c.zip
gcc-572202a718776c8d1a7d7f467652a2faff940c6c.tar.gz
gcc-572202a718776c8d1a7d7f467652a2faff940c6c.tar.bz2
except.c (enum eh_region_type): Add ERT_UNKNOWN.
* except.c (enum eh_region_type): Add ERT_UNKNOWN. (mark_eh_region, case ERT_UKNONW): New case. From-SVN: r47123
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/except.c b/gcc/except.c
index 7ddb807..ad9b9f5 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -128,7 +128,8 @@ struct eh_region
/* Each region does exactly one thing. */
enum eh_region_type
{
- ERT_CLEANUP = 1,
+ ERT_UNKNOWN = 0,
+ ERT_CLEANUP,
ERT_TRY,
ERT_CATCH,
ERT_ALLOWED_EXCEPTIONS,
@@ -478,6 +479,10 @@ mark_eh_region (region)
switch (region->type)
{
+ case ERT_UNKNOWN:
+ /* This can happen if a nested function is inside the body of a region
+ and we do a GC as part of processing it. */
+ break;
case ERT_CLEANUP:
ggc_mark_tree (region->u.cleanup.exp);
break;