aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-09-22 12:09:23 +0000
committerJeff Law <law@gcc.gnu.org>1999-09-22 06:09:23 -0600
commit30439f2985a1fa99e0621ce7a426074938c187c8 (patch)
tree5470eec723483c44ee86e76510d2b7648e389632 /gcc
parentd8530e26d3afae1db40ab847fee7508b479a7561 (diff)
downloadgcc-30439f2985a1fa99e0621ce7a426074938c187c8.zip
gcc-30439f2985a1fa99e0621ce7a426074938c187c8.tar.gz
gcc-30439f2985a1fa99e0621ce7a426074938c187c8.tar.bz2
flow.c (record_active_eh_regions): Terminate loop after finding the last insn in the last basic block.
* flow.c (record_active_eh_regions): Terminate loop after finding the last insn in the last basic block. From-SVN: r29587
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/flow.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e77662a..37be3bf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/flow.c b/gcc/flow.c
index b4970e3..98a8ae3 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -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);
}
}