PR tree-optimization/48611
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Apr 2011 18:18:16 +0000 (18:18 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Apr 2011 18:18:16 +0000 (18:18 +0000)
* tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
beyond ERT_MUST_NOT_THROW region.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172783 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-eh.c

index 2b7e531..6dade07 100644 (file)
@@ -1,3 +1,9 @@
+2011-04-20  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/48611
+       * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
+       beyond ERT_MUST_NOT_THROW region.
+
 2011-04-20  Catherine Moore  <clm@codesourcery.com>
 
        * config/mips/mips.opt (mfix-24k): New.
index 5ef319d..76453b8 100644 (file)
@@ -849,6 +849,8 @@ note_eh_region_may_contain_throw (eh_region region)
 {
   while (bitmap_set_bit (eh_region_may_contain_throw_map, region->index))
     {
+      if (region->type == ERT_MUST_NOT_THROW)
+       break;
       region = region->outer;
       if (region == NULL)
        break;