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
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- Cc: Richard Henderson <rth at redhat dot com>, gcc-patches at gnu dot org
- Date: 23 Apr 2003 08:35:59 -0700
- Subject: Re: C++ PATCH: Improve exceptions/inlining compile-time performance
- References: <Pine.LNX.4.44.0304231012250.18094-100000@bellatrix.tat.physik.uni-tuebingen.de>
On Wed, 2003-04-23 at 01:13, Richard Guenther wrote:
> On Tue, 22 Apr 2003, Richard Henderson wrote:
>
> > On Tue, Apr 22, 2003 at 08:13:48AM -0700, Mark Mitchell wrote:
> > > Putting a "throw ()" on "f" will definitely be a win for the forseeable
> > > future.
> >
> > One should note that threaded programs cannot do this if
> > they want cancellation, as discussed elsewhere.
>
> So to apply this optimization one would have to mark the method
> attribute((always_inline)) throw() - then thread cancellation
> will work in all cases?
That should work.
If the function never calls anything which is a thread-cancellation
point, this is a non-issue. (And most high-performance applications
aren't making blocking syscalls in their inner loops, which are the only
ones that can block.)
--
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery dot com