On 02/17/14 10:51, Iyer, Balaji V wrote:
I don't know Cilk stuff at all, but it seems that _Cilk_spawn is forbidden in a
return statement.  But then only checking TREE_CODE (retval) ==
CILK_SPAWN_STMT isn't sufficient, because CILK_SPAWN_STMT can be
wrapped e.g. in MINUS_EXPR, C_MAYBE_CONST_EXPR, EQ_EXPR, and a
bunch of others.  I used walk_tree for checking whether a return statement
contains any CILK_SPAWN_STMT.

Regtested/bootstrapped on x86_64-linux, ok for 5.0?


5.0? you mean 4.9 right?... since this is a minor bug-fix.
Fixes go onto the trunk with selected fixes being backported to the 4.9 branch at the discretion of the release managers.

jeff


Reply via email to