This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Sibcalls and exceptions
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: Jason Merrill <jason at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 26 Nov 2001 10:28:30 -0800
- Subject: Re: Sibcalls and exceptions
>> IIRC, Richard, Jeff, and I collaborated on this patch.
>
> Shouldn't the ChangeLog have reflected this fact? :-D
Well, I think I wrote all one lines of the patch. Richard and Jeff
helped to inspire me. :-)
>> We concluded that the sibling call optimization simply was not
>> exception safe as implemented. Is there anything in the archives
>> about this?
>
> Dunno, I haven't searched. I'd have expected any known problems to
> show up in the testsuite, and the testsuite didn't reveal any problems
> as a result of reverting the patch.
I would search. I have the feeling that we talked about this.
> The only EH-related problem I can see regarding sibcalls is:
There's nothing conceptual here; if there's a problem it's probably
something low-level and nasty about the way that arguments get
evaluated twice when we do sibcalls (once for the normal case and
once for the sibcall case). Things like that mean we have to
be very careful.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com