PATCH: sjlj exceptions

John David Anglin dave@hiauly1.hia.nrc.ca
Fri Oct 27 20:10:00 GMT 2000


> > The second part is to set current_function_calls_setjmp = 1.  This causes
> > the gcse pass to punt, preventing the memory buildup.  I think it is also
> > necessary to ensure that registers are properly saved.
> 
> This should only be done for DONT_USE_BUILTIN_SETJMP, and it
> is only needed if the target defines NON_SAVING_SETJMP.  I.e.
> it is a problem, but not for pa.

If we do this, then until flow is fixed to detect edges for exception
labels, gcse needs to punt if exceptions_via_longjmp == 1 or
current_function_calls_setjmp.  Does that look ok?

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


More information about the Gcc-bugs mailing list