This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

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


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