This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Improve exceptions/inlining compile-time performance
On Wed, 23 Apr 2003 10:52:07 -0700, Richard Henderson <rth at redhat dot com> wrote:
> On Wed, Apr 23, 2003 at 10:13:39AM +0200, Richard Guenther wrote:
>> So to apply this optimization one would have to mark the method
>> attribute((always_inline)) throw() - then thread cancellation
>> will work in all cases?
>
> No. Inlining changes nothing. There will *still* be an
> exception specification note in the code that will cause
> cleanups to be elided.
Indeed. If you want cancellation, don't use throw(). Cancellation support
uses the same path as exception handlers, so you this optimization isn't
applicable anyway.
Jason