This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: sjlj exceptions
- To: rth at cygnus dot com (Richard Henderson)
- Subject: Re: PATCH: sjlj exceptions
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Fri, 27 Oct 2000 22:32:17 -0400 (EDT)
- Cc: gcc-patches at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, law at cygnus dot com
> > 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)