EGCS vs MSVC - exception handling

Richard Henderson rth@cygnus.com
Thu Jan 15 16:30:00 GMT 1998


On Mon, Jan 12, 1998 at 11:39:56PM -0800, Arun Sharma wrote:
> Jeffrey A Law <law@cygnus.com> writes:
> 
> > That requires quite a bit more work.  You might start with adding
> > -fasynchronous-exceptions to the command line (or something close to that)
> > which instructs flow to create an edge from every insn to its EH handler
> > (since just about any insn could trap into a signal handler).
> 
> Why would that be necessary ? Inside the signal handler, I know
> precisely which instruction generated the trap by looking into the
> sigcontext. All I need to do is to be able to unwind the stack and
> look for the right exception handler to call.

Except that once you've found the handler and jumped to it, you'll
want to use some variables.  This means the register allocator must
know how control flows between the exception region and the handler.


r~



More information about the Gcc mailing list