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
This commit is contained in:
Jeffrey A Law 1999-09-22 12:09:23 +00:00 committed by Jeff Law
parent d8530e26d3
commit 30439f2985
2 changed files with 7 additions and 0 deletions

View 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.

View 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);
}
}