* stmt.c (expand_decl_cleanup): Update thisblock after eh_region_start.
authorJason Merrill <jason@yorick.cygnus.com>
Wed, 3 Dec 1997 03:42:32 +0000 (03:42 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 3 Dec 1997 03:42:32 +0000 (22:42 -0500)
From-SVN: r16896

gcc/ChangeLog
gcc/stmt.c

index aea5be07b1140082757c10086e8e63a2231a4385..580a64f635f5c2f6c97c6f562b6ecca46e23767c 100644 (file)
@@ -1,3 +1,7 @@
+Tue Dec  2 19:40:43 1997  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * stmt.c (expand_decl_cleanup): Update thisblock after eh_region_start.
+
 Tue Dec  2 12:54:33 1997  Jim Wilson  <wilson@cygnus.com>
 
        * unroll.c (find_splittable_givs):  Remove last change.  Handle givs
index a99da39346f178d7c378a4d9f37c1ce04fa0ba68..d61de3a79ee08ac6aa64d2384ad745b1e5b25920 100644 (file)
@@ -3992,6 +3992,8 @@ expand_decl_cleanup (decl, cleanup)
       if (! using_eh_for_cleanups_p
          || expand_eh_region_start_tree (decl, cleanup))
        TREE_ADDRESSABLE (t) = 1;
+      /* If that started a new EH region, we're in a new block.  */
+      thisblock = block_stack;
 
       if (cond_context)
        {