commit
a5883ba0de68efad36db145e75c86394d8bd44ea
Author: Michael Matz <matz@gcc.gnu.org>
Date: Tue Nov 24 15:37:32 2009 +0000
introduced currently_expanding_gimple_stmt, which was set and cleared in
expand_gimple_basic_block when expanding gimple statement to RTL. But it
isn't cleared when expand_gimple_basic_block returns inside the loop.
PR middle-end/104721
* cfgexpand.cc (expand_gimple_basic_block): Clear
currently_expanding_gimple_stmt when returning inside the loop.
{
new_bb = expand_gimple_cond (bb, as_a <gcond *> (stmt));
if (new_bb)
- return new_bb;
+ {
+ currently_expanding_gimple_stmt = NULL;
+ return new_bb;
+ }
}
else if (is_gimple_debug (stmt))
{
if (can_fallthru)
bb = new_bb;
else
- return new_bb;
+ {
+ currently_expanding_gimple_stmt = NULL;
+ return new_bb;
+ }
}
}
else