cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU flag before setting it.

* cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
	flag before setting it.

From-SVN: r61345
This commit is contained in:
Josef Zlomek 2003-01-15 21:16:22 +01:00 committed by Josef Zlomek
parent 8c12fc6345
commit 6982ae1549
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-01-15 Josef Zlomek <zlomekj@suse.cz>
* cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
flag before setting it.
2003-01-15 Roger Sayle <roger@eyesopen.com>
* c-semantics.c (genrtl_while_stmt): Improve initial RTL generation

View File

@ -225,10 +225,14 @@ set_edge_can_fallthru_flag ()
{
edge e;
/* The FALLTHRU edge is also CAN_FALLTHRU edge. */
for (e = bb->succ; e; e = e->succ_next)
if (e->flags & EDGE_FALLTHRU)
e->flags |= EDGE_CAN_FALLTHRU;
{
e->flags &= ~EDGE_CAN_FALLTHRU;
/* The FALLTHRU edge is also CAN_FALLTHRU edge. */
if (e->flags & EDGE_FALLTHRU)
e->flags |= EDGE_CAN_FALLTHRU;
}
/* If the BB ends with an invertable condjump all (2) edges are
CAN_FALLTHRU edges. */