Commit 6982ae15 by Josef Zlomek Committed by Josef Zlomek

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
parent 8c12fc63
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> 2003-01-15 Roger Sayle <roger@eyesopen.com>
* c-semantics.c (genrtl_while_stmt): Improve initial RTL generation * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
......
...@@ -225,10 +225,14 @@ set_edge_can_fallthru_flag () ...@@ -225,10 +225,14 @@ set_edge_can_fallthru_flag ()
{ {
edge e; edge e;
/* The FALLTHRU edge is also CAN_FALLTHRU edge. */
for (e = bb->succ; e; e = e->succ_next) 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 /* If the BB ends with an invertable condjump all (2) edges are
CAN_FALLTHRU edges. */ CAN_FALLTHRU edges. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment