From: Adam W. <we...@cs...> - 2003-09-28 10:20:12
|
Hello, I need to throw a caught exception when executing yield operation. My problem is related to the optimizing compiler. Yield-points are not in the scope of the required exception handlers. I am assuming this happens because exception handlers are generated only for (potentially) exceptional instructions and yield-points are by default non-exceptional (at least the compiler does not know that they may throw my exception). I would like to ask if someone could help me to find out how and where to mark the yield-points as exceptional. The other instructions (or, more precisely, basic blocks containing those instructions) are marked as exceptional in OPT_BC2IR by calling rectifyStateWithExceptionHandlers() , but yield-points are inserted at a much later stage (in OPT_FinalMIRExpansion). Thank you Adam Welc -- Adam Welc Computer Science Building, room 274 West Lafayette, IN 47906 Telephone number (work): (765) 4947836 http://www.cs.purdue.edu/homes/welc |