From 30439f2985a1fa99e0621ce7a426074938c187c8 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Wed, 22 Sep 1999 12:09:23 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/flow.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e77662a3ee4..37be3bf8d0e 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 * config/c4x/c4x.md: Delete parallel instruction peepholes. diff --git a/gcc/flow.c b/gcc/flow.c index b4970e3eb4b..98a8ae33063 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); } }