From 572202a718776c8d1a7d7f467652a2faff940c6c Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 17 Nov 2001 17:33:57 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/except.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d520cdae603..9166e268187 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sat Nov 17 12:06:31 2001 Richard Kenner + + * except.c (enum eh_region_type): Add ERT_UNKNOWN. + (mark_eh_region, case ERT_UKNONW): New case. + 2001-11-17 Christopher Faylor Corinna Vinschen diff --git a/gcc/except.c b/gcc/except.c index 7ddb80734e8..ad9b9f57644 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; -- 2.30.2