On 08/06/2013 06:49 AM, Aldy Hernandez wrote: >> --- gcc/ipa-inline-analysis.c >> +++ gcc/ipa-inline-analysis.c >> @@ -1433,6 +1433,9 @@ initialize_inline_failed (struct cgraph_edge *e) >> e->inline_failed = CIF_REDEFINED_EXTERN_INLINE; >> else if (e->call_stmt_cannot_inline_p) >> e->inline_failed = CIF_MISMATCHED_ARGUMENTS; >> + else if (flag_enable_cilkplus && cfun && cfun->calls_spawn) >> + /* We can't inline if the function is spawing a function. */ >> + e->inline_failed = CIF_BODY_NOT_AVAILABLE; > > Hmmm, if we don't have a cfun, perhaps we should be sticking this calls_spawn > bit in the cgraph node. > > Richard? Anyone?
There will always be a function struct. Probably not cfun though. You can get to the callee through the edge. "BODY_NOT_AVAILABLE"? Definitely an odd error message to have chosen for this... r~