flow.c (record_active_eh_regions): Terminate loop after finding the last insn in...
authorJeffrey A Law <law@cygnus.com>
Wed, 22 Sep 1999 12:09:23 +0000 (12:09 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 22 Sep 1999 12:09:23 +0000 (06:09 -0600)
        * flow.c (record_active_eh_regions): Terminate loop after finding
        the last insn in the last basic block.

From-SVN: r29587

gcc/ChangeLog
gcc/flow.c

index e77662a3ee4ad93145ee1030538021b661b2bd7b..37be3bf8d0e944666a05484e82fc3b25c05a4adc 100644 (file)
@@ -1,3 +1,8 @@
+Wed Sep 22 06:06:57 1999  Jeffrey A Law  (law@cygnus.com)
+
+       * flow.c (record_active_eh_regions): Terminate loop after finding
+       the last insn in the last basic block.
+
 Wed Sep 22 20:25:00 1999  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
 
        * config/c4x/c4x.md: Delete parallel instruction peepholes.
index b4970e3eb4b38c63686c381e8c7be62fcb7d95c1..98a8ae3306367c9d9a8e2a8fa03c990741c95e35 100644 (file)
@@ -1197,6 +1197,8 @@ record_active_eh_regions (f)
        {
          bb->eh_end = (eh_list ? NOTE_EH_HANDLER (XEXP (eh_list, 0)) : -1);
          i += 1;
+         if (i == n_basic_blocks)
+           break;
          bb = BASIC_BLOCK (i);
        }
     }