On 12/08/2011 11:57 AM, Jakub Jelinek wrote: > + else if (gimple_code (last) == GIMPLE_RETURN > + || (gimple_code (last) == GIMPLE_RESX > + && stmt_can_throw_external (last))) > + optimize_clobbers (bb);
If you need to do this for returns as well as resx, then this is the wrong place, since we'll only get here if there are exception regions in the current function. If you don't need to do this for returns... why do them? r~