decl.c (struct named_label_list): Rename eh_region to in_try_scope, add in_catch_scope.
authorRichard Henderson <rth@gcc.gnu.org>
Wed, 28 Mar 2001 08:25:45 +0000 (00:25 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 28 Mar 2001 08:25:45 +0000 (00:25 -0800)
commit826840d96aa1722381e57d96df700528c4581c33
tree13a4980a497e8445730adac9c18781f805ef4126
parent1e7c4465e965fe5c05bab6433a4c0c6035fe53d2
decl.c (struct named_label_list): Rename eh_region to in_try_scope, add in_catch_scope.

        * decl.c (struct named_label_list): Rename eh_region to
        in_try_scope, add in_catch_scope.
        (struct binding_level): Rename eh_region to is_try_scope,
        add is_catch_scope.
        (note_level_for_try): Rename from note_level_for_eh.
        (note_level_for_catch): New.
        (poplevel): Copy both is_try_scope and is_catch_scope to
        the named_label_list struct.
        (check_previous_goto_1): Don't check for catch block via
        DECL_ARTIFICIAL; use in_try_scope instead.
        (check_goto): Likewise.
        * cp-tree.h (note_level_for_try, note_level_for_catch): Declare.
        * except.c (expand_start_catch_block): Call note_level_for_catch.
        * semantics.c (begin_compound_stmt): Update for note_level_for_try.

From-SVN: r40920
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/except.c
gcc/cp/semantics.c