This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: sjlj exceptions


> > 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.

The function expand_builtin_setjmp does SAVE_NONLOCAL.  If the system
defines NON_SAVING_SETJMP, then possibly its action should match that
of the system setjmp.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]